Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
cheats.qh
Go to the documentation of this file.
1#pragma once
2
4
9
12void CheatInit();
13void CheatShutdown();
14float CheatsAllowed(entity this, float impulse, int argc, float cheatframe, bool logattempt, bool ignoredead);
15float CheatImpulse(entity this, int imp);
16float CheatCommand(entity this, int argc);
17float CheatFrame(entity this);
18
19const float CHRAME_DRAG = 8;
20
21// speedrun: when 1, player auto teleports back when capture timeout happens
23
24.entity personal;
25
26.int grab; // 0 = can't grab, 1 = owner can grab, 2 = owner and teammates can grab, 3 = anyone can grab
27
28bool drag_undraggable(entity draggee, entity dragger);
29
30.bool(entity this, entity dragger) draggable;
31void Drag_MoveDrag(entity from, entity to); // call this from CopyBody
32void DragBox_Think(entity this);
33float Drag(entity this, float force_allow_pick, float ischeat);
34void Drag_Begin(entity dragger, entity draggee, vector touchpoint);
35void Drag_Finish(entity dragger);
36bool Drag_IsDraggable(entity draggee, entity dragger);
37float Drag_MayChangeAngles(entity draggee);
38void Drag_MoveForward(entity dragger);
39void Drag_SetSpeed(entity dragger, float s);
40void Drag_MoveBackward(entity dragger);
41void Drag_Update(entity dragger);
42float Drag_CanDrag(entity dragger);
43float Drag_IsDragging(entity dragger);
44void Drag_MoveDrag(entity from, entity to);
void CheatShutdown()
Definition cheats.qc:54
float cheatcount_total
Definition cheats.qh:10
float Drag_CanDrag(entity dragger)
Definition cheats.qc:984
void Drag_MoveBackward(entity dragger)
Definition cheats.qc:941
float CheatCommand(entity this, int argc)
Definition cheats.qc:291
float cheatcount
Definition cheats.qh:11
void CheatInit()
Definition cheats.qc:49
void DragBox_Think(entity this)
Definition cheats.qc:1016
void Drag_MoveDrag(entity from, entity to)
Definition cheats.qc:1006
float Drag(entity this, float force_allow_pick, float ischeat)
Definition cheats.qc:754
void Drag_Finish(entity dragger)
Definition cheats.qc:871
const float CHRAME_DRAG
Definition cheats.qh:19
float Drag_MayChangeAngles(entity draggee)
Definition cheats.qc:923
int grab
Definition cheats.qh:26
float CheatImpulse(entity this, int imp)
Definition cheats.qc:138
void Drag_Update(entity dragger)
Definition cheats.qc:946
int autocvar_sv_cheats
Definition cheats.qh:5
void Drag_Begin(entity dragger, entity draggee, vector touchpoint)
Definition cheats.qc:847
float CheatsAllowed(entity this, float impulse, int argc, float cheatframe, bool logattempt, bool ignoredead)
Definition cheats.qc:59
void Drag_SetSpeed(entity dragger, float s)
Definition cheats.qc:936
bool Drag_IsDraggable(entity draggee, entity dragger)
Definition cheats.qc:910
int autocvar_sv_clones
Definition cheats.qh:8
bool speedrunning
Definition cheats.qh:22
void Drag_MoveForward(entity dragger)
Definition cheats.qc:931
float CheatFrame(entity this)
Definition cheats.qc:709
int autocvar_g_max_info_autoscreenshot
Definition cheats.qh:7
bool drag_undraggable(entity draggee, entity dragger)
Definition cheats.qc:903
entity personal
Definition cheats.qh:24
float autocvar_g_grab_range
Definition cheats.qh:6
float Drag_IsDragging(entity dragger)
Definition cheats.qc:989
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
float impulse
Definition progsdefs.qc:158
vector
Definition self.qh:92
int int int imp
Definition impulse.qc:90