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
|
@ -22,6 +22,13 @@ void Flashlight_Toggle(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef VALVE
|
||||||
|
player pl = (player)self;
|
||||||
|
if (!(pl.g_items & ITEM_SUIT)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (self.health <= 0) {
|
if (self.health <= 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue