]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/cheats.qh
Merge branch 'master' into terencehill/bot_ai
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / cheats.qh
index 8c276919c51082206169b6050dd44335d7d1fc84..0dc6a92d9c45b5f103e432fabaa59f8c3db45bb1 100644 (file)
@@ -1,13 +1,30 @@
-float autocvar_sv_cheats; // must... declare... global
+#pragma once
+
+#include <common/impulses/all.qh>
+
+//float autocvar_sv_cheats; // must... declare... global
 
 float cheatcount_total;
 .float cheatcount;
 void CheatInit();
 void CheatShutdown();
-void CheatInitClient();
-void CheatShutdownClient();
-float CheatImpulse(float i);
-float CheatCommand(float argc);
-float CheatFrame();
+float CheatImpulse(entity this, int imp);
+float CheatCommand(entity this, int argc);
+float CheatFrame(entity this);
+
+const float CHRAME_DRAG = 8;
 
 void Drag_MoveDrag(entity from, entity to); // call this from CopyBody
+void DragBox_Think(entity this);
+float Drag(entity this, float force_allow_pick, float ischeat);
+void Drag_Begin(entity dragger, entity draggee, vector touchpoint);
+void Drag_Finish(entity dragger);
+float Drag_IsDraggable(entity draggee);
+float Drag_MayChangeAngles(entity draggee);
+void Drag_MoveForward(entity dragger);
+void Drag_SetSpeed(entity dragger, float s);
+void Drag_MoveBackward(entity dragger);
+void Drag_Update(entity dragger);
+float Drag_CanDrag(entity dragger);
+float Drag_IsDragging(entity dragger);
+void Drag_MoveDrag(entity from, entity to);