Xonotic
cheats.qh
Go to the documentation of this file.
1 #pragma once
2 
3 #include <common/impulses/all.qh>
4 
9 
11 .float cheatcount;
12 void CheatInit();
13 void CheatShutdown();
14 float CheatImpulse(entity this, int imp);
15 float CheatCommand(entity this, int argc);
16 float CheatFrame(entity this);
17 
18 const float CHRAME_DRAG = 8;
19 
20 // speedrun: when 1, player auto teleports back when capture timeout happens
22 
23 .entity personal;
24 
25 .int grab; // 0 = can't grab, 1 = owner can grab, 2 = owner and team mates can grab, 3 = anyone can grab
26 
27 bool drag_undraggable(entity draggee, entity dragger);
28 
29 .bool(entity this, entity dragger) draggable;
30 void Drag_MoveDrag(entity from, entity to); // call this from CopyBody
31 void DragBox_Think(entity this);
32 float Drag(entity this, float force_allow_pick, float ischeat);
33 void Drag_Begin(entity dragger, entity draggee, vector touchpoint);
34 void Drag_Finish(entity dragger);
35 bool Drag_IsDraggable(entity draggee, entity dragger);
36 float Drag_MayChangeAngles(entity draggee);
37 void Drag_MoveForward(entity dragger);
38 void Drag_SetSpeed(entity dragger, float s);
39 void Drag_MoveBackward(entity dragger);
40 void Drag_Update(entity dragger);
41 float Drag_CanDrag(entity dragger);
42 float Drag_IsDragging(entity dragger);
43 void Drag_MoveDrag(entity from, entity to);
float CheatCommand(entity this, int argc)
Definition: cheats.qc:285
int int int imp
Definition: impulse.qc:90
void DragBox_Think(entity this)
Definition: cheats.qc:1010
void Drag_MoveDrag(entity from, entity to)
Definition: cheats.qc:1000
void Drag_Update(entity dragger)
Definition: cheats.qc:940
float Drag_IsDragging(entity dragger)
Definition: cheats.qc:983
const float CHRAME_DRAG
Definition: cheats.qh:18
entity() spawn
int autocvar_g_max_info_autoscreenshot
Definition: cheats.qh:7
bool speedrunning
Definition: cheats.qh:21
entity to
Definition: self.qh:96
void Drag_Finish(entity dragger)
Definition: cheats.qc:865
void Drag_Begin(entity dragger, entity draggee, vector touchpoint)
Definition: cheats.qc:841
bool Drag_IsDraggable(entity draggee, entity dragger)
Definition: cheats.qc:904
entity personal
Definition: cheats.qh:23
float cheatcount
Definition: cheats.qh:11
float cheatcount_total
Definition: cheats.qh:10
void Drag_SetSpeed(entity dragger, float s)
Definition: cheats.qc:930
float Drag_MayChangeAngles(entity draggee)
Definition: cheats.qc:917
int autocvar_sv_clones
Definition: cheats.qh:8
float CheatImpulse(entity this, int imp)
Definition: cheats.qc:130
int autocvar_sv_cheats
Definition: cheats.qh:5
bool drag_undraggable(entity draggee, entity dragger)
Definition: cheats.qc:897
vector(float skel, float bonenum) _skel_get_boneabs_hidden
void Drag_MoveForward(entity dragger)
Definition: cheats.qc:925
void CheatInit()
Definition: cheats.qc:48
float Drag_CanDrag(entity dragger)
Definition: cheats.qc:978
float autocvar_g_grab_range
Definition: cheats.qh:6
float Drag(entity this, float force_allow_pick, float ischeat)
Definition: cheats.qc:748
void Drag_MoveBackward(entity dragger)
Definition: cheats.qc:935
void CheatShutdown()
Definition: cheats.qc:53
float CheatFrame(entity this)
Definition: cheats.qc:703
int grab
Definition: cheats.qh:25