From: drjaska Date: Sat, 24 Aug 2024 00:10:12 +0000 (+0300) Subject: Rename SpawnGhost to TransmuteToGhost X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e88dea9330a37e414523a69a119b62fcde514fd2;p=xonotic%2Fxonotic-data.pk3dir.git Rename SpawnGhost to TransmuteToGhost --- diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index 6057d0dd5..ad6433000 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -1473,7 +1473,7 @@ void respawn(entity this) if(autocvar_g_respawn_ghosts && !(this.effects & EF_NODRAW)) // only spawn one ghost { - SpawnGhost(this); + TransmuteToGhost(this); } else SUB_SetFade (this, time, 1); // fade out the corpse immediately diff --git a/qcsrc/server/player.qc b/qcsrc/server/player.qc index e2e97852a..a529fabfb 100644 --- a/qcsrc/server/player.qc +++ b/qcsrc/server/player.qc @@ -231,7 +231,7 @@ void PlayerCorpseDamage(entity this, entity inflictor, entity attacker, float da && autocvar_g_respawn_ghosts_gib && !(this.effects & EF_NODRAW)) // only spawn one ghost { - SpawnGhost(this); + TransmuteToGhost(this); CopyBody(this, 1); this.effects |= EF_NODRAW; // prevent another CopyBody and 2nd ghost spawns @@ -630,7 +630,7 @@ bool PlayerHeal(entity targ, entity inflictor, float amount, float limit) return true; } -void SpawnGhost(entity this) +void TransmuteToGhost(entity this) { // effects are disabled or one ghost was already spawned if (this.effects & EF_NODRAW) diff --git a/qcsrc/server/player.qh b/qcsrc/server/player.qh index 7181151fb..2ee0475b8 100644 --- a/qcsrc/server/player.qh +++ b/qcsrc/server/player.qh @@ -44,7 +44,7 @@ bool PlayerHeal(entity targ, entity inflictor, float amount, float limit); void precache_all_playermodels(string pattern); -void SpawnGhost(entity this); +void TransmuteToGhost(entity this); IntrusiveList g_clones; STATIC_INIT(g_clones) { g_clones = IL_NEW(); }