Fix up code against latest RT.

This commit is contained in:
Marco Cawthorne 2024-10-16 23:09:17 -07:00
parent bc5e8aaae1
commit 78096dc2a8
7 changed files with 3 additions and 24 deletions

View file

@ -16,8 +16,6 @@
#include "gamerules.h"
#include "../../../valve/src/shared/defs.h"
#include "../../../valve/src/server/items.h"
#include "../../../valve/src/server/flashlight.h"
#include "sentry.h"
var bool g_tfcHasBlueTeam = false;

View file

@ -249,7 +249,7 @@ TFCDispenser::TFCDispenser(void)
SetMovetype(MOVETYPE_NONE);
SetSize([-16,-16,0], [16,16,48]);
SetHealth(150);
SetTakedamage(DAMAGE_YES);
MakeVulnerable();
}
void

View file

@ -27,7 +27,6 @@ class TFCGameRules:CGameRules
virtual void PlayerSpawn(NSClientPlayer);
virtual void PlayerKill(NSClientPlayer);
virtual void PlayerRespawn(NSClientPlayer);
virtual void PlayerDeath(NSClientPlayer);
virtual void DropGoalItem(NSClientPlayer);
virtual float ImpulseCommand(NSClient, float);
virtual void LevelNewParms(void);

View file

@ -122,20 +122,6 @@ TFCGameRules_PlayerRespawn(void)
rule.PlayerRespawn((NSClientPlayer)self);
}
void
TFCGameRules::PlayerDeath(NSClientPlayer pp)
{
TFPlayer pl = (TFPlayer)pp;
DropGoalItem(pp);
pl.SetSolid(SOLID_NOT);
pl.SetMovetype(MOVETYPE_NONE);
pl.ScheduleThink(TFCGameRules_PlayerRespawn, 4.0f);
/* play the iconic death sound */
Sound_Play(pl, CHAN_VOICE, "player_tfc.death");
}
void
TFCGameRules::PlayerKill(NSClientPlayer pp)

View file

@ -16,7 +16,6 @@
../../../src/gs-entbase/shared.src
defs.h
../shared/include.src
../../../valve/src/server/player.qc
dispenser.qc
sentry.qc
teleporter.qc
@ -36,7 +35,6 @@ nades.qc
gamerules.qc
client.qc
server.qc
../../../valve/src/server/flashlight.qc
spawn.qc
../../../src/server/include.src
../../../src/shared/include.src

View file

@ -124,10 +124,10 @@ TFCSentry::TFCSentry(void)
SetMovetype(MOVETYPE_NONE);
SetSize([-16,-16,0], [16,16,20]);
SetTakedamage(DAMAGE_YES);
SetHealth(100);
m_eHead.SetTakedamage(DAMAGE_YES);
MakeVulnerable();
m_eHead.SetHealth(100);
m_eHead.MakeVulnerable();
m_state = SENTRY_IDLE;
}

View file

@ -42,8 +42,6 @@ Game_Worldspawn(void)
precache_model("models/sentry3.mdl");
precache_model("models/player.mdl");
precache_model("models/w_weaponbox.mdl");
Player_Precache();
FX_Corpse_Init();
}