Removal of Game_Input which has been made obsolete.

This commit is contained in:
Marco Cawthorne 2023-01-11 17:45:32 -08:00
parent 9e4eb1dc23
commit 30cd5f5e0a
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
2 changed files with 24 additions and 1 deletions

View File

@ -169,3 +169,27 @@ HLGameRules::PlayerKill(NSClientPlayer pp)
player pl = (player)pp;
Damage_Apply(pl, pl, pl.health, WEAPON_NONE, DMG_SKIP_ARMOR);
}
void
TriggerFlashlight(NSClient target)
{
entity oldself = self;
self = target;
Flashlight_Toggle();
self = oldself;
}
bool
HLGameRules::ImpulseCommand(NSClient bp, float num)
{
switch (num) {
case 100:
TriggerFlashlight(bp);
break;
default:
return super::ImpulseCommand(bp, num);
}
return true;
}

View File

@ -45,5 +45,4 @@ w_penguin.qc
w_shockrifle.qc
weapons.qc
../../../base/src/shared/weapon_common.qc
../../../valve/src/shared/input.qc
#endlist