]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add a couple of skipped bot_attack cases
authorMario <mario@smbclan.net>
Mon, 22 Aug 2016 09:40:15 +0000 (19:40 +1000)
committerMario <mario@smbclan.net>
Mon, 22 Aug 2016 09:40:15 +0000 (19:40 +1000)
qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc
qcsrc/common/triggers/func/door_secret.qc

index 3f48fd15a91b7ee50c5255ab04f96eeffacdcbe9..8e60bc30897a4ac897ea19c594630b68987989a3 100644 (file)
@@ -220,6 +220,8 @@ void onslaught_updatelinks()
                        if (l.goalentity)
                        {
                                l.goalentity.takedamage = DAMAGE_NO;
+                               if(l.goalentity.bot_attack)
+                                       IL_REMOVE(g_bot_targets, l.goalentity);
                                l.goalentity.bot_attack = false;
                        }
                }
@@ -229,6 +231,8 @@ void onslaught_updatelinks()
                        if (l.goalentity)
                        {
                                l.goalentity.takedamage = DAMAGE_AIM;
+                               if(!l.goalentity.bot_attack)
+                                       IL_PUSH(g_bot_targets, l.goalentity);
                                l.goalentity.bot_attack = true;
                        }
                }
index efe997c855350d402a9e4a9a0221eb0099e79862..0b8930aec5a494aca16a3a889a5b02fdb2df8bf9 100644 (file)
@@ -20,6 +20,8 @@ void fd_secret_use(entity this, entity actor, entity trigger)
        string message_save;
 
        this.health = 10000;
+       if(!this.bot_attack)
+               IL_PUSH(g_bot_targets, this);
        this.bot_attack = true;
 
        // exit if still moving around...