Xonotic
impulse.qh
Go to the documentation of this file.
1 #pragma once
2 
3 #ifdef SVQC
4 float autocvar_g_triggerimpulse_accel_multiplier;
5 float autocvar_g_triggerimpulse_accel_power;
6 float autocvar_g_triggerimpulse_directional_multiplier;
7 float autocvar_g_triggerimpulse_radial_multiplier;
8 #endif
9 
10 // tZorks trigger impulse / gravity
11 .float radius;
12 .int falloff;
13 .float strength;
14 .float lastpushtime;
15 
16 const int FALLOFF_NO = 0;
17 const int FALLOFF_LINEAR = 1;
18 const int FALLOFF_LINEAR_INV = 2;
19 
21 
25 
26 const float IMPULSE_MAX_PUSHDELTATIME = 0.15;
27 
const int IMPULSE_DIRECTIONAL_SPEEDTARGET
Definition: impulse.qh:20
const float IMPULSE_DEFAULT_ACCEL_STRENGTH
Definition: impulse.qh:24
int falloff
Definition: impulse.qh:12
float strength
Definition: impulse.qh:13
float radius
Definition: impulse.qh:11
const int FALLOFF_LINEAR
Definition: impulse.qh:17
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
Definition: bits.qh:8
const int FALLOFF_NO
Definition: impulse.qh:16
const float IMPULSE_DIRECTIONAL_MAX_ACCEL_FACTOR
Definition: impulse.qh:28
const float IMPULSE_DEFAULT_DIRECTIONAL_STRENGTH
Definition: impulse.qh:23
const float IMPULSE_MAX_PUSHDELTATIME
Definition: impulse.qh:26
float lastpushtime
Definition: impulse.qh:14
const int FALLOFF_LINEAR_INV
Definition: impulse.qh:18
const float IMPULSE_DEFAULT_RADIAL_STRENGTH
Definition: impulse.qh:22