X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=qcsrc%2Fserver%2Fcheats.qh;h=0dc6a92d9c45b5f103e432fabaa59f8c3db45bb1;hb=8f4e38f34794f44d2ea707ca4b836d88b0a39c3d;hp=f200c4c867bc5afc73e7c3eb86483a38e7f621ed;hpb=88713a575bd27dabc5926d636542b6145ab6f51c;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/cheats.qh b/qcsrc/server/cheats.qh index f200c4c86..0dc6a92d9 100644 --- a/qcsrc/server/cheats.qh +++ b/qcsrc/server/cheats.qh @@ -1,5 +1,6 @@ -#ifndef CHEATS_H -#define CHEATS_H +#pragma once + +#include //float autocvar_sv_cheats; // must... declare... global @@ -7,21 +8,23 @@ float cheatcount_total; .float cheatcount; void CheatInit(); void CheatShutdown(); -void CheatInitClient(); -void CheatShutdownClient(); -float CheatImpulse(float i); -float CheatCommand(float argc); -float CheatFrame(); - -const float CHIMPULSE_SPEEDRUN_INIT = 30; -const float CHIMPULSE_GIVE_ALL = 99; -const float CHIMPULSE_CLONE_MOVING = 140; -const float CHIMPULSE_SPEEDRUN = 141; -const float CHIMPULSE_CLONE_STANDING = 142; -const float CHIMPULSE_TELEPORT = 143; -const float CHIMPULSE_R00T = 148; +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 -#endif +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);