]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Hopefully fix gameplay change 361/head
authorMario <mario@smbclan.net>
Mon, 22 Aug 2016 11:13:54 +0000 (21:13 +1000)
committerMario <mario@smbclan.net>
Mon, 22 Aug 2016 11:13:54 +0000 (21:13 +1000)
qcsrc/common/triggers/func/conveyor.qc
qcsrc/common/triggers/func/conveyor.qh
qcsrc/common/weapons/weapon/arc.qc
qcsrc/common/weapons/weapon/electro.qc
qcsrc/server/bot/default/navigation.qc
qcsrc/server/client.qc

index d8bc80c36ef7c855b690448fc003feff9d6d1a67..90328da23002dd61a1a8cc37fb9b6c93705fb7d9 100644 (file)
@@ -1,9 +1,6 @@
 #include "conveyor.qh"
 REGISTER_NET_LINKED(ENT_CLIENT_CONVEYOR)
 
-IntrusiveList g_conveyed;
-STATIC_INIT(g_conveyed) { g_conveyed = IL_NEW(); }
-
 void conveyor_think(entity this)
 {
 #ifdef CSQC
index 6f70f09beec2219624baeca92e2cd7deaa104fb4..c12b52d2dd19118e4d0a7209329796446922cbeb 100644 (file)
@@ -1 +1,4 @@
 #pragma once
+
+IntrusiveList g_conveyed;
+STATIC_INIT(g_conveyed) { g_conveyed = IL_NEW(); }
index a6da6ce62ec866b5e4f3d9538179b39b39a8274e..a61dc0f031d3e9ed4da12e1be93b8e69c703b9fc 100644 (file)
@@ -692,6 +692,7 @@ void W_Arc_Beam(float burst, entity actor, .entity weaponentity)
        beam.owner = actor;
        set_movetype(beam, MOVETYPE_NONE);
        beam.bot_dodge = true;
+       IL_PUSH(g_bot_dodge, beam);
        beam.bot_dodgerating = WEP_CVAR(arc, beam_damage);
        beam.beam_bursting = burst;
        Net_LinkEntity(beam, false, 0, W_Arc_Beam_Send);
index a104f952f60176d3558b1514d04d5c0555721b9c..7e05241a490873f200bbd1ecbeb5cbd8ec43e0ab 100644 (file)
@@ -341,6 +341,8 @@ void W_Electro_Orb_Stick(entity this, entity to)
        newproj.nextthink = this.nextthink;
        newproj.use = this.use;
        newproj.flags = this.flags;
+       IL_PUSH(g_projectiles, newproj);
+       IL_PUSH(g_bot_dodge, newproj);
 
        delete(this);
 
index 73b8c9d92b189de32cabec5c2d30854d9a7a2a96..0c563d1ff9e2f1953775caa14b437171fe74c480 100644 (file)
@@ -1000,7 +1000,7 @@ void botframe_updatedangerousobjects(float maxupdate)
                danger = 0;
                m1 = it.mins;
                m2 = it.maxs;
-               IL_EACH(g_bot_dodge, true,
+               IL_EACH(g_bot_dodge, it.bot_dodge,
                {
                        v = it.origin;
                        v.x = bound(m1_x, v.x, m2_x);
index f06f9ae652922f1b0a2b0a63fe23b0e7f2c994b0..9f044c3c6de3e75479c785b5d05c15ece08c57d6 100644 (file)
@@ -27,6 +27,7 @@
 
 #include <common/effects/qc/globalsound.qh>
 
+#include "../common/triggers/func/conveyor.qh"
 #include "../common/triggers/teleporters.qh"
 
 #include "../common/vehicles/all.qh"