Removal of Game_Input which has been made obsolete.
This commit is contained in:
parent
9e4eb1dc23
commit
30cd5f5e0a
|
@ -169,3 +169,27 @@ HLGameRules::PlayerKill(NSClientPlayer pp)
|
||||||
player pl = (player)pp;
|
player pl = (player)pp;
|
||||||
Damage_Apply(pl, pl, pl.health, WEAPON_NONE, DMG_SKIP_ARMOR);
|
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
|
w_shockrifle.qc
|
||||||
weapons.qc
|
weapons.qc
|
||||||
../../../base/src/shared/weapon_common.qc
|
../../../base/src/shared/weapon_common.qc
|
||||||
../../../valve/src/shared/input.qc
|
|
||||||
#endlist
|
#endlist
|
||||||
|
|
Loading…
Reference in New Issue