From 6b0978aaa4b84807a2fd9b8d374efdaecd74613e Mon Sep 17 00:00:00 2001 From: FortyTwoFortyTwo Date: Fri, 11 Oct 2024 15:05:55 +0100 Subject: [PATCH] Update Special Infected kill icons to use Zombie Infection versions --- addons/sourcemod/configs/szf/classes.cfg | 24 ++++++++++++------------ addons/sourcemod/scripting/szf/event.sp | 4 ++++ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/addons/sourcemod/configs/szf/classes.cfg b/addons/sourcemod/configs/szf/classes.cfg index 282e6d0b..a65d1bd4 100644 --- a/addons/sourcemod/configs/szf/classes.cfg +++ b/addons/sourcemod/configs/szf/classes.cfg @@ -271,8 +271,8 @@ { "index" "5" // Fists "attrib" "107 ; 1.8 ; 236 ; 1.0 ; 329 ; 0.0 ; 405 ; 0.0" // move speed bonus, weapon blocks healing, airblast immunity, vertical airblast immunity - "logname" "warrior_spirit" - "iconname" "warrior_spirit" + "logname" "infection_heavy" + "iconname" "infection_heavy" } } @@ -293,8 +293,8 @@ "weapon" { "index" "5" // Fists - "logname" "warrior_spirit" - "iconname" "warrior_spirit" + "logname" "infection_heavy" + "iconname" "infection_heavy" } } @@ -384,8 +384,8 @@ "weapon" { "index" "5" // Fists - "logname" "unarmed_combat" - "iconname" "unarmed_combat" + "logname" "infection_scout" + "iconname" "infection_scout" } } @@ -407,8 +407,8 @@ "weapon" { "index" "5" // Fists - "logname" "unarmed_combat" - "iconname" "unarmed_combat" + "logname" "infection_sniper" + "iconname" "infection_sniper" } } @@ -436,8 +436,8 @@ "weapon" { "index" "5" // Fists - "logname" "hot_hand" - "iconname" "hot_hand" + "logname" "infection_pyro" + "iconname" "infection_pyro" } } @@ -461,8 +461,8 @@ "weapon" { "index" "5" // Fists - "logname" "unarmed_combat" - "iconname" "unarmed_combat" + "logname" "infection_soldier" + "iconname" "infection_soldier" } } } diff --git a/addons/sourcemod/scripting/szf/event.sp b/addons/sourcemod/scripting/szf/event.sp index df77f97b..eff79c0b 100644 --- a/addons/sourcemod/scripting/szf/event.sp +++ b/addons/sourcemod/scripting/szf/event.sp @@ -271,6 +271,10 @@ public Action Event_PlayerDeath(Event event, const char[] name, bool dontBroadca } } + // Spitter bleed + if (IsValidZombie(iKillers[0]) && g_nInfected[iKillers[0]] == Infected_Spitter && event.GetInt("customkill") == TF_CUSTOM_BLEEDING) + event.SetString("weapon", "infection_acid_puddle"); + if (iInflictor != INVALID_ENT_REFERENCE && IsClassname(iInflictor, "prop_physics")) { // Could be a tank thorwing debris to set kill icon