Hook: merge offhand and weapon behaviour
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / g_hook.qh
1 #ifndef HOOK_H
2 #define HOOK_H
3
4 // Wazat's grappling hook
5 .entity         hook;
6 void RemoveGrapplingHook(entity pl);
7 void SetGrappleHookBindings();
8 // (note: you can change the hook impulse #'s to whatever you please)
9 .float hook_time;
10
11 const float HOOK_FIRING = 1;
12 const float HOOK_REMOVING = 2;
13 const float HOOK_PULLING = 4;
14 const float HOOK_RELEASING = 8;
15 const float HOOK_WAITING_FOR_RELEASE = 16;
16 .float hook_state;
17
18 void GrappleHookInit();
19 vector hook_shotorigin[4];
20 #endif