]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/cheats.qh
4a730d77f9196a3da6e0be888d2aa9b0ab96cb52
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / cheats.qh
1 #pragma once
2
3 #include <common/impulses/all.qh>
4
5 //float autocvar_sv_cheats; // must... declare... global
6
7 float cheatcount_total;
8 .float cheatcount;
9 void CheatInit();
10 void CheatShutdown();
11 float CheatImpulse(entity this, int imp);
12 float CheatCommand(entity this, int argc);
13 float CheatFrame(entity this);
14
15 const float CHRAME_DRAG = 8;
16
17 // speedrun: when 1, player auto teleports back when capture timeout happens
18 .bool speedrunning;
19
20 .entity personal;
21
22 .int grab; // 0 = can't grab, 1 = owner can grab, 2 = owner and team mates can grab, 3 = anyone can grab
23
24 bool drag_undraggable(entity draggee, entity dragger);
25
26 .bool(entity this, entity dragger) draggable;
27 void Drag_MoveDrag(entity from, entity to); // call this from CopyBody
28 void DragBox_Think(entity this);
29 float Drag(entity this, float force_allow_pick, float ischeat);
30 void Drag_Begin(entity dragger, entity draggee, vector touchpoint);
31 void Drag_Finish(entity dragger);
32 bool Drag_IsDraggable(entity draggee, entity dragger);
33 float Drag_MayChangeAngles(entity draggee);
34 void Drag_MoveForward(entity dragger);
35 void Drag_SetSpeed(entity dragger, float s);
36 void Drag_MoveBackward(entity dragger);
37 void Drag_Update(entity dragger);
38 float Drag_CanDrag(entity dragger);
39 float Drag_IsDragging(entity dragger);
40 void Drag_MoveDrag(entity from, entity to);