Xonotic
impulse.qh File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Variables

int falloff
 
const int FALLOFF_LINEAR = 1
 
const int FALLOFF_LINEAR_INV = 2
 
const int FALLOFF_NO = 0
 
const float IMPULSE_DEFAULT_ACCEL_STRENGTH = 0.9
 
const float IMPULSE_DEFAULT_DIRECTIONAL_STRENGTH = 950
 
const float IMPULSE_DEFAULT_RADIAL_STRENGTH = 2000
 
const float IMPULSE_DIRECTIONAL_MAX_ACCEL_FACTOR = 8
 
const int IMPULSE_DIRECTIONAL_SPEEDTARGET = BIT(6)
 
const float IMPULSE_MAX_PUSHDELTATIME = 0.15
 
float lastpushtime
 
float radius
 
float strength
 

Variable Documentation

◆ falloff

int falloff

Definition at line 12 of file impulse.qh.

Referenced by anticheat_physics(), and trigger_impulse_touch_radial().

◆ FALLOFF_LINEAR

const int FALLOFF_LINEAR = 1

Definition at line 17 of file impulse.qh.

Referenced by trigger_impulse_touch_radial().

◆ FALLOFF_LINEAR_INV

const int FALLOFF_LINEAR_INV = 2

Definition at line 18 of file impulse.qh.

Referenced by trigger_impulse_touch_radial().

◆ FALLOFF_NO

const int FALLOFF_NO = 0

Definition at line 16 of file impulse.qh.

◆ IMPULSE_DEFAULT_ACCEL_STRENGTH

const float IMPULSE_DEFAULT_ACCEL_STRENGTH = 0.9

Definition at line 24 of file impulse.qh.

Referenced by trigger_impulse_touch_radial().

◆ IMPULSE_DEFAULT_DIRECTIONAL_STRENGTH

const float IMPULSE_DEFAULT_DIRECTIONAL_STRENGTH = 950

Definition at line 23 of file impulse.qh.

Referenced by trigger_impulse_touch_radial().

◆ IMPULSE_DEFAULT_RADIAL_STRENGTH

const float IMPULSE_DEFAULT_RADIAL_STRENGTH = 2000

Definition at line 22 of file impulse.qh.

Referenced by trigger_impulse_touch_radial().

◆ IMPULSE_DIRECTIONAL_MAX_ACCEL_FACTOR

const float IMPULSE_DIRECTIONAL_MAX_ACCEL_FACTOR = 8

Definition at line 28 of file impulse.qh.

Referenced by trigger_impulse_touch_directional().

◆ IMPULSE_DIRECTIONAL_SPEEDTARGET

const int IMPULSE_DIRECTIONAL_SPEEDTARGET = BIT(6)

Definition at line 20 of file impulse.qh.

Referenced by trigger_impulse_touch_directional().

◆ IMPULSE_MAX_PUSHDELTATIME

const float IMPULSE_MAX_PUSHDELTATIME = 0.15

◆ lastpushtime

float lastpushtime

Definition at line 14 of file impulse.qh.

◆ radius

◆ strength