X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Flib%2Fwarpzone%2Fserver.qh;h=4287ef60de798195e0e963d93736a7348a88d175;hb=9380d852b4541b6e3906313f34fc666997da6fa7;hp=0e0594a1ba403d0ea422a6e8a66a9f9e8a464ae7;hpb=71ce27cd515d7e8157535466ef357f83253b64f0;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/lib/warpzone/server.qh b/qcsrc/lib/warpzone/server.qh index 0e0594a1ba..4287ef60de 100644 --- a/qcsrc/lib/warpzone/server.qh +++ b/qcsrc/lib/warpzone/server.qh @@ -1,21 +1,20 @@ -#ifndef LIB_WARPZONE_SERVER_H -#define LIB_WARPZONE_SERVER_H +#pragma once #ifdef SVQC +entity warpzone_first; .entity warpzone_next; + void WarpZone_StartFrame(); -float WarpZone_Projectile_Touch(); +float WarpZone_Projectile_Touch(entity this, entity toucher); // THESE must be defined by calling QC code: void WarpZone_PostTeleportPlayer_Callback(entity pl); -float WarpZone_Projectile_Touch_ImpactFilter_Callback(); +bool WarpZone_Projectile_Touch_ImpactFilter_Callback(entity this, entity toucher); // server must also define a float called ENT_CLIENT_WARPZONE for the initial byte of WarpZone entities //const float ENT_CLIENT_WARPZONE; //const float ENT_CLIENT_WARPZONE_CAMERA; -void WarpZone_PlayerPhysics_FixVAngle(); +void WarpZone_PlayerPhysics_FixVAngle(entity this); void WarpZone_PostInitialize_Callback(); #endif - -#endif