X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fg_hook.qh;h=900c23d36abac3eb9ce8dfb5edf0c1a8681c6bf3;hb=4d27b8affb4defa4f2d14eaf9d87b996c57459f3;hp=140a93cfdf02bafe87d983aba29479ee16a94a7c;hpb=7bd8f8562a392fda3ac881b1fbe2a35a5ef0f5c8;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/g_hook.qh b/qcsrc/server/g_hook.qh index 140a93cfd..900c23d36 100644 --- a/qcsrc/server/g_hook.qh +++ b/qcsrc/server/g_hook.qh @@ -1,20 +1,17 @@ -#ifndef HOOK_H -#define HOOK_H +#pragma once // Wazat's grappling hook .entity hook; 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(); vector hook_shotorigin[4]; -#endif