|
31 | 31 | #include "game_shared/voice_gamemgr.h" |
32 | 32 | #include "cmdhandler.h" |
33 | 33 |
|
34 | | -const int MAX_RULE_BUFFER = 1024; |
35 | | -const int MAX_VOTE_MAPS = 100; |
36 | | -const int MAX_VIP_QUEUES = 5; |
37 | | -const int MAX_MONEY_THRESHOLD = 999999; // allowable money limit in the game that can be drawn on the HUD |
38 | | - |
39 | | -const int MAX_MOTD_CHUNK = 60; |
40 | | -const int MAX_MOTD_LENGTH = 1536; // (MAX_MOTD_CHUNK * 4) |
41 | | - |
42 | | -const float ITEM_RESPAWN_TIME = 30.0f; |
43 | | -const float WEAPON_RESPAWN_TIME = 20.0f; |
44 | | -const float AMMO_RESPAWN_TIME = 20.0f; |
45 | | -const float ROUND_RESPAWN_TIME = 20.0f; |
46 | | -const float ROUND_BEGIN_DELAY = 5.0f; // delay before beginning new round |
47 | | -const float ITEM_KILL_DELAY = 300.0f; |
48 | | -const float RADIO_TIMEOUT = 1.5f; |
| 34 | +const int MAX_RULE_BUFFER = 1024; |
| 35 | +const int MAX_VOTE_MAPS = 100; |
| 36 | +const int MAX_VIP_QUEUES = 5; |
| 37 | +const int MAX_MONEY_THRESHOLD = 999999; // allowable money limit in the game that can be drawn on the HUD |
| 38 | + |
| 39 | +const int MAX_MOTD_CHUNK = 60; |
| 40 | +const int MAX_MOTD_LENGTH = 1536; // (MAX_MOTD_CHUNK * 4) |
| 41 | + |
| 42 | +const float ITEM_RESPAWN_TIME = 30.0f; |
| 43 | +const float WEAPON_RESPAWN_TIME = 20.0f; |
| 44 | +const float AMMO_RESPAWN_TIME = 20.0f; |
| 45 | +const float ROUND_RESPAWN_TIME = 20.0f; |
| 46 | +const float ROUND_BEGIN_DELAY = 5.0f; // delay before beginning new round |
| 47 | +const float ITEM_KILL_DELAY = 300.0f; |
| 48 | +const float RADIO_TIMEOUT = 1.5f; |
49 | 49 | const float DEATH_ANIMATION_TIME = 3.0f; |
| 50 | +const float VOTEMAP_MIN_TIME = 180.0f; |
50 | 51 |
|
51 | | -const int MAX_INTERMISSION_TIME = 120; // longest the intermission can last, in seconds |
| 52 | +const int MAX_INTERMISSION_TIME = 120; // longest the intermission can last, in seconds |
52 | 53 |
|
53 | 54 | // when we are within this close to running out of entities, items |
54 | 55 | // marked with the ITEM_FLAG_LIMITINWORLD will delay their respawn |
55 | | -const int ENTITY_INTOLERANCE = 100; |
| 56 | +const int ENTITY_INTOLERANCE = 100; |
56 | 57 |
|
57 | 58 | enum |
58 | 59 | { |
@@ -381,6 +382,7 @@ class CGameRules |
381 | 382 | static float GetItemKillDelay(); |
382 | 383 | static float GetRadioTimeout(); |
383 | 384 | static float GetDyingTime(); |
| 385 | + static float GetVotemapMinElapsedTime(); |
384 | 386 |
|
385 | 387 | public: |
386 | 388 | BOOL m_bFreezePeriod; // TRUE at beginning of round, set to FALSE when the period expires |
@@ -986,6 +988,15 @@ inline float CGameRules::GetDyingTime() |
986 | 988 | #endif |
987 | 989 | } |
988 | 990 |
|
| 991 | +inline float CGameRules::GetVotemapMinElapsedTime() |
| 992 | +{ |
| 993 | +#ifdef REGAMEDLL_ADD |
| 994 | + return votemap_min_time.value; |
| 995 | +#else |
| 996 | + return VOTEMAP_MIN_TIME; |
| 997 | +#endif |
| 998 | +} |
| 999 | + |
989 | 1000 | bool IsBotSpeaking(); |
990 | 1001 | void SV_Continue_f(); |
991 | 1002 | void SV_Tutor_Toggle_f(); |
|
0 commit comments