Removal of Game_Input which has been made obsolete.
This commit is contained in:
parent
9e4eb1dc23
commit
30cd5f5e0a
2 changed files with 24 additions and 1 deletions
|
@ -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;
|
||||
}
|
|
@ -45,5 +45,4 @@ w_penguin.qc
|
|||
w_shockrifle.qc
|
||||
weapons.qc
|
||||
../../../base/src/shared/weapon_common.qc
|
||||
../../../valve/src/shared/input.qc
|
||||
#endlist
|
||||
|
|
Loading…
Reference in a new issue