X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Ftriggers%2Ffunc%2Fladder.qc;h=af5065643bf9a6957fd0de37d50cba53a7f58d9c;hb=fc15d72b041c9a748b605ba28735380fbe5b5b01;hp=e0108cd8f0f030e0eaaa6124c20f373fa15a349f;hpb=42a9e3d7ece2c716e5cd6899e90841acb7fb891b;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/triggers/func/ladder.qc b/qcsrc/common/triggers/func/ladder.qc index e0108cd8f..af5065643 100644 --- a/qcsrc/common/triggers/func/ladder.qc +++ b/qcsrc/common/triggers/func/ladder.qc @@ -15,27 +15,26 @@ void func_ladder_touch(entity this) EXACTTRIGGER_TOUCH; other.ladder_time = time + 0.1; - other.ladder_entity = self; + other.ladder_entity = this; } #ifdef SVQC -bool func_ladder_send(entity to, int sf) -{SELFPARAM(); +bool func_ladder_send(entity this, entity to, int sf) +{ WriteHeader(MSG_ENTITY, ENT_CLIENT_LADDER); - WriteString(MSG_ENTITY, self.classname); - WriteByte(MSG_ENTITY, self.skin); - WriteCoord(MSG_ENTITY, self.speed); + WriteString(MSG_ENTITY, this.classname); + WriteByte(MSG_ENTITY, this.skin); + WriteCoord(MSG_ENTITY, this.speed); - trigger_common_write(self, false); + trigger_common_write(this, false); return true; } void func_ladder_link(entity this) { - this.SendEntity = func_ladder_send; - this.SendFlags = 0xFFFFFF; + trigger_link(this, func_ladder_send); //this.model = "null"; }