]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/g_hook.qh
Merge branch 'master' into Mario/weaponarena_available
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / g_hook.qh
1 #pragma once
2
3 // Wazat's grappling hook
4 .entity         hook;
5 void GrapplingHookThink(entity this);
6 void RemoveGrapplingHooks(entity pl);
7 void RemoveHook(entity this);
8 // (note: you can change the hook impulse #'s to whatever you please)
9 .float hook_time;
10
11 .float hook_length;
12
13 const float HOOK_FIRING = BIT(0);
14 const float HOOK_REMOVING = BIT(1);
15 const float HOOK_PULLING = BIT(2);
16 const float HOOK_RELEASING = BIT(3);
17 const float HOOK_WAITING_FOR_RELEASE = BIT(4);
18 .float hook_state;
19 .int state;
20
21 void GrappleHookInit();
22 vector hook_shotorigin[4];
23