X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Ftriggers%2Ftrigger%2Fjumppads.qc;h=67fd752207989e7277c176373c5ae1f22a759cd5;hb=47ac01ac700f05fceef988e8051282f0d41ddf6c;hp=8d08e968bdff08d9b419f8fef259df3d9035c840;hpb=0042a63cfa8ef7889d1f9ed24e3644615ffbef2a;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/triggers/trigger/jumppads.qc b/qcsrc/common/triggers/trigger/jumppads.qc index 8d08e968b..67fd75220 100644 --- a/qcsrc/common/triggers/trigger/jumppads.qc +++ b/qcsrc/common/triggers/trigger/jumppads.qc @@ -3,12 +3,12 @@ #include "jumppads.qh" #include -void trigger_push_use() -{SELFPARAM(); +void trigger_push_use(entity this, entity actor, entity trigger) +{ if(teamplay) { - self.team = activator.team; - self.SendFlags |= 2; + this.team = actor.team; + this.SendFlags |= 2; } } #endif @@ -235,10 +235,7 @@ void trigger_push_touch() } if(this.enemy.target) - { - activator = other; - WITHSELF(this.enemy, SUB_UseTargets()); - } + SUB_UseTargets(this.enemy, other, other); // TODO: do we need other as trigger too? if (other.flags & FL_PROJECTILE) { @@ -446,7 +443,7 @@ NET_HANDLE(ENT_CLIENT_TRIGGER_PUSH, bool isnew) this.active = ReadByte(); this.height = ReadCoord(); - trigger_common_read(true); + trigger_common_read(this, true); this.entremove = trigger_remove_generic; this.solid = SOLID_TRIGGER;