X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fcheats.qh;h=9ab0fade7f7fcd44e3c04ae330d72b6b65a3cf62;hb=ffacefe00ac83d2fd630268ff1e2d56854883876;hp=0dc6a92d9c45b5f103e432fabaa59f8c3db45bb1;hpb=72d25a07e1372793d5c305972eb51892de6aeb75;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/cheats.qh b/qcsrc/server/cheats.qh index 0dc6a92d9..9ab0fade7 100644 --- a/qcsrc/server/cheats.qh +++ b/qcsrc/server/cheats.qh @@ -2,7 +2,10 @@ #include -//float autocvar_sv_cheats; // must... declare... global +int autocvar_sv_cheats; +float autocvar_g_grab_range; +int autocvar_g_max_info_autoscreenshot; +int autocvar_sv_clones; float cheatcount_total; .float cheatcount; @@ -14,12 +17,22 @@ float CheatFrame(entity this); const float CHRAME_DRAG = 8; +// speedrun: when 1, player auto teleports back when capture timeout happens +.bool speedrunning; + +.entity personal; + +.int grab; // 0 = can't grab, 1 = owner can grab, 2 = owner and team mates can grab, 3 = anyone can grab + +bool drag_undraggable(entity draggee, entity dragger); + +.bool(entity this, entity dragger) draggable; 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); +bool Drag_IsDraggable(entity draggee, entity dragger); float Drag_MayChangeAngles(entity draggee); void Drag_MoveForward(entity dragger); void Drag_SetSpeed(entity dragger, float s);