mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-27 07:05:38 +03:00
Added mp_item_staytime to game.cfg
CHalfLifeMultiplay::RoundOver: Use localization string #Cstrike_Tutor_Round_Over instead "Round is Over!" Mini-refactoring
This commit is contained in:
parent
411761c8d8
commit
83c3429240
@ -46,7 +46,7 @@ Archive's bin directory contains 2 subdirectories, 'bugfixed' and 'pure'
|
||||
| sv_alltalk | 0 | 0 | 4 | When players can hear each other ([further explanation](../../wiki/sv_alltalk)).<br/>`0` dead don't hear alive<br/>`1` no restrictions<br/>`2` teammates hear each other<br/>`3` Same as 2, but spectators hear everybody<br/>`4` alive hear alive, dead hear dead and alive.
|
||||
| bot_deathmatch | 0 | 0 | 1 | Set's the mode for the zBot.<br/>`0` disabled<br/>`1` enable mode Deathmatch and not allow to do the scenario |
|
||||
| bot_quota_mode | normal | - | - | Determines the type of quota.<br/>`normal` default behaviour<br/>`fill` the server will adjust bots to keep `N` players in the game, where `N` is bot_quota |
|
||||
| mp_item_staytime | 300 | 0.1 | - | Time to remove item that have been dropped from the players. |
|
||||
| mp_item_staytime | 300 | - | - | Time to remove item that have been dropped from the players. |
|
||||
|
||||
## How to install zBot for CS 1.6?
|
||||
* Extract all the files from an [archive](regamedll/extra/zBot/bot_profiles.zip?raw=true)
|
||||
|
5
dist/game.cfg
vendored
5
dist/game.cfg
vendored
@ -167,3 +167,8 @@ showtriggers 0
|
||||
//
|
||||
// Default value: "0"
|
||||
sv_alltalk 0
|
||||
|
||||
// Time to remove item that have been dropped from the players. (in seconds)
|
||||
//
|
||||
// Default value: "300"
|
||||
mp_item_staytime 300
|
||||
|
@ -2005,18 +2005,12 @@ BOOL CHalfLifeMultiplay::IsThereABomber()
|
||||
|
||||
BOOL CHalfLifeMultiplay::IsThereABomb()
|
||||
{
|
||||
CGrenade *pC4 = nullptr;
|
||||
CBaseEntity *pWeaponC4 = nullptr;
|
||||
CGrenade *pBomb = nullptr;
|
||||
bool bFoundBomb = false;
|
||||
|
||||
while ((pWeaponC4 = UTIL_FindEntityByClassname(pWeaponC4, "grenade")))
|
||||
while ((pBomb = UTIL_FindEntityByClassname(pBomb, "grenade")))
|
||||
{
|
||||
if (!pWeaponC4)
|
||||
continue;
|
||||
|
||||
pC4 = static_cast<CGrenade *>(pWeaponC4);
|
||||
|
||||
if (pC4->m_bIsC4)
|
||||
if (pBomb->m_bIsC4)
|
||||
{
|
||||
bFoundBomb = true;
|
||||
break;
|
||||
@ -2027,7 +2021,6 @@ BOOL CHalfLifeMultiplay::IsThereABomb()
|
||||
return TRUE;
|
||||
|
||||
return FALSE;
|
||||
|
||||
}
|
||||
|
||||
BOOL CHalfLifeMultiplay::TeamFull(int team_id)
|
||||
@ -2891,7 +2884,7 @@ bool CHalfLifeMultiplay::VIP_NotEscaped(float tmDelay)
|
||||
|
||||
bool CHalfLifeMultiplay::RoundOver(float tmDelay)
|
||||
{
|
||||
EndRoundMessage("Round is Over!", ROUND_GAME_OVER);
|
||||
EndRoundMessage("#Cstrike_Tutor_Round_Over", ROUND_GAME_OVER);
|
||||
Broadcast("rounddraw");
|
||||
TerminateRound(tmDelay, WINSTATUS_DRAW);
|
||||
return true;
|
||||
|
@ -245,6 +245,7 @@ public:
|
||||
BOOL m_fRegisteredSound;
|
||||
};
|
||||
|
||||
// Items that the player has in their inventory that they can use
|
||||
class CCSPlayerItem;
|
||||
class CBasePlayerItem: public CBaseAnimating
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user