]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/g_hook.qh
Rename defs to qh
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / g_hook.qh
1 #ifndef HOOK_H
2 #define HOOK_H
3
4 #if defined(CSQC)
5 #elif defined(MENUQC)
6 #elif defined(SVQC)
7     #include "../dpdefs/progsdefs.qh"
8     #include "../dpdefs/dpextensions.qh"
9     #include "../warpzonelib/common.qh"
10     #include "../warpzonelib/server.qh"
11     #include "../common/constants.qh"
12     #include "../common/util.qh"
13     #include "../common/weapons/weapons.qh"
14     #include "autocvars.qh"
15     #include "constants.qh"
16     #include "defs.qh"
17     #include "vehicles/vehicles_def.qh"
18     #include "command/common.qh"
19     #include "g_hook.qh"
20     #include "round_handler.qh"
21 #endif
22
23 // Wazat's grappling hook
24 .entity         hook;
25 void GrapplingHookFrame();
26 void RemoveGrapplingHook(entity pl);
27 void SetGrappleHookBindings();
28 // (note: you can change the hook impulse #'s to whatever you please)
29 .float hook_time;
30
31 const float HOOK_FIRING = 1;
32 const float HOOK_REMOVING = 2;
33 const float HOOK_PULLING = 4;
34 const float HOOK_RELEASING = 8;
35 const float HOOK_WAITING_FOR_RELEASE = 16;
36 .float hook_state;
37
38 void GrappleHookInit();
39 vector hook_shotorigin[4];
40 #endif