Xonotic
|
#include "sv_dodging.qh"
Go to the source code of this file.
Macros | |
#define | PHYS_DODGING g_dodging |
#define | PHYS_DODGING_AIR autocvar_sv_dodging_air_dodging |
#define | PHYS_DODGING_AIR_MAXSPEED autocvar_sv_dodging_air_maxspeed |
#define | PHYS_DODGING_CLIENTSELECT autocvar_sv_dodging_clientselect |
#define | PHYS_DODGING_DELAY autocvar_sv_dodging_delay |
#define | PHYS_DODGING_DISTANCE_THRESHOLD autocvar_sv_dodging_wall_distance_threshold |
#define | PHYS_DODGING_FROZEN_DOUBLETAP autocvar_sv_dodging_frozen_doubletap |
#define | PHYS_DODGING_HEIGHT_THRESHOLD autocvar_sv_dodging_height_threshold |
#define | PHYS_DODGING_HORIZ_FORCE_FASTEST autocvar_sv_dodging_horiz_force_fastest |
#define | PHYS_DODGING_HORIZ_FORCE_FROZEN autocvar_sv_dodging_horiz_force_frozen |
#define | PHYS_DODGING_HORIZ_FORCE_SLOWEST autocvar_sv_dodging_horiz_force_slowest |
#define | PHYS_DODGING_HORIZ_SPEED_MAX autocvar_sv_dodging_horiz_speed_max |
#define | PHYS_DODGING_HORIZ_SPEED_MIN autocvar_sv_dodging_horiz_speed_min |
#define | PHYS_DODGING_MAXSPEED autocvar_sv_dodging_maxspeed |
#define | PHYS_DODGING_RAMP_TIME autocvar_sv_dodging_ramp_time |
#define | PHYS_DODGING_UP_SPEED autocvar_sv_dodging_up_speed |
#define | PHYS_DODGING_WALL autocvar_sv_dodging_wall_dodging |
#define | X(dir) |
#define | X(COND, BTN, RESULT) |
Functions | |
float | determine_force (entity player) |
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, PlayerPhysics) | |
void | PM_dodging (entity this) |
bool | PM_dodging_checkpressedkeys (entity this) |
REPLICATE (cvar_cl_dodging_timeout, float, "cl_dodging_timeout") | |
REPLICATE (cvar_cl_dodging, bool, "cl_dodging") | |
#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_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_RAMP_TIME autocvar_sv_dodging_ramp_time |
Definition at line 15 of file sv_dodging.qc.
Referenced by PM_dodging().
#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 | ( | dir | ) |
Definition at line 116 of file sv_dodging.qc.
Referenced by is_close_to_ground(), is_close_to_wall(), and PM_dodging_checkpressedkeys().
#define X | ( | COND, | |
BTN, | |||
RESULT | |||
) |
Definition at line 116 of file sv_dodging.qc.
Definition at line 142 of file sv_dodging.qc.
References 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 132 of file sv_dodging.qc.
References IS_ONGROUND, and X.
Referenced by PM_dodging_checkpressedkeys().
Definition at line 122 of file sv_dodging.qc.
References X.
Referenced by PM_dodging_checkpressedkeys().
MUTATOR_HOOKFUNCTION | ( | dodging | , |
PlayerPhysics | |||
) |
Definition at line 297 of file sv_dodging.qc.
References dodging_action, dodging_direction, dodging_force_remaining, dodging_force_total, dodging_single_action, entity(), GetPressedKeys(), last_dodging_time, M_ARGV, PM_dodging(), and PM_dodging_checkpressedkeys().
Definition at line 217 of file sv_dodging.qc.
References angles, ANIMACTION_JUMP, animdecide_setaction(), BITSET, CH_PLAYER, dodging_action, dodging_direction, dodging_force_remaining, dodging_force_total, dodging_single_action, entity(), IS_DEAD, IS_DUCKED, min(), movement, PHYS_DODGING_AIR, PHYS_DODGING_CLIENTSELECT, PHYS_DODGING_FROZEN, PHYS_DODGING_RAMP_TIME, PHYS_DODGING_UP_SPEED, PHYS_FROZEN, PHYS_INPUT_BUTTON_ATCK, PHYS_INPUT_BUTTON_ATCK2, PHYS_INPUT_BUTTON_JUMP, PM_dodging_checkpressedkeys(), pressedkeys, 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, is_close_to_ground(), is_close_to_wall(), last_dodging_time, 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, and X.
Referenced by MUTATOR_HOOKFUNCTION(), and PM_dodging().
REPLICATE | ( | cvar_cl_dodging_timeout | , |
float | , | ||
"cl_dodging_timeout" | |||
) |
REPLICATE | ( | cvar_cl_dodging | , |
bool | , | ||
"cl_dodging" | |||
) |
float dodging_action |
Definition at line 89 of file sv_dodging.qc.
Referenced by MUTATOR_HOOKFUNCTION(), PM_dodging(), and PM_dodging_checkpressedkeys().
vector dodging_direction |
Definition at line 101 of file sv_dodging.qc.
Referenced by MUTATOR_HOOKFUNCTION(), PM_dodging(), and PM_dodging_checkpressedkeys().
float dodging_force_remaining |
Definition at line 110 of file sv_dodging.qc.
Referenced by MUTATOR_HOOKFUNCTION(), PM_dodging(), and PM_dodging_checkpressedkeys().
float dodging_force_total |
Definition at line 108 of file sv_dodging.qc.
Referenced by MUTATOR_HOOKFUNCTION(), PM_dodging(), and PM_dodging_checkpressedkeys().
float dodging_single_action |
Definition at line 92 of file sv_dodging.qc.
Referenced by MUTATOR_HOOKFUNCTION(), 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 MUTATOR_HOOKFUNCTION(), 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.