game: restore rogue RDM_DEATHBALL code

This commit is contained in:
Denis Pauk 2024-02-25 15:39:37 +02:00
parent 0326d45cf8
commit 55313fa513
3 changed files with 10 additions and 8 deletions

View file

@ -51,6 +51,16 @@ InitGameRules(void)
DMGame.ChangeDamage = Tag_ChangeDamage;
break;
case RDM_DEATHBALL:
DMGame.GameInit = DBall_GameInit;
DMGame.ChangeKnockback = DBall_ChangeKnockback;
DMGame.ChangeDamage = DBall_ChangeDamage;
DMGame.ClientBegin = DBall_ClientBegin;
DMGame.SelectSpawnPoint = DBall_SelectSpawnPoint;
DMGame.PostInitSetup = DBall_PostInitSetup;
DMGame.CheckDMRules = DBall_CheckDMRules;
break;
/* reset gamerules if it's not a valid number */
default:
gamerules->value = 0;

View file

@ -201,7 +201,6 @@ 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_SelectSpawnPoint ( edict_t * ent , vec3_t origin , vec3_t angles ) ;
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 ) ;
@ -327,9 +326,6 @@ extern void SV_Physics_None ( edict_t * ent ) ;
extern void SV_Physics_Pusher ( edict_t * ent ) ;
extern void SV_Physics_Step ( edict_t * ent ) ;
extern void SV_Physics_Toss ( edict_t * ent ) ;
extern void SelectSpawnPoint ( edict_t * ent , vec3_t origin , vec3_t angles ) ;
extern void ServerCommand ( void ) ;
extern void SetItemNames ( void ) ;
extern void SetRespawn ( edict_t * ent , float delay ) ;
extern void SetTriggeredSpawn ( edict_t * ent ) ;
extern void ShamClaw(edict_t* self);

View file

@ -89,7 +89,6 @@
{"DBall_GameInit", (byte *)DBall_GameInit},
{"DBall_GoalTouch", (byte *)DBall_GoalTouch},
{"DBall_PostInitSetup", (byte *)DBall_PostInitSetup},
{"DBall_SelectSpawnPoint", (byte *)DBall_SelectSpawnPoint},
{"DBall_SpeedTouch", (byte *)DBall_SpeedTouch},
{"DeathmatchScoreboardMessage", (byte *)DeathmatchScoreboardMessage},
{"Defender_Launch", (byte *)Defender_Launch},
@ -269,9 +268,6 @@
{"SV_movestep", (byte *)SV_movestep},
{"SelectFarthestDeathmatchSpawnPoint", (byte *)SelectFarthestDeathmatchSpawnPoint},
{"SelectRandomDeathmatchSpawnPoint", (byte *)SelectRandomDeathmatchSpawnPoint},
{"SelectSpawnPoint", (byte *)SelectSpawnPoint},
{"ServerCommand", (byte *)ServerCommand},
{"SetItemNames", (byte *)SetItemNames},
{"SetRespawn", (byte *)SetRespawn},
{"SetTriggeredSpawn", (byte *)SetTriggeredSpawn},
{"ShamClaw", (byte *)ShamClaw},