X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fg_hook.qh;h=2a2d566b35670b97a9ace13a126349e2f7e0d80a;hb=7174b3fe239d9bf24a6f3808ac4b19a18bf40163;hp=b8e0da557d8358c3b2e9f7ba68c4ef447eea4849;hpb=0c6fc307c63947463f12d20b1774b714b54d846f;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/g_hook.qh b/qcsrc/server/g_hook.qh index b8e0da557..2a2d566b3 100644 --- a/qcsrc/server/g_hook.qh +++ b/qcsrc/server/g_hook.qh @@ -1,17 +1,20 @@ +#ifndef HOOK_H +#define HOOK_H + // 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[4]; +#endif