]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/g_hook.qh
Clear out PHYS_INPUT_TIMELENGTH from most of the physics code
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / g_hook.qh
index 1ebbb9b8f1984037c5c2acda9c9b4efdb3357c3b..900c23d36abac3eb9ce8dfb5edf0c1a8681c6bf3 100644 (file)
@@ -1,17 +1,17 @@
+#pragma once
+
 // Wazat's grappling hook
 .entity                hook;
-void GrapplingHookFrame();
 void RemoveGrapplingHook(entity pl);
-void SetGrappleHookBindings();
 // (note: you can change the hook impulse #'s to whatever you please)
 .float hook_time;
 
-float HOOK_FIRING = 1;
-float HOOK_REMOVING = 2;
-float HOOK_PULLING = 4;
-float HOOK_RELEASING = 8;
-float HOOK_WAITING_FOR_RELEASE = 16;
+const float HOOK_FIRING = BIT(0);
+const float HOOK_REMOVING = BIT(1);
+const float HOOK_PULLING = BIT(2);
+const float HOOK_RELEASING = BIT(3);
+const float HOOK_WAITING_FOR_RELEASE = BIT(4);
 .float hook_state;
 
 void GrappleHookInit();
-vector hook_shotorigin;
+vector hook_shotorigin[4];