X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fcheats.qh;h=962e017a19d6dad9e4919c86d53b20bb92efb84c;hb=e3b57e7c812da74f0aed7c8b1b50d6760a51b357;hp=122d2f7e94becb6e32645b2b68a7e356762f9c53;hpb=678a61b45f332fcd560083b01e6b0bf5a5ae268c;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/cheats.qh b/qcsrc/server/cheats.qh index 122d2f7e9..962e017a1 100644 --- a/qcsrc/server/cheats.qh +++ b/qcsrc/server/cheats.qh @@ -1,7 +1,6 @@ -#ifndef CHEATS_H -#define CHEATS_H +#pragma once -#include "../common/impulses/all.qh" +#include //float autocvar_sv_cheats; // must... declare... global @@ -9,13 +8,26 @@ 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; +bool drag_undraggable(entity draggee, entity dragger); + +.bool(entity this, entity dragger) draggable; 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); +bool Drag_IsDraggable(entity draggee, entity dragger); +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);