]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/cheats.qh
Merge branch 'bones_was_here/805' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / cheats.qh
1 #pragma once
2
3 #include <common/impulses/all.qh>
4
5 int autocvar_sv_cheats;
6 float autocvar_g_grab_range;
7 int autocvar_g_max_info_autoscreenshot;
8 int autocvar_sv_clones;
9
10 float cheatcount_total;
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
21 .bool speedrunning;
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);