|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "main.qh"#include <common/command/generic.qh>#include <common/constants.qh>#include <common/deathtypes/all.qh>#include <common/debug.qh>#include <common/mapinfo.qh>#include <common/mapobjects/_mod.qh>#include <common/monsters/sv_monsters.qh>#include <common/util.qh>#include <common/vehicles/all.qh>#include <common/weapons/_all.qh>#include <lib/csqcmodel/sv_model.qh>#include <lib/warpzone/common.qh>#include <lib/warpzone/server.qh>#include <server/anticheat.qh>#include <server/bot/api.qh>#include <server/command/common.qh>#include <server/compat/quake3.qh>#include <server/damage.qh>#include <server/gamelog.qh>#include <server/hook.qh>#include <server/ipban.qh>#include <server/mutators/_mod.qh>#include <server/spawnpoints.qh>#include <server/weapons/common.qh>#include <server/weapons/csqcprojectile.qh>#include <server/world.qh>Go to the source code of this file.
Macros | |
| #define | X(out, in) |
Variables | |
| float | anglejitter |
| vector | anglesjitter |
| string | cvarfilter |
| bool | game_delay_last |
| string | gametypefilter |
| vector | originjitter |
| #define X | ( | out, | |
| in ) |
Referenced by SV_OnEntityPreSpawnFunction().
| void CreatureFrame_All | ( | ) |
Definition at line 183 of file main.qc.
References g_damagedbycontents, game_starttime, game_stopped, IL_EACH, and time.
Referenced by StartFrame().
Definition at line 142 of file main.qc.
References autocvar_g_balance_falldamage_deadminspeed, autocvar_g_balance_falldamage_factor, autocvar_g_balance_falldamage_maxdamage, autocvar_g_balance_falldamage_minspeed, autocvar_g_balance_falldamage_onlyvertical, autocvar_g_maxspeed, Damage(), DMG_NOWEP, entity(), fabs(), FL_PROJECTILE, flags, hook, IS_DEAD, IS_VEHICLE, MAX_WEAPONSLOTS, maxs, min(), mins, MOVE_NOMONSTERS, NULL, oldvelocity, origin, Q3SURFACEFLAG_NODAMAGE, trace_dphitq3surfaceflags, vdist, velocity, vlen(), and weaponentities.
Definition at line 70 of file main.qc.
References ATTEN_NORM, autocvar_g_balance_contents_damagerate, autocvar_g_balance_contents_playerdamage_lava, autocvar_g_balance_contents_playerdamage_lava_burn, autocvar_g_balance_contents_playerdamage_lava_burn_time, autocvar_g_balance_contents_playerdamage_slime, autocvar_g_balance_contents_projectiledamage, CH_PLAYER_SINGLE, CONTENT_LAVA, CONTENT_SLIME, contents_damagetime, Damage(), DMG_NOWEP, entity(), Fire_AddDamage(), FL_PROJECTILE, flags, NULL, sound, STAT, time, VOL_BASE, waterlevel, watersound_finished, and watertype.
Referenced by CreatureFrame_Liquids().
Definition at line 119 of file main.qc.
References contents_damagetime, CreatureFrame_hotliquids(), entity(), FL_INWATER, flags, and watertype.
print(), but only print if the server is not local
Definition at line 233 of file main.qc.
References autocvar_sv_dedicated, and print().
Referenced by GameLogEcho(), and Say().
Schedules dropclient for a player and returns true; if dropclient is already scheduled (for that player) it does nothing and returns false.
NOTE: this function exists only to allow sending a message to the kicked player with Send_Notification, which doesn't work if called together with dropclient
Definition at line 44 of file main.qc.
References classname, dropclient_do(), entity(), FOREACH_ENTITY_CLASS, new_pure, setthink, STR_OBSERVER, team, time, and wants_join.
Referenced by MUTATOR_HOOKFUNCTION(), and PlayerFrame().
Definition at line 500 of file main.qc.
References checkextension(), mapname, search_end(), search_getfilename(), strcat(), and string_null.
Referenced by door_init_shared(), and spawnfunc().
Retrieves the value of a map entity field from fullspawndata.
This bypasses field value changes made by the engine, eg string-to-float and escape sequence substitution.
Avoids the need to declare fields just to read them once :)
Returns the last instance of the field to match DarkPlaces behaviour.
Path support: converts \ to / and checks the file exists, if vfspath is true. Returns string_null if the entity does not have the field, or the file is not in the VFS.
FIXME: entities with //comments are not supported.
Definition at line 451 of file main.qc.
References argv(), entity(), ftos(), LOG_WARNF, string_null, strstrofs, and tokenize_console.
Referenced by DoesQ3ARemoveThisEntity(), door_init_shared(), MapInfo_Get_ByName_NoFallbacks(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), and StartItem().
Definition at line 238 of file main.qc.
References entity(), initialize_entity_first, NULL, and prev.
Referenced by remove_safely().
| void Pause_TryPause | ( | ) |
Definition at line 205 of file main.qc.
References FOREACH_CLIENT, IS_REAL_CLIENT, and PHYS_INPUT_BUTTON_CHAT.
Referenced by StartFrame(), and SV_PausedTic().
Definition at line 198 of file main.qc.
References autocvar__endmatch, entity(), intermission_running, and player_count.
Referenced by spawnfunc().
Definition at line 283 of file main.qc.
References entity(), and make_safe_for_remove().
Referenced by spawnfunc().
Definition at line 276 of file main.qc.
References entity(), and error.
Referenced by InitializeEntitiesRun(), spawnfunc(), and StartFrame().
| void StartFrame | ( | ) |
Definition at line 301 of file main.qc.
References anticheat_startframe(), autocvar_slowmo, autocvar_sv_autopause, autocvar_sv_dedicated, autocvar_sv_eventlog, autocvar_sys_ticrate, bot_serverframe(), CheckRules_World(), CreatureFrame_All(), CSQCProjectile_Check(), delete_fn(), execute_next_frame(), FOREACH_CLIENT, frametime, ftos(), g_projectiles, game_delay_last, game_starttime, game_stopped, GameLogEcho(), IL_EACH, InitializeEntitiesRun(), intermission_running, IS_FAKE_CLIENT, IS_PLAYER, IS_REAL_CLIENT, LOG_INFO, MUTATOR_CALLHOOK, orig_slowmo, Pause_TryPause(), PlayerFrame(), PlayerPostThink, PlayerPreThink, ReadyRestart(), RedirectionThink(), remove_unsafely(), serverframetime, serverprevtime, servertime, solve_quadratic(), sys_frametime, sys_phys_update(), time, TIMEOUT_LEADTIME, timeout_status, UncustomizeEntitiesRun(), warmup_limit, warmup_stage, and WarpZone_StartFrame().
Definition at line 392 of file main.qc.
References angles, cvarfilter, DoesQ3ARemoveThisEntity(), entity(), expr_evaluate(), g_monster_targets, gametypefilter, have_team_spawns, IL_PUSH(), isGametypeInFilter(), MapInfo_LoadedGametype, monster_attack, movetype, MUTATOR_CALLHOOK, origin, q3compat, set_movetype(), teamplay, and X.
Definition at line 220 of file main.qc.
References autocvar__endmatch, autocvar_sv_autopause, autocvar_sv_dedicated, and Pause_TryPause().
Definition at line 10 of file physics.qc.
Referenced by StartFrame().
| void systems_update | ( | ) |
engine callback
Definition at line 531 of file main.qc.
References Curl_URI_Get_Callback(), ftos(), LOG_INFO, MUTATOR_CALLHOOK, OnlineBanList_URI_Get_Callback(), URI_GET_CURL, URI_GET_CURL_END, URI_GET_DISCARD, URI_GET_IPBAN, URI_GET_IPBAN_END, and url_URI_Get_Callback().
| void WarpZone_PostInitialize_Callback | ( | ) |
Definition at line 518 of file main.qc.
References classname, DPCONTENTS_BODY, DPCONTENTS_BOTCLIP, DPCONTENTS_PLAYERCLIP, DPCONTENTS_SOLID, entity(), find(), NULL, PL_MAX_CONST, PL_MIN_CONST, spawn, and waypoint_spawnforteleporter_wz().
Referenced by WarpZone_StartFrame().
| string cvarfilter |
Definition at line 390 of file main.qc.
Referenced by SV_OnEntityPreSpawnFunction().
| bool game_delay_last |
Definition at line 297 of file main.qc.
Referenced by StartFrame().
| string gametypefilter |
Definition at line 389 of file main.qc.
Referenced by SV_OnEntityPreSpawnFunction().
| vector originjitter |
Definition at line 386 of file main.qc.
Referenced by SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), SUB(), and SUB().