Xonotic
|
Go to the source code of this file.
Macros | |
#define | GAMEPLAYFIX_DELAYPROJECTILES(s) STAT(GAMEPLAYFIX_DELAYPROJECTILES) |
#define | GAMEPLAYFIX_DOWNTRACEONGROUND(s) STAT(GAMEPLAYFIX_DOWNTRACEONGROUND) |
#define | GAMEPLAYFIX_EASIERWATERJUMP(s) STAT(GAMEPLAYFIX_EASIERWATERJUMP) |
#define | GAMEPLAYFIX_GRENADEBOUNCESLOPES(s) STAT(GAMEPLAYFIX_GRENADEBOUNCESLOPES) |
#define | GAMEPLAYFIX_NOAIRBORNCORPSE(s) STAT(GAMEPLAYFIX_NOAIRBORNCORPSE) |
#define | GAMEPLAYFIX_SLIDEMOVEPROJECTILES(s) STAT(GAMEPLAYFIX_SLIDEMOVEPROJECTILES) |
#define | GAMEPLAYFIX_STEPDOWN(s) STAT(GAMEPLAYFIX_STEPDOWN) |
#define | GAMEPLAYFIX_STEPDOWN_MAXSPEED(s) STAT(GAMEPLAYFIX_STEPDOWN_MAXSPEED) |
#define | GAMEPLAYFIX_STEPMULTIPLETIMES(s) STAT(GAMEPLAYFIX_STEPMULTIPLETIMES) |
#define | GAMEPLAYFIX_UNSTICKPLAYERS(s) STAT(GAMEPLAYFIX_UNSTICKPLAYERS) |
#define | GAMEPLAYFIX_WATERTRANSITION(s) STAT(GAMEPLAYFIX_WATERTRANSITION) |
#define | IS_ONGROUND(s) boolean((s).flags & FL_ONGROUND) |
#define | IS_ONSLICK(s) boolean((s).flags & FL_ONSLICK) |
#define | NOAIRBORNCORPSE_ALLOWSUSPENDED(s) STAT(NOAIRBORNCORPSE_ALLOWSUSPENDED) |
#define | PHYS_JUMPSTEP(s) STAT(MOVEVARS_JUMPSTEP) |
#define | PHYS_NOSTEP(s) STAT(NOSTEP) |
#define | PHYS_STEPHEIGHT(s) STAT(MOVEVARS_STEPHEIGHT) |
#define | PHYS_WALLCLIP(s) STAT(MOVEVARS_WALLCLIP) |
#define | PHYS_WALLFRICTION(s) STAT(MOVEVARS_WALLFRICTION) |
#define | SET_ONGROUND(s) ((s).flags |= FL_ONGROUND) |
#define | SET_ONSLICK(s) ((s).flags |= FL_ONSLICK) |
#define | UNSET_ONGROUND(s) ((s).flags &= ~FL_ONGROUND) |
#define | UNSET_ONSLICK(s) ((s).flags &= ~FL_ONSLICK) |
#define | UPWARD_VELOCITY_CLEARS_ONGROUND(s) STAT(GAMEPLAYFIX_UPVELOCITYCLEARSONGROUND) |
Variables | |
entity | aiment |
entity | groundentity |
const int | MAX_CLIP_PLANES = 5 |
float | move_didgravity |
float | move_movetype |
float | move_nomonsters |
vector | move_stepnormal |
float | move_suspendedinair |
float | move_time |
const int | MOVEFLAG_GRAVITYUNAFFECTEDBYTICRATE = BIT(2) |
const int | MOVEFLAG_NOGRAVITYONGROUND = BIT(1) |
const int | MOVEFLAG_Q2AIRACCELERATE = BIT(0) |
const int | MOVEFLAG_VALID = BIT(23) |
const int | MOVETYPE_FAKEPUSH = 13 |
const int | MOVETYPE_QCENTITY = 151 |
const int | MOVETYPE_QCPLAYER = 150 |
float | pm_time |
vector | punchangle |
const int | UNSTICK_FINE = 0 |
const int | UNSTICK_FIXED = 1 |
const int | UNSTICK_STUCK = 2 |
const int | WATERLEVEL_NONE = 0 |
const int | WATERLEVEL_SUBMERGED = 3 |
const int | WATERLEVEL_SWIMMING = 2 |
const int | WATERLEVEL_WETFEET = 1 |
#define GAMEPLAYFIX_DELAYPROJECTILES | ( | s | ) | STAT(GAMEPLAYFIX_DELAYPROJECTILES) |
Definition at line 35 of file movetypes.qh.
Referenced by Movetype_Physics_NoMatchTicrate().
#define GAMEPLAYFIX_DOWNTRACEONGROUND | ( | s | ) | STAT(GAMEPLAYFIX_DOWNTRACEONGROUND) |
Definition at line 23 of file movetypes.qh.
Referenced by _Movetype_Physics_Walk().
#define GAMEPLAYFIX_EASIERWATERJUMP | ( | s | ) | STAT(GAMEPLAYFIX_EASIERWATERJUMP) |
Definition at line 24 of file movetypes.qh.
Referenced by _Movetype_FlyMove().
#define GAMEPLAYFIX_GRENADEBOUNCESLOPES | ( | s | ) | STAT(GAMEPLAYFIX_GRENADEBOUNCESLOPES) |
Definition at line 31 of file movetypes.qh.
Referenced by _Movetype_Physics_Toss().
#define GAMEPLAYFIX_NOAIRBORNCORPSE | ( | s | ) | STAT(GAMEPLAYFIX_NOAIRBORNCORPSE) |
Definition at line 32 of file movetypes.qh.
Referenced by _Movetype_Physics_Toss().
#define GAMEPLAYFIX_SLIDEMOVEPROJECTILES | ( | s | ) | STAT(GAMEPLAYFIX_SLIDEMOVEPROJECTILES) |
Definition at line 30 of file movetypes.qh.
Referenced by _Movetype_Physics_Toss().
#define GAMEPLAYFIX_STEPDOWN | ( | s | ) | STAT(GAMEPLAYFIX_STEPDOWN) |
Definition at line 25 of file movetypes.qh.
Referenced by _Movetype_Physics_Walk().
#define GAMEPLAYFIX_STEPDOWN_MAXSPEED | ( | s | ) | STAT(GAMEPLAYFIX_STEPDOWN_MAXSPEED) |
Definition at line 26 of file movetypes.qh.
Referenced by _Movetype_Physics_Walk().
#define GAMEPLAYFIX_STEPMULTIPLETIMES | ( | s | ) | STAT(GAMEPLAYFIX_STEPMULTIPLETIMES) |
Definition at line 27 of file movetypes.qh.
Referenced by _Movetype_Physics_Walk().
#define GAMEPLAYFIX_UNSTICKPLAYERS | ( | s | ) | STAT(GAMEPLAYFIX_UNSTICKPLAYERS) |
Definition at line 28 of file movetypes.qh.
Referenced by _Movetype_Physics_ClientFrame(), and _Movetype_Physics_Walk().
#define GAMEPLAYFIX_WATERTRANSITION | ( | s | ) | STAT(GAMEPLAYFIX_WATERTRANSITION) |
Definition at line 29 of file movetypes.qh.
Referenced by _Movetype_CheckWaterTransition().
#define IS_ONGROUND | ( | s | ) | boolean((s).flags & FL_ONGROUND) |
Definition at line 16 of file movetypes.qh.
Referenced by _Movetype_FlyMove(), _Movetype_Physics_Step(), _Movetype_Physics_Toss(), _Movetype_Physics_Walk(), _Movetype_PushEntity(), _Movetype_PushMove(), adaptor_think2use_hittype_splash(), CSQCModel_Hook_PreDraw(), CSQCPlayer_ApplyBobbing(), CSQCPlayer_Physics(), CSQCPlayer_SetCamera(), CSQCProjectile_Check(), CSQCProjectile_SendEntity(), havocbot_ai(), havocbot_bunnyhop(), havocbot_goalrating_items(), havocbot_movetogoal(), HUD_StrafeHUD(), is_close_to_ground(), IsFlying(), ItemDraw(), Monster_Anim(), Monster_Attack_Leap_Check(), Monster_Move(), Monster_Move_2D(), MUTATOR_HOOKFUNCTION(), navigation_markroutes(), navigation_routerating(), player_anim(), PlayerJump(), PM_check_slick(), Projectile_Draw(), set_tracewalk_dest(), SUB_Friction(), sys_phys_postupdate(), sys_phys_simulate_simple(), and sys_phys_update().
Definition at line 19 of file movetypes.qh.
Referenced by _Movetype_Physics_Walk(), HUD_StrafeHUD(), sys_phys_simulate(), and sys_phys_update().
#define NOAIRBORNCORPSE_ALLOWSUSPENDED | ( | s | ) | STAT(NOAIRBORNCORPSE_ALLOWSUSPENDED) |
Definition at line 33 of file movetypes.qh.
Referenced by _Movetype_Physics_Toss().
#define PHYS_JUMPSTEP | ( | s | ) | STAT(MOVEVARS_JUMPSTEP) |
Definition at line 40 of file movetypes.qh.
Referenced by _Movetype_Physics_Walk().
#define PHYS_NOSTEP | ( | s | ) | STAT(NOSTEP) |
Definition at line 39 of file movetypes.qh.
Referenced by _Movetype_Physics_Walk().
#define PHYS_STEPHEIGHT | ( | s | ) | STAT(MOVEVARS_STEPHEIGHT) |
Definition at line 38 of file movetypes.qh.
Referenced by _Movetype_Physics_Walk(), CSQCModel_ApplyStairSmoothing(), and CSQCPlayer_ApplySmoothing().
#define PHYS_WALLCLIP | ( | s | ) | STAT(MOVEVARS_WALLCLIP) |
Definition at line 43 of file movetypes.qh.
Referenced by _Movetype_FlyMove(), and _Movetype_Physics_Walk().
#define PHYS_WALLFRICTION | ( | s | ) | STAT(MOVEVARS_WALLFRICTION) |
Definition at line 41 of file movetypes.qh.
Referenced by _Movetype_Physics_Walk().
#define SET_ONGROUND | ( | s | ) | ((s).flags |= FL_ONGROUND) |
Definition at line 17 of file movetypes.qh.
Referenced by _Movetype_FlyMove(), _Movetype_Physics_Toss(), _Movetype_Physics_Walk(), Drag_Finish(), and NET_HANDLE().
#define SET_ONSLICK | ( | s | ) | ((s).flags |= FL_ONSLICK) |
Definition at line 20 of file movetypes.qh.
Referenced by PM_check_slick().
#define UNSET_ONGROUND | ( | s | ) | ((s).flags &= ~FL_ONGROUND) |
Definition at line 18 of file movetypes.qh.
Referenced by _Movetype_Physics_Step(), _Movetype_Physics_Toss(), _Movetype_Physics_Walk(), _Movetype_PushMove(), Damage(), Drag_Begin(), Drag_Update(), DropBall(), DropOwner(), GrapplingHookThink(), InitBall(), jumppad_push(), Monster_Attack_Leap(), NET_HANDLE(), PlayerDamage(), PlayerJump(), PM_dodging(), PM_jetpack(), sys_phys_simulate(), TeleportPlayer(), trigger_impulse_touch_directional(), vehicles_enter(), and W_Nexball_Touch().
#define UNSET_ONSLICK | ( | s | ) | ((s).flags &= ~FL_ONSLICK) |
Definition at line 21 of file movetypes.qh.
Referenced by PlayerJump(), and PM_check_slick().
#define UPWARD_VELOCITY_CLEARS_ONGROUND | ( | s | ) | STAT(GAMEPLAYFIX_UPVELOCITYCLEARSONGROUND) |
Definition at line 34 of file movetypes.qh.
Referenced by _Movetype_Physics_Step(), and _Movetype_Physics_Toss().
Definition at line 649 of file movetypes.qc.
References _Movetype_LinkEdict(), _Movetype_TestEntityPosition(), _Movetype_UnstickEntity(), oldorigin, origin, UNSTICK_FINE, UNSTICK_FIXED, UNSTICK_STUCK, and vector().
Referenced by _Movetype_Physics_ClientFrame(), and _Movetype_Physics_Walk().
Definition at line 339 of file movetypes.qc.
Referenced by _Movetype_Physics_Step(), _Movetype_Physics_Toss(), and _Movetype_Physics_Walk().
Definition at line 345 of file movetypes.qc.
References CONTENT_EMPTY, DPCONTENTS_LIQUIDSMASK, maxs, mins, origin, vector(), view_ofs, waterlevel, WATERLEVEL_NONE, WATERLEVEL_SUBMERGED, WATERLEVEL_SWIMMING, WATERLEVEL_WETFEET, and watertype.
Referenced by _Movetype_Physics_ClientFrame(), _Movetype_Physics_Frame(), _Movetype_Physics_Walk(), and PM_ClientMovement_UpdateStatus().
Definition at line 379 of file movetypes.qc.
References CONTENT_EMPTY, CONTENT_WATER, and GAMEPLAYFIX_WATERTRANSITION.
Referenced by _Movetype_Physics_Step(), and _Movetype_Physics_Toss().
Definition at line 668 of file movetypes.qc.
Referenced by _Movetype_FlyMove(), and _Movetype_Physics_Toss().
int _Movetype_FlyMove | ( | entity | this, |
float | dt, | ||
bool | applygravity, | ||
bool | applystepnormal, | ||
float | stepheight | ||
) |
Definition at line 124 of file movetypes.qc.
References _Movetype_ClipVelocity(), _Movetype_PushEntity(), cross, dir, fabs(), FL_WATERJUMP, flags, GAMEPLAYFIX_EASIERWATERJUMP, gravity, groundentity, IS_ONGROUND, MAX_CLIP_PLANES, move_didgravity, move_stepnormal, NULL, origin, PHYS_WALLCLIP, pm_time, SET_ONGROUND, sqrt(), trace_allsolid, trace_endpos, trace_ent, trace_fraction, trace_plane_normal, trace_startsolid, vec3, vector(), and velocity.
Referenced by _Movetype_Physics_Step(), and _Movetype_Physics_Walk().
Definition at line 453 of file movetypes.qc.
References absmax, absmin, boxesoverlap(), entity(), if(), MOVE_NOMONSTERS, MOVE_WORLDONLY, solid, SOLID_NOT, SOLID_TRIGGER, trace_allsolid, trace_dphitcontents, trace_dphitq3surfaceflags, trace_dphittexturename, trace_dpstartcontents, trace_endpos, trace_ent, trace_fraction, trace_inopen, trace_inwater, trace_plane_dist, trace_plane_normal, trace_startsolid, vector(), and vlen().
Referenced by _Movetype_LinkEdict().
Definition at line 23 of file movetypes.qc.
References dir, MOVE_NOMONSTERS, origin, SOLID_BSP, trace_endpos, trace_ent, trace_fraction, trace_plane_normal, trace_startsolid, and vector().
Referenced by _Movetype_PushMove().
Definition at line 679 of file movetypes.qc.
References max(), maxs, mins, MOVE_MISSILE, move_movetype, move_nomonsters, MOVE_NOMONSTERS, MOVE_NORMAL, MOVE_WORLDONLY, MOVETYPE_FLY_WORLDONLY, MOVETYPE_FLYMISSILE, origin, solid, SOLID_NOT, SOLID_TRIGGER, and vector().
Referenced by _Movetype_PushEntity(), and Movetype_Physics_MatchTicrate().
Definition at line 622 of file movetypes.qc.
References _Movetype_LinkEdict(), _Movetype_TestEntityPosition(), _Movetype_TestEntityPosition_Offset(), classname, etof(), LOG_DEBUGF, maxs, origin, rint(), UNSTICK_FINE, UNSTICK_FIXED, UNSTICK_STUCK, vtos(), and X.
Referenced by _Movetype_CheckStuck(), and _Movetype_Physics_Toss().
Definition at line 106 of file movetypes.qc.
Referenced by _Movetype_Physics_Walk().
Definition at line 851 of file movetypes.qc.
References Movetype_Physics_MatchTicrate().
Referenced by ItemDraw(), Projectile_Draw(), and train_next().
Definition at line 869 of file movetypes.qc.
References _Movetype_Physics_Frame(), _Movetype_PushEntityTrace(), angles, avelocity, bound(), FL_ONGROUND, flags, floor(), gravity, move_didgravity, move_movetype, move_time, MOVETYPE_BOUNCE, MOVETYPE_NOCLIP, MOVETYPE_NONE, Movetype_Physics_NoMatchServer(), MOVETYPE_TOSS, origin, setorigin(), tic_angles, tic_avelocity, tic_flags, tic_origin, tic_saved_angles, tic_saved_avelocity, tic_saved_flags, tic_saved_origin, tic_saved_velocity, tic_velocity, time, trace_endpos, trace_startsolid, velocity, and X.
Referenced by Movetype_Physics_MatchServer(), and turret_gib_draw().
Definition at line 839 of file movetypes.qc.
References _Movetype_Physics_Frame(), move_time, origin, setorigin(), and time.
Referenced by Movetype_Physics_MatchTicrate(), and Projectile_Draw().
Definition at line 813 of file movetypes.qc.
References _Movetype_Physics_ClientFrame(), _Movetype_Physics_Frame(), GAMEPLAYFIX_DELAYPROJECTILES, move_time, origin, setorigin(), and time.
Referenced by CSQCPlayer_Physics(), Physics_Frame(), and Player_Physics().
Referenced by _StartItem(), buff_Init(), buff_Respawn(), CheatCommand(), conveyor_think(), CopyBody(), cpicon_construct(), ctf_CaptureShield_Spawn(), ctf_FlagSetup(), ctf_FlagThink(), ctf_Handle_Drop(), ctf_Handle_Pickup(), ctf_Handle_Retrieve(), ctf_Handle_Throw(), ctf_RespawnFlag(), door_reset(), door_spawnfield(), Drag_Begin(), Drag_Finish(), DropBall(), FindConnectedComponent(), findtrajectorywithleading(), FireGrapplingHook(), generator_construct(), GiveBall(), GrapplingHook_Stop(), GrapplingHookThink(), InitBall(), jumppad_push(), ka_DropEvent(), ka_RespawnBall(), ka_SpawnBall(), ka_TouchEvent(), kh_Key_Attach(), kh_Key_Detach(), Monster_Dead(), Monster_Move(), Monster_Spawn(), MUTATOR_HOOKFUNCTION(), NET_HANDLE(), ObserverOrSpectatorThink(), ons_CaptureShield_Spawn(), ons_ControlPoint_Setup(), ons_generator_ray_spawn(), ons_GeneratorSetup(), physical_item_think(), plat_spawn_inside_trigger(), player_clear_minigame(), PlayerDamage(), PlayerPostThink(), PutObserverInServer(), PutPlayerInServer(), RemoveGrapplingHooks(), RemoveHook(), ResetBall(), respawn(), sandbox_ObjectAttach_Set(), sandbox_ObjectPort_Load(), sandbox_ObjectSpawn(), SpawnBall(), SpectateSet(), SUB_CalcAngleMoveEnt(), SUB_Stop(), SV_OnEntityPreSpawnFunction(), sys_phys_pregame_hold(), train_next(), turret_construct(), turret_gibtoss(), vehicle_tossgib(), vehicles_enter(), vehicles_exit(), vehicles_projectile(), vehicles_spawn(), W_Nexball_Attack2(), and WarpZoneLib_ExactTrigger_Init().
entity aiment |
Definition at line 90 of file movetypes.qh.
Referenced by _Movetype_Physics_Follow(), DragBox_Think(), GrapplingHookThink(), GrapplingHookTouch(), Portal_Customize(), Portal_Damage(), Portal_Think(), Portal_Touch(), and WarpZone_Projectile_Touch().
entity groundentity |
Definition at line 93 of file movetypes.qh.
Referenced by _Movetype_FlyMove(), _Movetype_Physics_Toss(), _Movetype_Physics_Walk(), and _Movetype_PushEntity().
const int MAX_CLIP_PLANES = 5 |
Definition at line 127 of file movetypes.qh.
Referenced by _Movetype_FlyMove().
float move_didgravity |
Definition at line 95 of file movetypes.qh.
Referenced by _Movetype_FlyMove(), _Movetype_Physics_ClientFrame(), _Movetype_Physics_Frame(), _Movetype_Physics_Toss(), and Movetype_Physics_MatchTicrate().
float move_movetype |
Definition at line 76 of file movetypes.qh.
Referenced by _Movetype_Physics_ClientFrame(), _Movetype_Physics_Frame(), _Movetype_Physics_Toss(), _Movetype_Physics_Walk(), _Movetype_PushEntityTrace(), _Movetype_PushMove(), _Movetype_TestEntityPosition(), CheatCommand(), CheatImpulse(), CopyBody(), CSQCPlayer_ApplyChase(), ctf_FlagThink(), GrapplingHookThink(), Monster_Move(), Movetype_Physics_MatchTicrate(), NET_HANDLE(), player_anim(), Player_Physics(), PlayerDamage(), Projectile_Draw(), sys_phys_pregame_hold(), and sys_phys_update().
float move_nomonsters |
Definition at line 88 of file movetypes.qh.
Referenced by _Movetype_PushEntity(), _Movetype_PushEntityTrace(), and NET_HANDLE().
vector move_stepnormal |
Definition at line 103 of file movetypes.qh.
Referenced by _Movetype_FlyMove(), and _Movetype_Physics_Walk().
float move_suspendedinair |
Definition at line 94 of file movetypes.qh.
Referenced by _Movetype_Physics_Toss().
float move_time |
Definition at line 77 of file movetypes.qh.
Referenced by conveyor_think(), cpicon_construct(), cpicon_draw(), door_reset(), func_ladder_think(), generator_construct(), generator_draw(), Movetype_Physics_MatchTicrate(), Movetype_Physics_NoMatchServer(), Movetype_Physics_NoMatchTicrate(), NET_HANDLE(), ons_generator_ray_draw(), Teleport_Touch(), train_next(), trigger_impulse_touch_radial(), trigger_push_findtarget(), and turret_draw().
Definition at line 159 of file movetypes.qh.
Definition at line 158 of file movetypes.qh.
Definition at line 157 of file movetypes.qh.
Definition at line 156 of file movetypes.qh.
const int MOVETYPE_FAKEPUSH = 13 |
Definition at line 154 of file movetypes.qh.
Referenced by _Movetype_Physics_ClientFrame(), _Movetype_Physics_Frame(), and _Movetype_PushMove().
const int MOVETYPE_QCENTITY = 151 |
Definition at line 152 of file movetypes.qh.
Referenced by Physics_Frame().
const int MOVETYPE_QCPLAYER = 150 |
Definition at line 151 of file movetypes.qh.
Referenced by Player_Physics().
float pm_time |
Definition at line 74 of file movetypes.qh.
Referenced by _Movetype_FlyMove(), and _Movetype_Physics_Walk().
vector punchangle |
Definition at line 91 of file movetypes.qh.
const int UNSTICK_FINE = 0 |
Definition at line 98 of file movetypes.qh.
Referenced by _Movetype_CheckStuck(), and _Movetype_UnstickEntity().
const int UNSTICK_FIXED = 1 |
Definition at line 99 of file movetypes.qh.
Referenced by _Movetype_CheckStuck(), and _Movetype_UnstickEntity().
const int UNSTICK_STUCK = 2 |
Definition at line 100 of file movetypes.qh.
Referenced by _Movetype_CheckStuck(), and _Movetype_UnstickEntity().
const int WATERLEVEL_NONE = 0 |
Definition at line 11 of file movetypes.qh.
Referenced by _Movetype_CheckWater(), PutPlayerInServer(), sys_phys_simulate(), and sys_phys_update().
const int WATERLEVEL_SUBMERGED = 3 |
Definition at line 14 of file movetypes.qh.
Referenced by _Movetype_CheckWater(), DrownPlayer(), navigation_check_submerged_state(), and sys_phys_simulate().
const int WATERLEVEL_SWIMMING = 2 |
Definition at line 13 of file movetypes.qh.
Referenced by _Movetype_CheckWater(), CheckPlayerJump(), havocbot_ai(), havocbot_movetogoal(), HUD_StrafeHUD(), IsFlying(), PlayerJump(), PM_check_hitground(), PM_dodging(), sys_phys_simulate(), and sys_phys_update().
const int WATERLEVEL_WETFEET = 1 |
Definition at line 12 of file movetypes.qh.
Referenced by _Movetype_CheckWater(), havocbot_bunnyhop(), havocbot_goalrating_enemyplayers(), havocbot_movetogoal(), Monster_Move(), navigation_routerating(), and sys_phys_simulate().