Half-Life: Only use flashlight when ITEM_SUIT is present.
This commit is contained in:
parent
7541db9f63
commit
05980cfb3e
1 changed files with 8 additions and 1 deletions
|
@ -21,7 +21,14 @@ void Flashlight_Toggle(void)
|
|||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#ifdef VALVE
|
||||
player pl = (player)self;
|
||||
if (!(pl.g_items & ITEM_SUIT)) {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (self.health <= 0) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue