Xonotic
|
#include "cheats.qh"
#include "weapons/tracing.qh"
#include <common/constants.qh>
#include <common/deathtypes/all.qh>
#include <common/effects/all.qh>
#include <common/items/_mod.qh>
#include <common/mapobjects/func/breakable.qh>
#include <common/mapobjects/subs.qh>
#include <common/mapobjects/teleporters.qh>
#include <common/mapobjects/triggers.qh>
#include <common/monsters/_mod.qh>
#include <common/mutators/mutator/status_effects/_mod.qh>
#include <common/physics/player.qh>
#include <common/resources/sv_resources.qh>
#include <common/stats.qh>
#include <common/util.qh>
#include <common/weapons/_all.qh>
#include <lib/csqcmodel/sv_model.qh>
#include <lib/warpzone/anglestransform.qh>
#include <lib/warpzone/common.qh>
#include <lib/warpzone/util_server.qh>
#include <server/clientkill.qh>
#include <server/damage.qh>
#include <server/main.qh>
#include <server/mutators/_mod.qh>
#include <server/player.qh>
#include <server/race.qh>
#include <server/world.qh>
Go to the source code of this file.
Macros | |
#define | ADD_CHEATS(e, n) |
#define | BEGIN_CHEAT_FUNCTION() float cheating = 0, attempting = 0 |
#define | DID_CHEAT() ++cheating |
#define | END_CHEAT_FUNCTION() |
#define | IS_CHEAT(ent, i, argc, fr) |
Functions | |
float | CheatCommand (entity this, int argc) |
float | CheatFrame (entity this) |
float | CheatImpulse (entity this, int imp) |
void | CheatInit () |
float | CheatsAllowed (entity this, float i, int argc, float fr) |
void | CheatShutdown () |
float | Drag (entity this, float force_allow_pick, float ischeat) |
void | Drag_Begin (entity dragger, entity draggee, vector touchpoint) |
float | Drag_CanDrag (entity dragger) |
void | Drag_Finish (entity dragger) |
float | Drag_IsDraggable (entity draggee, entity dragger) |
float | Drag_IsDragging (entity dragger) |
float | Drag_MayChangeAngles (entity draggee) |
void | Drag_MoveBackward (entity dragger) |
void | Drag_MoveDrag (entity from, entity to) |
void | Drag_MoveForward (entity dragger) |
void | Drag_SetSpeed (entity dragger, float s) |
bool | drag_undraggable (entity draggee, entity dragger) |
void | Drag_Update (entity dragger) |
void | DragBox_Think (entity this) |
void | info_autoscreenshot_findtarget (entity this) |
spawnfunc (info_autoscreenshot) | |
#define ADD_CHEATS | ( | e, | |
n | |||
) |
#define BEGIN_CHEAT_FUNCTION | ( | ) | float cheating = 0, attempting = 0 |
Definition at line 88 of file cheats.qc.
Referenced by CheatCommand(), CheatFrame(), CheatImpulse(), and Drag().
#define DID_CHEAT | ( | ) | ++cheating |
Definition at line 90 of file cheats.qc.
Referenced by CheatCommand(), CheatImpulse(), and Drag().
#define END_CHEAT_FUNCTION | ( | ) |
Definition at line 95 of file cheats.qc.
Referenced by CheatCommand(), CheatFrame(), and CheatImpulse().
#define IS_CHEAT | ( | ent, | |
i, | |||
argc, | |||
fr | |||
) |
Definition at line 98 of file cheats.qc.
Referenced by CheatCommand(), CheatImpulse(), and Drag().
Definition at line 285 of file cheats.qc.
References AnglesTransform_ApplyToAngles(), argv(), BEGIN_CHEAT_FUNCTION, BITXOR_ASSIGN, CH_WEAPON_A, classname, cmd(), crosshair_trace(), DID_CHEAT, drag_lastcnt, DragBox_Think(), EF_NOMODELFLAGS, END_CHEAT_FUNCTION, entity(), etof(), fclose(), FILE_WRITE, find(), fixedvectoangles2, FL_GODMODE, FL_NOTARGET, flags, fopen(), fputs(), ftos(), GiveItems(), IS_CHEAT, max(), move_movetype, MOVE_NORMAL, move_out_of_solid, MOVETYPE_FLY, MOVETYPE_NOCLIP, MOVETYPE_WALK, normalize(), NULL, origin, Q3SURFACEFLAG_NOIMPACT, race_ImposePenaltyTime(), RandomSelection_AddEnt, RandomSelection_chosen_ent, RandomSelection_Init(), RES_HEALTH, set_movetype(), setmodel, setorigin(), SetResourceExplicit(), setthink, Simple_TeleportPlayer(), spawn(), sprint(), stof(), stov(), strcat(), strzone(), SUB_UseTargets(), substring(), teleport_findtarget(), time, trace_dphitq3surfaceflags, trace_endpos, trace_fraction, trace_plane_normal, trace_startsolid, v_forward, vector(), vectoyaw(), view_ofs, vlen(), vlen2, vtos(), W_SetupShot, w_shotdir, w_shotorg, and weaponentities.
Referenced by CheatImpulse(), and SV_ParseClientCommand().
Definition at line 703 of file cheats.qc.
References autocvar_sv_cheats, BEGIN_CHEAT_FUNCTION, Drag(), END_CHEAT_FUNCTION, gamestart_sv_cheats, and maycheat.
Referenced by PlayerPostThink().
Definition at line 130 of file cheats.qc.
References angles, ATTEN_NORM, autocvar_g_allow_checkpoints, BEGIN_CHEAT_FUNCTION, CH_SHOTS, CheatCommand(), classname, CopyBody(), DID_CHEAT, DIFF_TEAM, DMG_NOWEP, DPCONTENTS_BODY, DPCONTENTS_CORPSE, DPCONTENTS_DONOTENTER, DPCONTENTS_LAVA, DPCONTENTS_PLAYERCLIP, DPCONTENTS_SKY, DPCONTENTS_SLIME, DPCONTENTS_SOLID, END_CHEAT_FUNCTION, entity(), find(), fixangle, FOREACH_CLIENT, gamestart_sv_cheats, GetResource(), IS_CHEAT, IS_DEAD, IS_PLAYER, items, lip, LOG_INFO, makevectors, max(), move_movetype, MOVE_WORLDONLY, MoveToRandomMapLocation(), MOVETYPE_NOCLIP, MUTATOR_CALLHOOK, NULL, oldvelocity, origin, pauseregen_finished, pauserotarmor_finished, pauserotfuel_finished, pauserothealth_finished, personal, Q3SURFACEFLAG_SKY, RadiusDamage(), RandomSelection_AddEnt, RandomSelection_chosen_ent, RandomSelection_Init(), RES_HEALTH, setorigin(), SetResource(), sound, spawn(), speedrunning, sprint(), time, tokenize_console, trace_startsolid, v_angle, v_forward, velocity, and VOL_BASE.
Referenced by CheckPlayerJump(), and ImpulseCommands().
void CheatInit | ( | ) |
Definition at line 48 of file cheats.qc.
References autocvar_sv_cheats, and gamestart_sv_cheats.
Referenced by spawnfunc().
Definition at line 57 of file cheats.qc.
References argv(), autocvar_sv_cheats, autocvar_sv_clones, bprintf, gamestart_sv_cheats, IS_DEAD, IS_PLAYER, lip, maycheat, netname, and team.
void CheatShutdown | ( | ) |
Definition at line 53 of file cheats.qc.
Referenced by Shutdown().
Definition at line 748 of file cheats.qc.
References autocvar_g_grab_range, BEGIN_CHEAT_FUNCTION, CHRAME_DRAG, crosshair_trace_plusvisibletriggers(), CS(), DID_CHEAT, Drag_Begin(), Drag_CanDrag(), Drag_Finish(), Drag_IsDraggable(), Drag_IsDragging(), Drag_MoveBackward(), Drag_MoveForward(), Drag_SetSpeed(), Drag_Update(), entity(), frametime, impulse, IS_CHEAT, origin, PHYS_INPUT_BUTTON_DRAG, SAME_TEAM, trace_endpos, trace_ent, and vdist.
Referenced by CheatFrame().
Definition at line 841 of file cheats.qc.
References gettaginfo, MOVETYPE_WALK, set_movetype(), UNSET_ONGROUND, v_forward, v_right, v_up, and vlen().
Referenced by Drag().
Definition at line 865 of file cheats.qc.
References entity(), FL_ITEM, MOVETYPE_BOUNCE, MOVETYPE_BOUNCEMISSILE, MOVETYPE_FLYMISSILE, MOVETYPE_PHYSICS, MOVETYPE_STEP, MOVETYPE_TOSS, MOVETYPE_WALK, NULL, set_movetype(), SET_ONGROUND, and vdist.
Referenced by Drag(), and Drag_IsDragging().
Definition at line 904 of file cheats.qc.
References NULL.
Referenced by Drag(), and Drag_IsDragging().
Definition at line 983 of file cheats.qc.
References Drag_CanDrag(), Drag_Finish(), Drag_IsDraggable(), and NULL.
Referenced by Drag().
Definition at line 917 of file cheats.qc.
References substring().
Referenced by Drag_Update().
Definition at line 1000 of file cheats.qc.
Referenced by CopyBody().
Definition at line 897 of file cheats.qc.
Referenced by CL_SpawnWeaponentity(), and PutObserverInServer().
Definition at line 940 of file cheats.qc.
References Drag_MayChangeAngles(), entity(), frametime, gettaginfo, makevectors, max(), min(), serverframetime, servertime, UNSET_ONGROUND, v_forward, v_right, v_up, vector(), and weaponentities.
Referenced by Drag().
Definition at line 1010 of file cheats.qc.
References aiment, cnt, enemy, fabs(), floor(), killindicator, maxs, MDL_NUM(), mins, nextthink, origin, setmodel, setorigin(), and time.
Referenced by CheatCommand().
Definition at line 103 of file cheats.qc.
References entity(), find(), NULL, objerror(), target, targetname, vectoangles(), and vector().
Referenced by spawnfunc().
spawnfunc | ( | info_autoscreenshot | ) |
Definition at line 118 of file cheats.qc.
References autocvar_g_max_info_autoscreenshot, info_autoscreenshot_findtarget(), InitializeEntity(), num_autoscreenshot, objerror(), and target.
float drag_lastcnt |
Definition at line 284 of file cheats.qc.
Referenced by CheatCommand().
float gamestart_sv_cheats |
Definition at line 44 of file cheats.qc.
Referenced by CheatFrame(), CheatImpulse(), CheatInit(), and CheatsAllowed().
bool maycheat |
Definition at line 43 of file cheats.qc.
Referenced by CheatFrame(), CheatsAllowed(), and CheckPlayerJump().
float num_autoscreenshot |
Definition at line 102 of file cheats.qc.
Referenced by spawnfunc().