Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
2.5 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //-------------------------------------------------------------
  3. // File: cs_achievement_constants.h
  4. // Desc: Declare contants used by achievements (mostly) in one location for simpler tweaking
  5. // Author: Peter Freese <[email protected]>
  6. // Date: 2009/03/11
  7. // Copyright: � 2009 Hidden Path Entertainment
  8. //-------------------------------------------------------------
  9. #ifndef CS_ACHIEVEMENT_CONSTANTS_H
  10. #define CS_ACHIEVEMENT_CONSTANTS_H
  11. #ifdef _WIN32
  12. #pragma once
  13. #endif
  14. namespace AchievementConsts
  15. {
  16. const int DefaultMinOpponentsForAchievement = 5;
  17. const int KillingSpree_Kills = 5;
  18. const float KillingSpree_WindowTime = 15.0f;
  19. const float KillingSpreeEnder_TimeWindow = 5.0f;
  20. const int KillEnemyTeam_MinKills = 5;
  21. const int LastPlayerAlive_MinPlayersOnTeam = 5;
  22. const int KillsWithMultipleGuns_MinWeapons = 5;
  23. const float BombDefuseCloseCall_MaxTimeRemaining = 1.0f;
  24. const int KillLowDamage_MaxHealthLeft = 5;
  25. const int DamageNoKill_MaxHealthLeftOnKill = 5;
  26. const float BombDefuseNeededKit_MaxTime = 5.0f;
  27. const float FastBombPlant_Time = 25.0f;
  28. const int KillEnemiesWhileBlind_Kills = 1;
  29. const int KillEnemiesWhileBlindHard_Kills = 2;
  30. const int SurviveGrenade_MinDamage = 80;
  31. const int KillWhenAtLowHealth_MaxHealth = 1;
  32. const int GrenadeMultiKill_MinKills = 3;
  33. const int BombMultiKill_MinKills = 5;
  34. const float FastRoundWin_Time = 30.0f;
  35. const int UnstoppableForce_Kills = 10;
  36. const int BreakPropsInRound_Props = 15;
  37. const int HeadshotsInRound_Kills = 5;
  38. const int BreakWindowsInOfficeRound_Windows = 14;
  39. const float FastHostageRescue_Time = 90.0f;
  40. const int SurviveManyAttacks_NumberDamagingPlayers = 5;
  41. const float KillInAir_MinimumHeight = 100.0f; //100-120 is probably best. Also used for killing while in the air
  42. const float KillBombPickup_MaxTime = 3.0f;
  43. const int WinRoundsWithoutBuying_Rounds = 10;
  44. const int ConcurrentDominations_MinDominations = 3;
  45. const int ExtendedDomination_AdditionalKills = 4;
  46. const int SameUniform_MinPlayers = 5;
  47. const int FriendsSameUniform_MinPlayers = 4;
  48. const float KillEnemyNearBomb_MaxDistance = 480.0f;
  49. const int GrenadeDamage_MinDamage = 200;
  50. }
  51. #endif // CS_ACHIEVEMENT_CONSTANTS_H