|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include <server/client.qh>#include <server/compat/quake3.qh>#include <server/main.qh>#include <common/gametypes/sv_rules.qh>#include <common/mapobjects/teleporters.qh>#include <common/mapobjects/trigger/secret.qh>#include <common/mutators/mutator/doublejump/doublejump.qh>#include <common/mutators/mutator/itemstime/itemstime.qh>#include <common/physics/player.qh>#include "physics/movetypes/movetypes.qh"Go to the source code of this file.
Macros | |
| #define | autocvar_fraglimit cvar("fraglimit") |
| #define | autocvar_fraglimit_override cvar("fraglimit_override") |
| #define | autocvar_sv_gravity cvar("sv_gravity") |
| #define | autocvar_timelimit cvar("timelimit") |
| #define | autocvar_timelimit_override cvar("timelimit_override") |
| #define | g_stat_ARMOR getstati(STAT_ARMOR) |
| #define | g_stat_CELLS getstati(STAT_CELLS) |
| #define | g_stat_HEALTH getstati(STAT_HEALTH) |
| #define | g_stat_ITEMS getstat_INT(STAT_ITEMS) |
| #define | g_stat_NAILS getstati(STAT_NAILS) |
| #define | g_stat_ROCKETS getstati(STAT_ROCKETS) |
| #define | g_stat_SHELLS getstati(STAT_SHELLS) |
| #define | g_stat_VIEWHEIGHT getstati(STAT_VIEWHEIGHT) |
| #define | Q3COMPAT_COMMON q3compat |
Functions | |
| AUTOCVAR (g_walljump, bool, false, "enable wall jumping mutator") | |
| AUTOCVAR (g_walljump_delay, float, 1, "minimum delay between wall jumps") | |
| AUTOCVAR (g_walljump_force, float, 300, "how far to bounce/jump off the wall") | |
| AUTOCVAR (g_walljump_velocity_xy_factor, float, 1.15, "how much to slow down along horizontal axis, higher value = higher deceleration, if factor is < 1, you accelerate by wall jumping") | |
| AUTOCVAR (g_walljump_velocity_z_factor, float, 0.5, "upwards velocity factor, multiplied by normal jump velocity") | |
| REGISTER_STAT (MOVEFLAGS, INT, MOVEFLAG_VALID|(autocvar_sv_gameplayfix_q2airaccelerate ? MOVEFLAG_Q2AIRACCELERATE :0)|(autocvar_sv_gameplayfix_nogravityonground ? MOVEFLAG_NOGRAVITYONGROUND :0)|(autocvar_sv_gameplayfix_gravityunaffectedbyticrate ? MOVEFLAG_GRAVITYUNAFFECTEDBYTICRATE :0)) float autocvar_sv_wallfriction | |
| float | W_WeaponRateFactor (entity this) |
| #define autocvar_fraglimit cvar("fraglimit") |
Definition at line 90 of file stats.qh.
Referenced by CampaignPreIntermission(), CheckRules_World(), LMS_NewPlayerLives(), race_SendTime(), rc_SetLimits(), and REGISTER_STAT().
| #define autocvar_fraglimit_override cvar("fraglimit_override") |
Definition at line 91 of file stats.qh.
Referenced by GameRules_limit_fallbacks().
| #define autocvar_sv_gravity cvar("sv_gravity") |
Definition at line 421 of file stats.qh.
Referenced by bot_calculate_stepheightvec(), movelib_move(), MUTATOR_HOOKFUNCTION(), Portal_Think(), Portal_Touch(), spawnfunc(), spiberbot_calcartillery(), spiderbot_frame(), turret_aim_generic(), and waypoint_gettravelcost().
| #define autocvar_timelimit cvar("timelimit") |
Definition at line 92 of file stats.qh.
Referenced by CampaignPreIntermission(), changematchtime(), CheckRules_World(), CommonCommand_timeout(), ctf_FakeTimeLimit(), formatmessage(), InitiateOvertime(), Onslaught_CheckWinner(), rc_SetLimits(), readlevelcvars(), ReadyCount(), ReadyRestart_force(), REGISTER_STAT(), and WinningCondition_Assault().
| #define autocvar_timelimit_override cvar("timelimit_override") |
Definition at line 93 of file stats.qh.
Referenced by GameRules_limit_fallbacks(), and rc_SetLimits().
| #define g_stat_ARMOR getstati(STAT_ARMOR) |
| #define g_stat_CELLS getstati(STAT_CELLS) |
| #define g_stat_HEALTH getstati(STAT_HEALTH) |
| #define g_stat_ITEMS getstat_INT(STAT_ITEMS) |
| #define g_stat_NAILS getstati(STAT_NAILS) |
| #define g_stat_ROCKETS getstati(STAT_ROCKETS) |
| #define g_stat_SHELLS getstati(STAT_SHELLS) |
| #define g_stat_VIEWHEIGHT getstati(STAT_VIEWHEIGHT) |
| #define Q3COMPAT_COMMON q3compat |
Definition at line 368 of file stats.qh.
Referenced by door_blocked(), DropToFloor_QC(), jumppad_push(), LinkDoors(), LinkDoors_isconnected(), LinkDoors_nextent(), plat_delayedinit(), plat_reset(), spawn_item_key(), spawnfunc(), spawnfunc(), trigger_push_calculatevelocity(), WarpZoneLib_BoxTouchesBrush(), and WarpZoneLib_ExactTrigger_Touch().
| AUTOCVAR | ( | g_walljump_force | , |
| float | , | ||
| 300 | , | ||
| "how far to bounce/jump off the wall" | ) |
| AUTOCVAR | ( | g_walljump_velocity_xy_factor | , |
| float | , | ||
| 1. | 15, | ||
| "how much to slow down along horizontal | axis, | ||
| higher | value = higher deceleration ) |
| AUTOCVAR | ( | g_walljump_velocity_z_factor | , |
| float | , | ||
| 0. | 5, | ||
| "upwards velocity | factor, | ||
| multiplied by normal jump velocity" | ) |
| REGISTER_STAT | ( | MOVEFLAGS | , |
| INT | , | ||
| MOVEFLAG_VALID| | autocvar_sv_gameplayfix_q2airaccelerate ? MOVEFLAG_Q2AIRACCELERATE :0)|(autocvar_sv_gameplayfix_nogravityonground ? MOVEFLAG_NOGRAVITYONGROUND :0)|(autocvar_sv_gameplayfix_gravityunaffectedbyticrate ? MOVEFLAG_GRAVITYUNAFFECTEDBYTICRATE :0 ) |
References autocvar_fraglimit, autocvar_sv_gameplayfix_gravityunaffectedbyticrate, autocvar_sv_gameplayfix_nogravityonground, autocvar_sv_gameplayfix_q2airaccelerate, autocvar_timelimit, MOVEFLAG_GRAVITYUNAFFECTEDBYTICRATE, MOVEFLAG_NOGRAVITYONGROUND, MOVEFLAG_Q2AIRACCELERATE, MOVEFLAG_VALID, round_limit, rounds_played, and warmup_limit.
Definition at line 33 of file weaponsystem.qc.
References autocvar_g_weaponratefactor, entity(), M_ARGV, and MUTATOR_CALLHOOK.
Referenced by W_Arc_Attack_Bolt(), W_Hagar_Attack2_Load(), W_Hagar_Attack2_Load_Release(), W_Hagar_Attack_Auto(), W_HLAC_Attack_Frame(), W_MachineGun_Attack(), W_MachineGun_Attack_Auto(), W_MachineGun_Attack_Burst(), W_OverkillHeavyMachineGun_Attack_Auto(), W_OverkillMachineGun_Attack_Auto(), W_Seeker_Vollycontroller_Think(), W_Shotgun_Attack2(), W_Shotgun_Melee_Think(), and W_Tuba_NoteOn().
| float autocvar_g_bloodloss |
Definition at line 328 of file stats.qh.
Referenced by MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), and REGISTER_MUTATOR().
| bool autocvar_g_ctf_leaderboard |
Definition at line 148 of file stats.qh.
Referenced by ctf_CaptureRecord(), MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
| float autocvar_g_jetpack_acceleration_side |
| int autocvar_g_multijump |
Definition at line 153 of file stats.qh.
Referenced by REGISTER_MUTATOR().
| int autocvar_leadlimit |
Definition at line 84 of file stats.qh.
Referenced by CheckRules_World(), and rc_SetLimits().
| int autocvar_sv_gameplayfix_delayprojectiles = 0 |
Definition at line 217 of file stats.qh.
Referenced by Physics_Frame().
| int autocvar_sv_gameplayfix_downtracesupportsongroundflag = 1 |
Definition at line 396 of file stats.qh.
Referenced by REGISTER_STAT(), and spiderbot_frame().
| int autocvar_sv_gameplayfix_noairborncorpse_allowsuspendeditems = 1 |
Definition at line 395 of file stats.qh.
Referenced by REGISTER_STAT().
| float autocvar_sv_gameplayfix_q2airaccelerate = 1 |
Definition at line 394 of file stats.qh.
Referenced by REGISTER_STAT().
| float autocvar_sv_showfps = 0 |
| float autocvar_sv_stepheight |
Definition at line 422 of file stats.qh.
Referenced by bot_calculate_stepheightvec().
| bool g_bugrigs |
Definition at line 171 of file stats.qh.
Referenced by bugrigs_SetVars().
| float g_bugrigs_accel |
Definition at line 182 of file stats.qh.
Referenced by bugrigs_SetVars().
| float g_bugrigs_air_steering |
Definition at line 177 of file stats.qh.
Referenced by bugrigs_SetVars().
| float g_bugrigs_angle_smoothing |
Definition at line 178 of file stats.qh.
Referenced by bugrigs_SetVars().
| float g_bugrigs_friction_air |
Definition at line 181 of file stats.qh.
Referenced by bugrigs_SetVars().
| float g_bugrigs_friction_brake |
Definition at line 180 of file stats.qh.
Referenced by bugrigs_SetVars().
| float g_bugrigs_friction_floor |
Definition at line 179 of file stats.qh.
Referenced by bugrigs_SetVars().
| bool g_bugrigs_planar_movement |
Definition at line 172 of file stats.qh.
Referenced by bugrigs_SetVars().
| bool g_bugrigs_planar_movement_car_jumping |
Definition at line 173 of file stats.qh.
Referenced by bugrigs_SetVars().
| float g_bugrigs_reverse_speeding |
Definition at line 175 of file stats.qh.
Referenced by bugrigs_SetVars().
| float g_bugrigs_reverse_spinning |
Definition at line 174 of file stats.qh.
Referenced by bugrigs_SetVars().
| float g_bugrigs_reverse_stopping |
Definition at line 176 of file stats.qh.
Referenced by bugrigs_SetVars().
| float g_bugrigs_speed_pow |
Definition at line 184 of file stats.qh.
Referenced by bugrigs_SetVars().
| float g_bugrigs_speed_ref |
Definition at line 183 of file stats.qh.
Referenced by bugrigs_SetVars().
| float g_bugrigs_steer |
Definition at line 185 of file stats.qh.
Referenced by bugrigs_SetVars().
| float game_starttime |
Definition at line 82 of file stats.qh.
Referenced by assault_new_round(), bot_think(), buff_Init(), buff_Think(), changematchtime(), CheckRules_World(), ClientDisconnect(), CommonCommand_timeout(), CreatureFrame_All(), dompointthink(), DrownPlayer(), formatmessage(), Item_ScheduleInitialRespawn(), Join(), ka_Handler_CheckBall(), kh_StartRound(), kh_WaitForPlayers(), lms_AddPlayer(), lms_RemovePlayer(), Monster_Move(), Monster_Move_2D(), Monster_ValidTarget(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), Onslaught_CheckWinner(), player_powerups_remove_all(), PlayerDamage(), PlayerStats_GameReport_Handler(), PutObserverInServer(), PutPlayerInServer(), race_SendTime(), readlevelcvars(), ReadyCount(), ReadyRestart_force(), reset_map(), ResetBall(), round_handler_FirstThink(), round_handler_Reset(), round_handler_Think(), SpawnBall(), spawnfunc(), StartFrame(), sys_phys_pregame_hold(), tka_Handler_CheckBall(), vehicle_initialize(), VoteCommand_call(), W_Hagar_Attack2_Load(), W_ThrowWeapon(), weapon_prepareattack_check(), weaponLocked(), WinningCondition_Assault(), and WinningCondition_LMS().
| float game_stopped |
Definition at line 81 of file stats.qh.
Referenced by accuracy_isgooddamage(), as_round_think(), bot_serverframe(), buff_Respawn(), buff_Think(), buff_Touch(), bumblebee_pilot_frame(), CA_CheckWinner(), CL_Weaponentity_Think(), ClientCommand_join(), ClientKill(), ClientKill_TeamChange(), CreatureFrame_All(), Damage(), Domination_CheckWinner(), dompointthink(), DrownPlayer(), freezetag_CheckWinner(), GetPressedKeys(), GiveFrags(), GoalTouch(), GrapplingHookThink(), Heal(), ImpulseCommands(), InitBall(), instagib_ammocheck(), Join(), ka_RespawnBall(), ka_TouchEvent(), kh_Controller_Think(), kh_Key_Think(), kh_Key_Touch(), kh_Scores_Event(), KillIndicator_Think(), Monster_Attack_Check(), Monster_Move(), Monster_Move_2D(), Monster_ValidTarget(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), NextLevel(), ons_GeneratorDamage(), ons_GeneratorThink(), Onslaught_CheckWinner(), player_powerups(), PlayerFrame(), PlayerPostThink(), PlayerPreThink(), PlayerScore_Add(), PlayerScore_Set(), PlayerThink(), PlayerUseKey(), PutClientInServer(), PutObserverInServer(), racer_frame(), raptor_frame(), ReadyRestart_force(), reset_map(), round_handler_Think(), Say(), Shutdown(), spiderbot_frame(), StartFrame(), Surv_CheckWinner(), sys_phys_pregame_hold(), target_changelevel_use(), target_voicescript_next(), TeamScore_AddToTeam(), TeamScore_GetCompareValue(), tka_RespawnBall(), tka_TouchEvent(), vehicle_use(), W_Arc_Beam_Think(), weaponLocked(), and WinningCondition_Assault().
| int missing_teams_mask |
Definition at line 85 of file stats.qh.
Referenced by CA_CheckTeams(), freezetag_CheckTeams(), HUD_InfoMessages(), kh_WaitForPlayers(), and Surv_CheckPlayers().
Definition at line 77 of file stats.qh.
Referenced by CheckRules_World(), HUD_Timer(), and InitiateSuddenDeath().
| int overtimes |
Definition at line 86 of file stats.qh.
Referenced by CheckRules_World(), HUD_Timer(), InitiateOvertime(), InitiateSuddenDeath(), and ReadyRestart_force().
| float round_limit |
Definition at line 376 of file stats.qh.
Referenced by REGISTER_STAT(), and round_handler_Init().
| float round_starttime |
Definition at line 83 of file stats.qh.
Referenced by round_handler_FirstThink(), round_handler_Reset(), and round_handler_Think().
| int rounds_played |
Definition at line 377 of file stats.qh.
Referenced by PlayerStats_GameReport_Handler(), REGISTER_STAT(), round_handler_Reset(), round_handler_Think(), Scoreboard_GetField(), ScoreString(), and ScoreString().
| int timeout_status |
Definition at line 87 of file stats.qh.
Referenced by CommonCommand_timein(), CommonCommand_timeout(), ImpulseCommands(), PlayerThink(), ReadyCount(), Shutdown(), StartFrame(), timeout_handler_think(), VoteCommand_call(), VoteCommand_master(), W_Hagar_Attack2_Load(), and weapon_prepareattack_check().
| float warmup_limit |
Definition at line 375 of file stats.qh.
Referenced by readlevelcvars(), ReadyCount(), REGISTER_STAT(), and StartFrame().
| vector weaponsInMap |
all the weapons actually spawned in the map, does not include filtered items
Definition at line 53 of file stats.qh.
Referenced by client_hasweapon(), and StartItem().
| vector weaponsInMapAll |
all the weapons placed by the mapper (weaponreplace applied), ignores most filters
Definition at line 55 of file stats.qh.
Referenced by weapon_defaultspawnfunc(), weaponarena_available_all_update(), weaponarena_available_devall_update(), and weaponarena_available_most_update().