game: cleanup player export

This commit is contained in:
Denis Pauk 2024-02-25 15:47:29 +02:00
parent 55313fa513
commit 93c580f733
9 changed files with 11 additions and 110 deletions

View file

@ -1751,8 +1751,6 @@ CTFGrappleDrawCable(edict_t *self)
gi.multicast(self->s.origin, MULTICAST_PVS);
}
void SV_AddGravity(edict_t *ent);
/*
* pull the player toward the grapple
*/

View file

@ -525,7 +525,7 @@ RealBoundingBox(edict_t *ent, vec3_t mins, vec3_t maxs)
/*
* Does not change the entities velocity at all
*/
trace_t
static trace_t
SV_PushEntity(edict_t *ent, vec3_t push)
{
trace_t trace;
@ -608,7 +608,7 @@ retry:
* Objects need to be moved back on a failed push,
* otherwise riders would continue to slide.
*/
qboolean
static qboolean
SV_Push(edict_t *pusher, vec3_t move, vec3_t amove)
{
int i, e;

View file

@ -191,7 +191,7 @@ ED_NewString(const char *string)
* Takes a key/value pair and sets
* the binary values in an edict
*/
void
static void
ED_ParseField(const char *key, const char *value, edict_t *ent)
{
field_t *f;
@ -1075,7 +1075,7 @@ SP_worldspawn(edict_t *ent)
* CreateGroundMonster - this checks the volume and makes sure the floor under the volume is suitable
*/
edict_t *
static edict_t *
CreateMonster(vec3_t origin, vec3_t angles, char *classname)
{
edict_t *newEnt;

View file

@ -987,10 +987,10 @@ void M_ChangeYaw(edict_t *ent);
/* g_phys.c */
void G_RunEntity(edict_t *ent);
void SV_AddGravity(edict_t *ent);
/* g_main.c */
void SaveClientData(void);
void FetchClientEntData(edict_t *ent);
void EndDMLevel(void);
/* g_chase.c */
@ -1073,7 +1073,6 @@ void Tag_PlayerDeath(edict_t *targ, edict_t *inflictor, edict_t *attacker);
void fire_doppleganger(edict_t *ent, vec3_t start, vec3_t aimdir);
/* g_spawn.c */
edict_t *CreateMonster(vec3_t origin, vec3_t angles, char *classname);
edict_t *CreateFlyMonster(vec3_t origin, vec3_t angles, vec3_t mins,
vec3_t maxs, char *classname);
edict_t *CreateGroundMonster(vec3_t origin, vec3_t angles, vec3_t mins,
@ -1727,7 +1726,6 @@ void SP_trigger_teleport(edict_t *ent);
void SP_info_teleport_destination(edict_t *ent);
void CTFSetPowerUpEffect(edict_t *ent, int def);
void DeathmatchScoreboard(edict_t *ent);
qboolean Pickup_Adrenaline(edict_t * ent, edict_t * other);
qboolean Pickup_Ammo(edict_t * ent , edict_t * other);

View file

@ -1352,7 +1352,7 @@ SaveClientData(void)
}
}
void
static void
FetchClientEntData(edict_t *ent)
{
if (!ent)
@ -1880,7 +1880,7 @@ body_die(edict_t *self, edict_t *inflictor /* unused */,
}
}
void
static void
CopyToBodyQue(edict_t *ent)
{
edict_t *body;

View file

@ -379,18 +379,6 @@ DeathmatchScoreboardMessage(edict_t *ent, edict_t *killer)
gi.WriteString(string);
}
/*
* Draw instead of help message.
* Note that it isn't that hard to
* overflow the 1400 byte message limit!
*/
void
DeathmatchScoreboard(edict_t *ent)
{
DeathmatchScoreboardMessage(ent, ent->enemy);
gi.unicast(ent, true);
}
/*
* Draw help computer.
*/

View file

@ -66,7 +66,7 @@ SV_CalcRoll(vec3_t angles, vec3_t velocity)
/*
* Handles color blends and view kicks
*/
void
static void
P_DamageFeedback(edict_t *player)
{
gclient_t *client;
@ -530,7 +530,7 @@ SV_CalcGunOffset(edict_t *ent)
}
}
void
static void
SV_AddBlend(float r, float g, float b, float a, float *v_blend)
{
float a2, a3;
@ -755,7 +755,7 @@ SV_CalcBlend(edict_t *ent)
}
}
void
static void
P_FallingDamage(edict_t *ent)
{
float delta;
@ -877,7 +877,7 @@ P_FallingDamage(edict_t *ent)
}
}
void
static void
P_WorldEffects(void)
{
qboolean breather;

View file

@ -26,8 +26,6 @@
* =======================================================================
*/
extern byte P_DamageModifier ( edict_t * ent ) ;
extern edict_t * CreateMonster ( vec3_t origin , vec3_t angles , char * classname ) ;
extern edict_t * DoRandomRespawn ( edict_t * ent ) ;
extern edict_t * Drop_Item ( edict_t * ent , gitem_t * item ) ;
extern edict_t * G_Find ( edict_t * from , int fieldofs , char * match ) ;
@ -35,23 +33,15 @@ extern edict_t * G_PickTarget ( char * targetname ) ;
extern edict_t * G_Spawn ( void ) ;
extern edict_t * PickBallStart ( edict_t * ent ) ;
extern edict_t * PickCoopTarget ( edict_t * self ) ;
extern edict_t * PlayerTrail_LastSpot ( void ) ;
extern edict_t * PlayerTrail_PickFirst ( edict_t * self ) ;
extern edict_t * PlayerTrail_PickNext ( edict_t * self ) ;
extern edict_t * SelectFarthestDeathmatchSpawnPoint ( void ) ;
extern edict_t * SelectRandomDeathmatchSpawnPoint ( void ) ;
extern edict_t * fixbot_FindDeadMonster ( edict_t * self ) ;
extern edict_t * medic_FindDeadMonster ( edict_t * self ) ;
extern float PlayersRangeFromSpot ( edict_t * spot ) ;
extern float target_angle ( edict_t * self ) ;
extern gitem_t * FindItem ( char * pickup_name ) ;
extern gitem_t * FindItemByClassname ( char * classname ) ;
extern gitem_t * GetItemByIndex ( int index ) ;
extern int ArmorIndex ( edict_t * ent ) ;
extern int CountPlayers ( void ) ;
extern int DBall_ChangeDamage ( edict_t * targ , edict_t * attacker , int damage , int mod ) ;
extern int DBall_ChangeKnockback ( edict_t * targ , edict_t * attacker , int knockback , int mod ) ;
extern int DBall_CheckDMRules ( void ) ;
extern int PowerArmorType ( edict_t * ent ) ;
extern int SV_FlyMove ( edict_t * ent , float time , int mask ) ;
extern int Tag_ChangeDamage ( edict_t * targ , edict_t * attacker , int damage , int mod ) ;
@ -67,8 +57,6 @@ extern qboolean Boss2_CheckAttack ( edict_t * self ) ;
extern qboolean CanDamage ( edict_t * targ , edict_t * inflictor ) ;
extern qboolean Carrier_CheckAttack ( edict_t * self ) ;
extern qboolean FacingIdeal ( edict_t * self ) ;
extern qboolean FindSpawnPoint ( vec3_t startpoint , vec3_t mins , vec3_t maxs , vec3_t spawnpoint , float maxMoveUp ) ;
extern qboolean FindTarget ( edict_t * self ) ;
extern qboolean IsBadAhead ( edict_t * self , edict_t * bad , vec3_t move ) ;
extern qboolean IsFemale ( edict_t * ent ) ;
extern qboolean IsNeutral ( edict_t * ent ) ;
@ -96,7 +84,6 @@ extern qboolean Pickup_Sphere ( edict_t * ent , edict_t * other ) ;
extern qboolean Pickup_Weapon ( edict_t * ent , edict_t * other ) ;
extern qboolean SV_CloseEnough ( edict_t * ent , edict_t * goal , float dist ) ;
extern qboolean SV_FilterPacket ( char * from ) ;
extern qboolean SV_Push ( edict_t * pusher , vec3_t move , vec3_t amove ) ;
extern qboolean SV_RunThink ( edict_t * ent ) ;
extern qboolean SV_StepDirection ( edict_t * ent , float yaw , float dist ) ;
extern qboolean SV_movestep ( edict_t * ent , vec3_t move , qboolean relink ) ;
@ -148,8 +135,6 @@ extern qboolean turret_checkattack ( edict_t * self ) ;
extern qboolean visible ( edict_t * self , edict_t * other ) ;
extern qboolean widow2_tongue_attack_ok ( vec3_t start , vec3_t end , float range ) ;
extern qboolean widow_blocked ( edict_t * self , float dist ) ;
extern trace_t SV_PushEntity ( edict_t * ent , vec3_t push ) ;
extern void AI_SetSightClient ( void ) ;
extern void AddPointToBounds ( const vec3_t v , vec3_t mins , vec3_t maxs ) ;
extern void AngleMove_Begin ( edict_t * ent ) ;
extern void AngleMove_Calc ( edict_t * ent , void ( * func ) ( edict_t * ) ) ;
@ -192,18 +177,14 @@ extern void ClientObituary ( edict_t * self , edict_t * inflictor , edict_t * at
extern void ClientThink ( edict_t * ent , usercmd_t * ucmd ) ;
extern void ClientUserinfoChanged ( edict_t * ent , char * userinfo ) ;
extern void ClipGibVelocity ( edict_t * ent ) ;
extern void CopyToBodyQue ( edict_t * ent ) ;
extern void DBall_BallDie ( edict_t * self , edict_t * inflictor , edict_t * attacker , int damage , vec3_t point ) ;
extern void DBall_BallPain ( edict_t * self , edict_t * other , float kick , int damage ) ;
extern void DBall_BallRespawn ( edict_t * self ) ;
extern void DBall_BallTouch ( edict_t * ent , edict_t * other , cplane_t * plane , csurface_t * surf ) ;
extern void DBall_ClientBegin ( edict_t * ent ) ;
extern void DBall_GameInit ( void ) ;
extern void DBall_GoalTouch ( edict_t * self , edict_t * other , cplane_t * plane , csurface_t * surf ) ;
extern void DBall_PostInitSetup ( void ) ;
extern void DBall_SpeedTouch ( edict_t * self , edict_t * other , cplane_t * plane , csurface_t * surf ) ;
extern void DeathmatchScoreboard(edict_t *ent) ;
extern void DeathmatchScoreboardMessage ( edict_t * ent , edict_t * killer ) ;
extern void Defender_Launch ( edict_t * self ) ;
extern void DoRespawn ( edict_t * ent ) ;
extern void Door_Activate ( edict_t * self , edict_t * other , edict_t * activator ) ;
@ -211,10 +192,6 @@ extern void Drop_Ammo ( edict_t * ent , gitem_t * item ) ;
extern void Drop_General ( edict_t * ent , gitem_t * item ) ;
extern void Drop_PowerArmor ( edict_t * ent , gitem_t * item ) ;
extern void Drop_Weapon ( edict_t * ent , gitem_t * item ) ;
extern void ED_CallSpawn ( edict_t * ent ) ;
extern void ED_ParseField ( const char * key , const char * value , edict_t * ent ) ;
extern void FetchClientEntData ( edict_t * ent ) ;
extern void FoundTarget ( edict_t * self ) ;
extern void G_CheckChaseStats ( edict_t * ent ) ;
extern void G_FindTeams ( void ) ;
extern void G_FreeEdict ( edict_t * ed ) ;
@ -286,32 +263,13 @@ extern void Nuke_Explode ( edict_t * ent ) ;
extern void Nuke_Quake ( edict_t * self ) ;
extern void Nuke_Think ( edict_t * ent ) ;
extern void Own_Sphere ( edict_t * self , edict_t * sphere ) ;
extern void P_DamageFeedback ( edict_t * player ) ;
extern void P_FallingDamage ( edict_t * ent ) ;
extern void P_ProjectSource ( edict_t * ent , vec3_t distance , vec3_t forward , vec3_t right , vec3_t result );
extern void P_ProjectSource2 ( edict_t *ent, vec3_t point, vec3_t distance, vec3_t forward,vec3_t right, vec3_t up, vec3_t result);
extern void P_WorldEffects ( void ) ;
extern void PerpendicularVector ( vec3_t dst , const vec3_t src ) ;
extern void PlayerNoise ( edict_t * who , vec3_t where , int type ) ;
extern void PlayerTrail_Add ( vec3_t spot ) ;
extern void PlayerTrail_Init ( void ) ;
extern void PlayerTrail_New ( vec3_t spot ) ;
extern void PrecacheForRandomRespawn ( void ) ;
extern void PrecacheItem ( gitem_t * it ) ;
extern void PredictAim ( edict_t * target , vec3_t start , float bolt_speed , qboolean eye_height , float offset , vec3_t aimdir , vec3_t aimpoint ) ;
extern void ProjectPointOnPlane ( vec3_t dst , const vec3_t p , const vec3_t normal ) ;
extern void Prox_Explode ( edict_t * ent ) ;
extern void Prox_Field_Touch ( edict_t * ent , edict_t * other , cplane_t * plane , csurface_t * surf ) ;
extern void PutClientInServer ( edict_t * ent ) ;
extern void R_ConcatRotations ( const float in1 [ 3 ] [ 3 ] , const float in2 [ 3 ] [ 3 ] , float out [ 3 ] [ 3 ] ) ;
extern void R_ConcatTransforms ( const float in1 [ 3 ] [ 4 ] , const float in2 [ 3 ] [ 4 ] , float out [ 3 ] [ 4 ] ) ;
extern void RemoveAttackingPainDaemons ( edict_t * self ) ;
extern void RotatePointAroundVector ( vec3_t dst , const vec3_t dir , const vec3_t point , float degrees ) ;
extern void SP_CreateCoopSpots ( edict_t * self ) ;
extern void SP_CreateUnnamedSpawn ( edict_t * self ) ;
extern void SP_FixCoopSpots ( edict_t * self ) ;
extern void SV_AddBlend ( float r , float g , float b , float a , float * v_blend ) ;
extern void SV_AddGravity ( edict_t * ent ) ;
extern void SV_AddRotationalFriction ( edict_t * ent ) ;
extern void SV_CalcBlend ( edict_t * ent ) ;
extern void SV_CalcGunOffset ( edict_t * ent ) ;

View file

@ -26,7 +26,6 @@
* =======================================================================
*/
{"AI_SetSightClient", (byte *)AI_SetSightClient},
{"AddPointToBounds", (byte *)AddPointToBounds},
{"Add_Ammo", (byte *)Add_Ammo},
{"AngleMove_Begin", (byte *)AngleMove_Begin},
@ -75,22 +74,16 @@
{"ClientThink", (byte *)ClientThink},
{"ClientUserinfoChanged", (byte *)ClientUserinfoChanged},
{"ClipGibVelocity", (byte *)ClipGibVelocity},
{"CopyToBodyQue", (byte *)CopyToBodyQue},
{"CountPlayers", (byte *)CountPlayers},
{"CreateMonster", (byte *)CreateMonster},
{"DBall_BallDie", (byte *)DBall_BallDie},
{"DBall_BallPain", (byte *)DBall_BallPain},
{"DBall_BallRespawn", (byte *)DBall_BallRespawn},
{"DBall_BallTouch", (byte *)DBall_BallTouch},
{"DBall_ChangeDamage", (byte *)DBall_ChangeDamage},
{"DBall_ChangeKnockback", (byte *)DBall_ChangeKnockback},
{"DBall_CheckDMRules", (byte *)DBall_CheckDMRules},
{"DBall_ClientBegin", (byte *)DBall_ClientBegin},
{"DBall_GameInit", (byte *)DBall_GameInit},
{"DBall_GoalTouch", (byte *)DBall_GoalTouch},
{"DBall_PostInitSetup", (byte *)DBall_PostInitSetup},
{"DBall_SpeedTouch", (byte *)DBall_SpeedTouch},
{"DeathmatchScoreboardMessage", (byte *)DeathmatchScoreboardMessage},
{"Defender_Launch", (byte *)Defender_Launch},
{"DoRandomRespawn", (byte *)DoRandomRespawn},
{"DoRespawn", (byte *)DoRespawn},
@ -100,15 +93,7 @@
{"Drop_Item", (byte *)Drop_Item},
{"Drop_PowerArmor", (byte *)Drop_PowerArmor},
{"Drop_Weapon", (byte *)Drop_Weapon},
{"ED_CallSpawn", (byte *)ED_CallSpawn},
{"ED_ParseField", (byte *)ED_ParseField},
{"FacingIdeal", (byte *)FacingIdeal},
{"FetchClientEntData", (byte *)FetchClientEntData},
{"FindItem", (byte *)FindItem},
{"FindItemByClassname", (byte *)FindItemByClassname},
{"FindSpawnPoint", (byte *)FindSpawnPoint},
{"FindTarget", (byte *)FindTarget},
{"FoundTarget", (byte *)FoundTarget},
{"G_CheckChaseStats", (byte *)G_CheckChaseStats},
{"G_Find", (byte *)G_Find},
{"G_FindTeams", (byte *)G_FindTeams},
@ -131,7 +116,6 @@
{"G_UseTargets", (byte *)G_UseTargets},
{"GaldiatorMelee", (byte *)GaldiatorMelee},
{"GetChaseTarget", (byte *)GetChaseTarget},
{"GetItemByIndex", (byte *)GetItemByIndex},
{"GladbMelee", (byte *)GladbMelee},
{"GladiatorGun", (byte *)GladiatorGun},
{"Grenade_Explode", (byte *)Grenade_Explode},
@ -196,13 +180,6 @@
{"Nuke_Think", (byte *)Nuke_Think},
{"OnSameTeam", (byte *)OnSameTeam},
{"Own_Sphere", (byte *)Own_Sphere},
{"P_DamageFeedback", (byte *)P_DamageFeedback},
{"P_DamageModifier", (byte *)P_DamageModifier},
{"P_FallingDamage", (byte *)P_FallingDamage},
{"P_ProjectSource", (byte *)P_ProjectSource},
{"P_ProjectSource2", (byte *)P_ProjectSource2},
{"P_WorldEffects", (byte *)P_WorldEffects},
{"PerpendicularVector", (byte *)PerpendicularVector},
{"PickBallStart", (byte *)PickBallStart},
{"PickCoopTarget", (byte *)PickCoopTarget},
{"Pickup_Adrenaline", (byte *)Pickup_Adrenaline},
@ -219,31 +196,15 @@
{"Pickup_Powerup", (byte *)Pickup_Powerup},
{"Pickup_Sphere", (byte *)Pickup_Sphere},
{"Pickup_Weapon", (byte *)Pickup_Weapon},
{"PlayerNoise", (byte *)PlayerNoise},
{"PlayerTrail_Add", (byte *)PlayerTrail_Add},
{"PlayerTrail_Init", (byte *)PlayerTrail_Init},
{"PlayerTrail_LastSpot", (byte *)PlayerTrail_LastSpot},
{"PlayerTrail_New", (byte *)PlayerTrail_New},
{"PlayerTrail_PickFirst", (byte *)PlayerTrail_PickFirst},
{"PlayerTrail_PickNext", (byte *)PlayerTrail_PickNext},
{"PlayersRangeFromSpot", (byte *)PlayersRangeFromSpot},
{"PowerArmorType", (byte *)PowerArmorType},
{"PrecacheForRandomRespawn", (byte *)PrecacheForRandomRespawn},
{"PrecacheItem", (byte *)PrecacheItem},
{"PredictAim", (byte *)PredictAim},
{"ProjectPointOnPlane", (byte *)ProjectPointOnPlane},
{"Prox_Explode", (byte *)Prox_Explode},
{"Prox_Field_Touch", (byte *)Prox_Field_Touch},
{"PutClientInServer", (byte *)PutClientInServer},
{"R_ConcatRotations", (byte *)R_ConcatRotations},
{"R_ConcatTransforms", (byte *)R_ConcatTransforms},
{"RemoveAttackingPainDaemons", (byte *)RemoveAttackingPainDaemons},
{"RotatePointAroundVector", (byte *)RotatePointAroundVector},
{"SP_CreateCoopSpots", (byte *)SP_CreateCoopSpots},
{"SP_CreateUnnamedSpawn", (byte *)SP_CreateUnnamedSpawn},
{"SP_FixCoopSpots", (byte *)SP_FixCoopSpots},
{"SV_AddBlend", (byte *)SV_AddBlend},
{"SV_AddGravity", (byte *)SV_AddGravity},
{"SV_AddRotationalFriction", (byte *)SV_AddRotationalFriction},
{"SV_CalcBlend", (byte *)SV_CalcBlend},
{"SV_CalcGunOffset", (byte *)SV_CalcGunOffset},
@ -261,8 +222,6 @@
{"SV_Physics_Pusher", (byte *)SV_Physics_Pusher},
{"SV_Physics_Step", (byte *)SV_Physics_Step},
{"SV_Physics_Toss", (byte *)SV_Physics_Toss},
{"SV_Push", (byte *)SV_Push},
{"SV_PushEntity", (byte *)SV_PushEntity},
{"SV_RunThink", (byte *)SV_RunThink},
{"SV_StepDirection", (byte *)SV_StepDirection},
{"SV_movestep", (byte *)SV_movestep},