X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fwarpzonelib%2Fserver.qc;h=033594d2ef8de8f7b9d07e4f624c06f79b3282e5;hb=70b84d37e2cf1d5336c327cb43593024de2a2c6c;hp=5d0afc819e903212b4eb9354558ff141b96333d1;hpb=a95e5467c6e1e20a886b19bd6464ec2b005ff53f;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/warpzonelib/server.qc b/qcsrc/warpzonelib/server.qc index 5d0afc819..033594d2e 100644 --- a/qcsrc/warpzonelib/server.qc +++ b/qcsrc/warpzonelib/server.qc @@ -7,8 +7,6 @@ #include "../common/constants.qh" #include "../common/triggers/subs.qh" #include "../common/util.qh" - #include "../dpdefs/dpextensions.qh" - #include "../dpdefs/progsdefs.qh" #include "../server/command/common.qh" #include "../server/constants.qh" #include "../server/defs.qh" @@ -680,18 +678,18 @@ float warpzone_initialized; entity warpzone_position_first; entity warpzone_camera_first; .entity warpzone_next; -void spawnfunc_misc_warpzone_position(void) -{SELFPARAM(); +spawnfunc(misc_warpzone_position) +{ // "target", "angles", "origin" self.warpzone_next = warpzone_position_first; warpzone_position_first = self; } -void spawnfunc_trigger_warpzone_position(void) +spawnfunc(trigger_warpzone_position) { - spawnfunc_misc_warpzone_position(); + spawnfunc_misc_warpzone_position(this); } -void spawnfunc_trigger_warpzone(void) -{SELFPARAM(); +spawnfunc(trigger_warpzone) +{ // warp zone entities must have: // "killtarget" pointing to a target_position with a direction arrow // that points AWAY from the warp zone, and that is inside @@ -723,8 +721,8 @@ void spawnfunc_trigger_warpzone(void) self.warpzone_next = warpzone_first; warpzone_first = self; } -void spawnfunc_func_camera(void) -{SELFPARAM(); +spawnfunc(func_camera) +{ if(!self.scale) self.scale = self.modelscale; if(!self.scale) @@ -877,14 +875,14 @@ void trigger_warpzone_reconnect_use() setself(e); } -void spawnfunc_trigger_warpzone_reconnect() -{SELFPARAM(); +spawnfunc(trigger_warpzone_reconnect) +{ self.use = trigger_warpzone_reconnect_use; } -void spawnfunc_target_warpzone_reconnect() +spawnfunc(target_warpzone_reconnect) { - spawnfunc_trigger_warpzone_reconnect(); // both names make sense here :( + spawnfunc_trigger_warpzone_reconnect(this); // both names make sense here :( } void WarpZone_PlayerPhysics_FixVAngle(void)