X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fg_subs.qh;h=1f5537cea52f92ffa5e7e1f3284edd20cadcea04;hb=cf1512beec5b1ebac151fdcf9f44ff4830b37187;hp=1b785c2f284b6f59232519cbc2c0d87301a52447;hpb=3d4a324cc2e15c1eb99209674942506eb998e2ec;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/g_subs.qh b/qcsrc/server/g_subs.qh index 1b785c2f2..1f5537cea 100644 --- a/qcsrc/server/g_subs.qh +++ b/qcsrc/server/g_subs.qh @@ -11,11 +11,11 @@ spawnfunc(info_null); ================== SUB_Friction -Applies some friction to self +Applies some friction to this ================== */ .float friction; -void SUB_Friction (); +void SUB_Friction (entity this); /* ================== @@ -41,8 +41,8 @@ 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 +calculate this.velocity and this.nextthink to reach dest from +this.origin traveling at speed =============== */ void SUB_CalcMoveDone(entity this); @@ -54,9 +54,9 @@ void SUB_CalcMove_controller_setbezier (entity controller, vector org, vector co void SUB_CalcMove_controller_setlinear (entity controller, vector org, vector dest); -void SUB_CalcMove_Bezier (vector tcontrol, vector tdest, float tspeedtype, float tspeed, void(entity this) func); +void SUB_CalcMove_Bezier (entity this, vector tcontrol, vector tdest, float tspeedtype, float tspeed, void(entity this) func); -void SUB_CalcMove (vector tdest, float tspeedtype, float tspeed, void(entity this) func); +void SUB_CalcMove (entity this, vector tdest, float tspeedtype, float tspeed, void(entity this) func); void SUB_CalcMoveEnt (entity ent, vector tdest, float tspeedtype, float tspeed, void(entity this) func); @@ -64,16 +64,16 @@ void SUB_CalcMoveEnt (entity ent, vector tdest, float tspeedtype, float tspeed, ============= SUB_CalcAngleMove -calculate self.avelocity and self.nextthink to reach destangle from -self.angles rotating +calculate this.avelocity and this.nextthink to reach destangle from +this.angles rotating -The calling function should make sure self.think is valid +The calling function should make sure this.think is valid =============== */ void SUB_CalcAngleMoveDone (entity this); // FIXME: I fixed this function only for rotation around the main axes -void SUB_CalcAngleMove (vector destangle, float tspeedtype, float tspeed, void(entity this) func); +void SUB_CalcAngleMove (entity this, vector destangle, float tspeedtype, float tspeed, void(entity this) func); void SUB_CalcAngleMoveEnt (entity ent, vector destangle, float tspeedtype, float tspeed, void(entity this) func); @@ -138,17 +138,17 @@ float angc (float a1, float a2); .float loddistance1; .float loddistance2; -float LOD_customize(); +bool LOD_customize(entity this, entity client); -void LOD_uncustomize(); +void LOD_uncustomize(entity this); void LODmodel_attach(entity this); void ApplyMinMaxScaleAngles(entity e); -void SetBrushEntityModel(); +void SetBrushEntityModel(entity this); -void SetBrushEntityModelNoLOD(); +void SetBrushEntityModelNoLOD(entity this); /* ================ @@ -158,8 +158,8 @@ InitTrigger void SetMovedir(entity this); -void InitTrigger(); +void InitTrigger(entity this); -void InitSolidBSPTrigger(); +void InitSolidBSPTrigger(entity this); bool InitMovingBrushTrigger(entity this);