X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fg_hook.qh;h=719bf5b605bdbfc1832761610f0f0ac8a3c88670;hb=646e82672a7a8b8db0be0caf5dbd062b0d04da96;hp=2904c3230010db8ec0cde840d63cc9595e2b66e5;hpb=117b5f5c44a743f9189e378bc0fcc33c23068c27;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/g_hook.qh b/qcsrc/server/g_hook.qh index 2904c3230..719bf5b60 100644 --- a/qcsrc/server/g_hook.qh +++ b/qcsrc/server/g_hook.qh @@ -1,16 +1,17 @@ +#pragma once + // Wazat's grappling hook .entity hook; -void GrapplingHookFrame(); -void RemoveGrapplingHook(entity pl); -void SetGrappleHookBindings(); +void RemoveGrapplingHooks(entity pl); +void RemoveHook(entity this); // (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();