mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-28 14:52:29 +00:00
Server: Prohibit AI damage to Player when Nuke is active
This commit is contained in:
parent
8cc9296371
commit
4446d96358
1 changed files with 3 additions and 1 deletions
|
@ -645,7 +645,9 @@ void() zombie_attack2 =
|
||||||
{
|
{
|
||||||
Window_Damage_Setup();
|
Window_Damage_Setup();
|
||||||
}
|
}
|
||||||
else if (self.enemy.classname == "player")
|
// motolegacy -- Prohibit damage to the Player if the Nuke Power-Up logic is currently
|
||||||
|
// running.
|
||||||
|
else if (self.enemy.classname == "player" && nuke_powerup_active == false)
|
||||||
{
|
{
|
||||||
if(vlen(self.enemy.origin - self.origin) < 60)
|
if(vlen(self.enemy.origin - self.origin) < 60)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue