]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/hook.qh
Purge autocvars.qh from the codebase, cvars are defined in the headers of the feature...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / hook.qh
1 #pragma once
2
3 float autocvar_g_balance_grapplehook_airfriction;
4 float autocvar_g_balance_grapplehook_force_rubber;
5 float autocvar_g_balance_grapplehook_force_rubber_overstretch;
6 float autocvar_g_balance_grapplehook_health;
7 float autocvar_g_balance_grapplehook_length_min;
8 float autocvar_g_balance_grapplehook_speed_fly;
9 float autocvar_g_balance_grapplehook_speed_pull;
10 float autocvar_g_balance_grapplehook_stretch;
11 float autocvar_g_balance_grapplehook_damagedbycontents;
12 float autocvar_g_balance_grapplehook_refire;
13 int autocvar_g_balance_grapplehook_pull_frozen;
14 float autocvar_g_balance_grapplehook_nade_time;
15 bool autocvar_g_balance_grapplehook_gravity;
16 bool autocvar_g_balance_grapplehook_crouchslide;
17
18 // Wazat's grappling hook
19 .entity hook;
20 void GrapplingHookThink(entity this);
21 void RemoveGrapplingHooks(entity pl);
22 void RemoveHook(entity this);
23 // (note: you can change the hook impulse #'s to whatever you please)
24 .float hook_time;
25
26 .float hook_length;
27
28 const float HOOK_FIRING = BIT(0);
29 const float HOOK_REMOVING = BIT(1);
30 const float HOOK_PULLING = BIT(2);
31 const float HOOK_RELEASING = BIT(3);
32 const float HOOK_WAITING_FOR_RELEASE = BIT(4);
33 .float hook_state;
34 .int state;
35
36 vector hook_shotorigin[4];
37