X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fg_hook.qh;h=1ed78e2745d9d4a4cdfff18792f9399af50fb7e6;hp=95ba88205b90666a612cb4232b7c00774dba76b0;hb=e0012447bfce1b551df3dc01b043655aa93dafad;hpb=7bcb3a89b3271e018da4d92437dc5ba125ea8698 diff --git a/qcsrc/server/g_hook.qh b/qcsrc/server/g_hook.qh index 95ba88205..1ed78e274 100644 --- a/qcsrc/server/g_hook.qh +++ b/qcsrc/server/g_hook.qh @@ -1,19 +1,23 @@ -#ifndef HOOK_H -#define HOOK_H +#pragma once // Wazat's grappling hook .entity hook; -void RemoveGrapplingHook(entity pl); +void GrapplingHookThink(entity this); +void RemoveGrapplingHooks(entity pl); +void RemoveHook(entity this); // (note: you can change the hook impulse #'s to whatever you please) .float hook_time; +.float hook_length; + 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; +.int state; void GrappleHookInit(); vector hook_shotorigin[4]; -#endif +