]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/g_subs.qh
Remove playerdemo feature (it is incomplete, unmaintained and unstable)
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / g_subs.qh
index 81516f9357c56344f932fe70b439f282a6ddc72e..2528786e77fa182901982fd6fc18ceba790691ac 100644 (file)
@@ -1,23 +1,16 @@
-#ifndef G_SUBS_H
-#define G_SUBS_H
+#pragma once
 
-void SUB_NullThink();
-
-void()  SUB_CalcMoveDone;
-void() SUB_CalcAngleMoveDone;
-//void() SUB_UseTargets;
-
-spawnfunc(info_null);
+void SUB_NullThink(entity this);
 
 /*
 ==================
 SUB_Friction
 
-Applies some friction to self
+Applies some friction to this
 ==================
 */
 .float friction;
-void SUB_Friction ();
+void SUB_Friction (entity this);
 
 /*
 ==================
@@ -28,7 +21,7 @@ Makes client invisible or removes non-client
 */
 void SUB_VanishOrRemove (entity ent);
 
-void SUB_SetFade_Think ();
+void SUB_SetFade_Think (entity this);
 
 /*
 ==================
@@ -39,46 +32,6 @@ Fade 'ent' out when time >= 'when'
 */
 void SUB_SetFade (entity ent, float when, float fadetime);
 
-/*
-=============
-SUB_CalcMove
-
-calculate self.velocity and self.nextthink to reach dest from
-self.origin traveling at speed
-===============
-*/
-void SUB_CalcMoveDone ();
-
-.float platmovetype_turn;
-void SUB_CalcMove_controller_think ();
-
-void SUB_CalcMove_controller_setbezier (entity controller, vector org, vector control, vector dest);
-
-void SUB_CalcMove_controller_setlinear (entity controller, vector org, vector dest);
-
-void SUB_CalcMove_Bezier (vector tcontrol, vector tdest, float tspeedtype, float tspeed, void() func);
-
-void SUB_CalcMove (vector tdest, float tspeedtype, float tspeed, void() func);
-
-void SUB_CalcMoveEnt (entity ent, vector tdest, float tspeedtype, float tspeed, void() func);
-
-/*
-=============
-SUB_CalcAngleMove
-
-calculate self.avelocity and self.nextthink to reach destangle from
-self.angles rotating
-
-The calling function should make sure self.think is valid
-===============
-*/
-void SUB_CalcAngleMoveDone ();
-
-// FIXME: I fixed this function only for rotation around the main axes
-void SUB_CalcAngleMove (vector destangle, float tspeedtype, float tspeed, void() func);
-
-void SUB_CalcAngleMoveEnt (entity ent, vector destangle, float tspeedtype, float tspeed, void() func);
-
 /*
 ==================
 main
@@ -121,14 +74,6 @@ Ripped from DPMod
 */
 vector findbetterlocation (vector org, float mindist);
 
-/*
-==================
-Angc used for animations
-==================
-*/
-
-
-float angc (float a1, float a2);
 
 .string lodtarget1;
 .string lodtarget2;
@@ -140,29 +85,8 @@ float angc (float a1, float a2);
 .float loddistance1;
 .float loddistance2;
 
-float LOD_customize();
-
-void LOD_uncustomize();
-
-void LODmodel_attach();
-
-void ApplyMinMaxScaleAngles(entity e);
-
-void SetBrushEntityModel();
-
-void SetBrushEntityModelNoLOD();
-
-/*
-================
-InitTrigger
-================
-*/
-
-void SetMovedir(entity this);
-
-void InitTrigger();
+bool LOD_customize(entity this, entity client);
 
-void InitSolidBSPTrigger();
+void LOD_uncustomize(entity this);
 
-float InitMovingBrushTrigger();
-#endif
+void LODmodel_attach(entity this);