]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Network movedir (should fix jumppads that don't use targets)
authorMario <mario@smbclan.net>
Sat, 11 Jun 2016 06:44:29 +0000 (16:44 +1000)
committerMario <mario@smbclan.net>
Sat, 11 Jun 2016 06:44:29 +0000 (16:44 +1000)
qcsrc/common/triggers/trigger/jumppads.qc

index 9e16c4ef06e128312859f57a16a3076cd10a9158..8b84a651db874342b0eb56dfecb7cc232d5b2615 100644 (file)
@@ -346,6 +346,10 @@ float trigger_push_send(entity this, entity to, float sf)
        WriteByte(MSG_ENTITY, this.active);
        WriteCoord(MSG_ENTITY, this.height);
 
+       WriteCoord(MSG_ENTITY, this.movedir_x);
+       WriteCoord(MSG_ENTITY, this.movedir_y);
+       WriteCoord(MSG_ENTITY, this.movedir_z);
+
        trigger_common_write(this, true);
 
        return true;
@@ -442,6 +446,10 @@ NET_HANDLE(ENT_CLIENT_TRIGGER_PUSH, bool isnew)
        this.active = ReadByte();
        this.height = ReadCoord();
 
+       this.movedir_x = ReadCoord();
+       this.movedir_y = ReadCoord();
+       this.movedir_z = ReadCoord();
+
        trigger_common_read(this, true);
 
        this.entremove = trigger_remove_generic;