|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#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/client.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() |
| #define | DID_CHEAT() |
| #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 imp, int argc, float cheatframe, bool logattempt, bool ignoredead) |
| 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 ) |
Definition at line 96 of file cheats.qc.
| #define BEGIN_CHEAT_FUNCTION | ( | ) |
Definition at line 92 of file cheats.qc.
Referenced by CheatCommand(), CheatFrame(), CheatImpulse(), and Drag().
| #define DID_CHEAT | ( | ) |
Definition at line 94 of file cheats.qc.
Referenced by CheatCommand(), CheatImpulse(), and Drag().
| #define END_CHEAT_FUNCTION | ( | ) |
Definition at line 99 of file cheats.qc.
Referenced by CheatCommand(), CheatFrame(), and CheatImpulse().
| #define IS_CHEAT | ( | ent, | |
| i, | |||
| argc, | |||
| fr ) |
Definition at line 102 of file cheats.qc.
Referenced by CheatCommand(), CheatImpulse(), and Drag().
Definition at line 291 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(), func_breakable_setup(), GiveItems(), IS_CHEAT, max(), max_shot_distance, 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(), Send_Effect_(), set_movetype(), setmodel, SetResourceExplicit(), setthink, Simple_TeleportPlayer(), spawn, sprint(), STAT, 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 709 of file cheats.qc.
References autocvar_sv_cheats, BEGIN_CHEAT_FUNCTION, Drag(), END_CHEAT_FUNCTION, entity(), gamestart_sv_cheats, and maycheat.
Definition at line 138 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(), imp, 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_ARMOR, Send_Effect(), SetResource(), sound, spawn, speedrunning, sprint(), STAT, statuseffects, StatusEffects_copy(), StatusEffects_update(), time, tokenize_console, trace_startsolid, v_angle, v_forward, velocity, and VOL_BASE.
Referenced by ImpulseCommands(), and SpecialCommand().
| void CheatInit | ( | ) |
Definition at line 49 of file cheats.qc.
References autocvar_sv_cheats, and gamestart_sv_cheats.
Referenced by spawnfunc().
| float CheatsAllowed | ( | entity | this, |
| float | imp, | ||
| int | argc, | ||
| float | cheatframe, | ||
| bool | logattempt, | ||
| bool | ignoredead ) |
Definition at line 59 of file cheats.qc.
References argv(), autocvar_sv_cheats, autocvar_sv_clones, bprintf, entity(), gamestart_sv_cheats, imp, IS_DEAD, IS_PLAYER, lip, maycheat, netname, playername(), and team.
Referenced by PlayerThink().
| void CheatShutdown | ( | ) |
Definition at line 754 of file cheats.qc.
References autocvar_g_grab_range, BEGIN_CHEAT_FUNCTION, CHRAME_DRAG, crosshair_trace_plusvisibletriggers(), CS(), detach_sameorigin(), 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 847 of file cheats.qc.
References entity(), gettaginfo, MOVETYPE_WALK, set_movetype(), UNSET_ONGROUND, v_forward, v_right, v_up, vector, and vlen().
Referenced by Drag().
Definition at line 871 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 910 of file cheats.qc.
References entity(), and NULL.
Referenced by Drag(), and Drag_IsDragging().
Definition at line 989 of file cheats.qc.
References Drag_CanDrag(), Drag_Finish(), Drag_IsDraggable(), entity(), and NULL.
Referenced by Drag().
Definition at line 923 of file cheats.qc.
References entity(), and substring().
Referenced by Drag_Update().
Definition at line 903 of file cheats.qc.
References entity().
Referenced by CL_SpawnWeaponentity(), PutObserverInServer(), spawnfunc(), spawnfunc(), and spawnfunc().
Definition at line 946 of file cheats.qc.
References Drag_MayChangeAngles(), entity(), frametime, gettaginfo, makevectors, max(), min(), movedir, serverframetime, servertime, UNSET_ONGROUND, v_forward, v_right, v_up, vector, and weaponentities.
Referenced by Drag().
Definition at line 1016 of file cheats.qc.
References aiment, cnt, enemy, entity(), fabs(), floor(), killindicator, maxs, MDL_NUM(), mins, nextthink, origin, setmodel, and time.
Referenced by CheatCommand().
Definition at line 107 of file cheats.qc.
References angles_y, entity(), find(), NULL, objerror, target, targetname, vectoangles(), and vector.
Referenced by spawnfunc().
| spawnfunc | ( | info_autoscreenshot | ) |
Definition at line 122 of file cheats.qc.
References autocvar_g_max_info_autoscreenshot, g_observepoints, IL_PUSH(), info_autoscreenshot_findtarget(), InitializeEntity(), INITPRIO_FINDTARGET, MOVE_WORLDONLY, num_autoscreenshot, objerror, origin, PL_CROUCH_MAX_CONST, PL_CROUCH_MIN_CONST, target, and trace_startsolid.
| float drag_lastcnt |
Definition at line 290 of file cheats.qc.
Referenced by CheatCommand().
| float gamestart_sv_cheats |
Definition at line 45 of file cheats.qc.
Referenced by CheatFrame(), CheatImpulse(), CheatInit(), and CheatsAllowed().
| bool maycheat |
Definition at line 44 of file cheats.qc.
Referenced by CheatFrame(), CheatsAllowed(), and SpecialCommand().
| float num_autoscreenshot |
Definition at line 106 of file cheats.qc.
Referenced by spawnfunc().