X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fg_hook.qh;h=95ba88205b90666a612cb4232b7c00774dba76b0;hb=92749b51e06f4fd2a89d7593a9db7500818ad2fd;hp=26189143cf2aa4680c07350e77ec31d7b6280d15;hpb=6bd8012ca8b6f81cb0c1cb558d130bc9e1c44682;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/g_hook.qh b/qcsrc/server/g_hook.qh index 26189143c..95ba88205 100644 --- a/qcsrc/server/g_hook.qh +++ b/qcsrc/server/g_hook.qh @@ -3,18 +3,15 @@ // Wazat's grappling hook .entity hook; -void GrapplingHookFrame(); -void _GrapplingHookFrame(); void RemoveGrapplingHook(entity pl); -void SetGrappleHookBindings(); // (note: you can change the hook impulse #'s to whatever you please) .float hook_time; -const float HOOK_FIRING = 1; -const float HOOK_REMOVING = 2; -const float HOOK_PULLING = 4; -const float HOOK_RELEASING = 8; -const 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();