|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
Go to the source code of this file.
Functions | |
| float | determine_force (entity player) |
| void | dodging_ResetPlayer (entity this) |
| bool | is_close_to_ground (entity this, float threshold, vector up) |
| bool | is_close_to_wall (entity this, float threshold, vector forward, vector right) |
| MUTATOR_HOOKFUNCTION (dodging, GetPressedKeys) | |
| MUTATOR_HOOKFUNCTION (dodging, MakePlayerObserver) | |
| MUTATOR_HOOKFUNCTION (dodging, PlayerPhysics) | |
| MUTATOR_HOOKFUNCTION (dodging, PlayerSpawn) | |
| void | PM_dodging (entity this) |
| bool | PM_dodging_checkpressedkeys (entity this) |
| void | PM_dodging_GetPressedKeys (entity this) |
| REPLICATE (cvar_cl_dodging, bool, "cl_dodging") | |
| REPLICATE (cvar_cl_dodging_timeout, float, "cl_dodging_timeout") | |
| #define PHYS_DODGING g_dodging |
Definition at line 5 of file sv_dodging.qc.
| #define PHYS_DODGING_AIR autocvar_sv_dodging_air_dodging |
Definition at line 18 of file sv_dodging.qc.
Referenced by PM_dodging(), and PM_dodging_checkpressedkeys().
| #define PHYS_DODGING_AIR_MAXSPEED autocvar_sv_dodging_air_maxspeed |
Definition at line 20 of file sv_dodging.qc.
Referenced by PM_dodging_checkpressedkeys().
| #define PHYS_DODGING_CLIENTSELECT autocvar_sv_dodging_clientselect |
Definition at line 21 of file sv_dodging.qc.
Referenced by PM_dodging().
| #define PHYS_DODGING_DELAY autocvar_sv_dodging_delay |
Definition at line 6 of file sv_dodging.qc.
Referenced by PM_dodging_checkpressedkeys().
| #define PHYS_DODGING_DISTANCE_THRESHOLD autocvar_sv_dodging_wall_distance_threshold |
Definition at line 7 of file sv_dodging.qc.
Referenced by PM_dodging_checkpressedkeys().
| #define PHYS_DODGING_ENABLED | ( | s | ) |
Definition at line 46 of file sv_dodging.qc.
Referenced by PM_dodging().
| #define PHYS_DODGING_FROZEN_DOUBLETAP autocvar_sv_dodging_frozen_doubletap |
Definition at line 8 of file sv_dodging.qc.
Referenced by PM_dodging_checkpressedkeys().
| #define PHYS_DODGING_HEIGHT_THRESHOLD autocvar_sv_dodging_height_threshold |
Definition at line 9 of file sv_dodging.qc.
Referenced by PM_dodging_checkpressedkeys().
| #define PHYS_DODGING_HORIZ_FORCE_FASTEST autocvar_sv_dodging_horiz_force_fastest |
Definition at line 13 of file sv_dodging.qc.
Referenced by determine_force().
| #define PHYS_DODGING_HORIZ_FORCE_FROZEN autocvar_sv_dodging_horiz_force_frozen |
Definition at line 14 of file sv_dodging.qc.
Referenced by determine_force().
| #define PHYS_DODGING_HORIZ_FORCE_SLOWEST autocvar_sv_dodging_horiz_force_slowest |
Definition at line 12 of file sv_dodging.qc.
Referenced by determine_force().
| #define PHYS_DODGING_HORIZ_SPEED_MAX autocvar_sv_dodging_horiz_speed_max |
Definition at line 11 of file sv_dodging.qc.
Referenced by determine_force().
| #define PHYS_DODGING_HORIZ_SPEED_MIN autocvar_sv_dodging_horiz_speed_min |
Definition at line 10 of file sv_dodging.qc.
Referenced by determine_force().
| #define PHYS_DODGING_MAXSPEED autocvar_sv_dodging_maxspeed |
Definition at line 19 of file sv_dodging.qc.
Referenced by PM_dodging_checkpressedkeys().
| #define PHYS_DODGING_PRESSED_KEYS | ( | s | ) |
Definition at line 48 of file sv_dodging.qc.
| #define PHYS_DODGING_RAMP_TIME autocvar_sv_dodging_ramp_time |
Definition at line 15 of file sv_dodging.qc.
Referenced by PM_dodging().
| #define PHYS_DODGING_TIMEOUT | ( | s | ) |
Definition at line 47 of file sv_dodging.qc.
| #define PHYS_DODGING_UP_SPEED autocvar_sv_dodging_up_speed |
Definition at line 16 of file sv_dodging.qc.
Referenced by PM_dodging().
| #define PHYS_DODGING_WALL autocvar_sv_dodging_wall_dodging |
Definition at line 17 of file sv_dodging.qc.
Referenced by PM_dodging_checkpressedkeys().
| #define X | ( | COND, | |
| BTN, | |||
| RESULT ) |
Definition at line 116 of file sv_dodging.qc.
| #define X | ( | dir | ) |
Definition at line 116 of file sv_dodging.qc.
Referenced by is_close_to_ground(), is_close_to_wall(), and PM_dodging_checkpressedkeys().
Definition at line 142 of file sv_dodging.qc.
References entity(), map_bound_ranges(), PHYS_DODGING_HORIZ_FORCE_FASTEST, PHYS_DODGING_HORIZ_FORCE_FROZEN, PHYS_DODGING_HORIZ_FORCE_SLOWEST, PHYS_DODGING_HORIZ_SPEED_MAX, PHYS_DODGING_HORIZ_SPEED_MIN, PHYS_FROZEN, vec2, and vlen().
Referenced by PM_dodging_checkpressedkeys().
Definition at line 309 of file sv_dodging.qc.
References dodging_action, dodging_direction, dodging_force_remaining, dodging_force_total, dodging_single_action, entity(), and last_dodging_time.
Referenced by MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
Definition at line 132 of file sv_dodging.qc.
References entity(), IS_ONGROUND, vector, and X.
Referenced by PM_dodging_checkpressedkeys().
Definition at line 122 of file sv_dodging.qc.
References entity(), vector, and X.
Referenced by PM_dodging_checkpressedkeys().
| MUTATOR_HOOKFUNCTION | ( | dodging | , |
| GetPressedKeys | ) |
Definition at line 334 of file sv_dodging.qc.
References entity(), GetPressedKeys(), M_ARGV, and PM_dodging_checkpressedkeys().
| MUTATOR_HOOKFUNCTION | ( | dodging | , |
| MakePlayerObserver | ) |
Definition at line 328 of file sv_dodging.qc.
References dodging_ResetPlayer(), entity(), and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | dodging | , |
| PlayerPhysics | ) |
Definition at line 297 of file sv_dodging.qc.
References entity(), M_ARGV, PM_dodging(), and PM_dodging_GetPressedKeys().
| MUTATOR_HOOKFUNCTION | ( | dodging | , |
| PlayerSpawn | ) |
Definition at line 322 of file sv_dodging.qc.
References dodging_ResetPlayer(), entity(), and M_ARGV.
Definition at line 217 of file sv_dodging.qc.
References angles, ANIMACTION_JUMP, animdecide_setaction(), autocvar_sv_dodging_sound, CH_PLAYER, dodging_action, dodging_direction, dodging_force_remaining, dodging_force_total, dodging_single_action, entity(), IS_DEAD, MAKE_VECTORS, min(), PHYS_DODGING_AIR, PHYS_DODGING_CLIENTSELECT, PHYS_DODGING_ENABLED, PHYS_DODGING_FRAMETIME, PHYS_DODGING_FROZEN, PHYS_DODGING_RAMP_TIME, PHYS_DODGING_UP_SPEED, PHYS_FROZEN, PlayerSound, UNSET_ONGROUND, v_angle, vector, velocity, VOICETYPE_PLAYERSOUND, VOL_BASE, waterlevel, and WATERLEVEL_SWIMMING.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 151 of file sv_dodging.qc.
References angles, determine_force(), dodging_action, dodging_direction, dodging_force_remaining, dodging_force_total, dodging_single_action, entity(), is_close_to_ground(), is_close_to_wall(), last_dodging_time, MAKE_VECTORS, PHYS_CS, PHYS_DODGING_AIR, PHYS_DODGING_AIR_MAXSPEED, PHYS_DODGING_DELAY, PHYS_DODGING_DISTANCE_THRESHOLD, PHYS_DODGING_FROZEN, PHYS_DODGING_FROZEN_DOUBLETAP, PHYS_DODGING_HEIGHT_THRESHOLD, PHYS_DODGING_MAXSPEED, PHYS_DODGING_WALL, PHYS_FROZEN, sqrt(), time, vdist, vector, velocity, X, and y.
Referenced by MUTATOR_HOOKFUNCTION(), and PM_dodging_GetPressedKeys().
Definition at line 278 of file sv_dodging.qc.
References BITSET, entity(), IS_DUCKED, KEY_ATCK, KEY_ATCK2, KEY_BACKWARD, KEY_CROUCH, KEY_FORWARD, KEY_JUMP, KEY_LEFT, KEY_RIGHT, movement, PHYS_CS, PHYS_INPUT_BUTTON_ATCK, PHYS_INPUT_BUTTON_ATCK2, PHYS_INPUT_BUTTON_JUMP, PM_dodging_checkpressedkeys(), and pressedkeys.
Referenced by MUTATOR_HOOKFUNCTION().
| REPLICATE | ( | cvar_cl_dodging | , |
| bool | , | ||
| "cl_dodging" | ) |
| REPLICATE | ( | cvar_cl_dodging_timeout | , |
| float | , | ||
| "cl_dodging_timeout" | ) |
| bool autocvar_cl_dodging |
Definition at line 45 of file sv_dodging.qc.
| bool autocvar_sv_dodging_sound |
Definition at line 62 of file sv_dodging.qc.
Referenced by PM_dodging().
| float dodging_action |
Definition at line 89 of file sv_dodging.qc.
Referenced by dodging_ResetPlayer(), PM_dodging(), and PM_dodging_checkpressedkeys().
| vector dodging_direction |
Definition at line 101 of file sv_dodging.qc.
Referenced by dodging_ResetPlayer(), PM_dodging(), and PM_dodging_checkpressedkeys().
| float dodging_force_remaining |
Definition at line 110 of file sv_dodging.qc.
Referenced by dodging_ResetPlayer(), PM_dodging(), and PM_dodging_checkpressedkeys().
| float dodging_force_total |
Definition at line 108 of file sv_dodging.qc.
Referenced by dodging_ResetPlayer(), PM_dodging(), and PM_dodging_checkpressedkeys().
| float dodging_single_action |
Definition at line 92 of file sv_dodging.qc.
Referenced by dodging_ResetPlayer(), PM_dodging(), and PM_dodging_checkpressedkeys().
| float last_BACKWARD_KEY_time |
Definition at line 96 of file sv_dodging.qc.
| float last_dodging_time |
Definition at line 105 of file sv_dodging.qc.
Referenced by dodging_ResetPlayer(), and PM_dodging_checkpressedkeys().
| float last_FORWARD_KEY_time |
Definition at line 95 of file sv_dodging.qc.
| float last_LEFT_KEY_time |
Definition at line 97 of file sv_dodging.qc.
| float last_RIGHT_KEY_time |
Definition at line 98 of file sv_dodging.qc.
| int pressedkeys |
Definition at line 113 of file sv_dodging.qc.
Referenced by HUD_PressedKeys(), multi_touch(), and PM_dodging_GetPressedKeys().