Remove deprecated EV_CHAT_VOX. Update game-mode zones to be NSBrushTrigger

based instead of CBaseTrigger.
This commit is contained in:
Marco Cawthorne 2021-10-20 01:20:37 +02:00
parent 2dbf8e32c9
commit c5fbaafd98
Signed by: eukara
GPG key ID: C196CD8BA993248A
7 changed files with 9 additions and 12 deletions

View file

@ -114,9 +114,6 @@ switch (fHeader) {
CSQC_Parse_Print(sprintf("^xF80[TEAM] ^7%s^7^xF80: %s", strName2, sMessage2), PRINT_CHAT);
break;
case EV_CHAT_VOX:
Vox_Play(readstring());
break;
case EV_VIEWMODEL:
View_PlayAnimation(readbyte());
break;

View file

@ -55,9 +55,9 @@ Game_ParseClientCommand(string cmd)
string timestring;
float timeleft;
timeleft = cvar("mp_timelimit") - (time / 60);
timestring = Vox_TimeToString(timeleft);
timestring = Util_TimeToString(timeleft);
msg = sprintf("we have %s minutes remaining", timestring);
Vox_Singlecast(self, msg);
bprint(PRINT_CHAT, msg);
return;
}

View file

@ -27,7 +27,7 @@ Used in the bomb defusal mode (de_* maps).
Once the bomb explodes inside this volume, it'll trigger its targets.
*/
class func_bomb_target:CBaseTrigger
class func_bomb_target:NSBrushTrigger
{
void(void) func_bomb_target;

View file

@ -40,7 +40,7 @@ Choices for 'team' include:
2 = Counter-Terrorist
*/
class func_buyzone:CBaseTrigger
class func_buyzone:NSBrushTrigger
{
void(void) func_buyzone;
@ -68,6 +68,6 @@ func_buyzone::Respawn(void)
void
func_buyzone::func_buyzone(void)
{
CBaseTrigger::CBaseTrigger();
NSBrushTrigger::NSBrushTrigger();
InitBrushTrigger();
}

View file

@ -26,7 +26,7 @@ Terrorist escape zone.
Used in the Escape mode (es_* maps).
*/
class func_escapezone:CBaseTrigger
class func_escapezone:NSBrushTrigger
{
virtual void(void) Respawn;
};

View file

@ -28,7 +28,7 @@ If neither a func_hostage_rescue or a info_hostage_rescue is placed,
zones will be placed in Counter-Terrorist player spawn nodes automatically.
*/
class func_hostage_rescue:CBaseTrigger
class func_hostage_rescue:NSBrushTrigger
{
void(void) func_hostage_rescue;
@ -81,6 +81,6 @@ func_hostage_rescue::Respawn(void)
void
func_hostage_rescue::func_hostage_rescue(void)
{
CBaseTrigger::CBaseTrigger();
NSBrushTrigger::NSBrushTrigger();
InitBrushTrigger();
}

View file

@ -26,7 +26,7 @@ VIP safety zone.
Used in the assassination mode (as_* maps).
*/
class func_vip_safetyzone:CBaseTrigger
class func_vip_safetyzone:NSBrushTrigger
{
virtual void(void) Respawn;
};