Skip to content

Commit

Permalink
Update Special Infected kill icons to use Zombie Infection versions
Browse files Browse the repository at this point in the history
  • Loading branch information
FortyTwoFortyTwo committed Oct 11, 2024
1 parent cce4ce5 commit 6b0978a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
24 changes: 12 additions & 12 deletions addons/sourcemod/configs/szf/classes.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
Expand All @@ -293,8 +293,8 @@
"weapon"
{
"index" "5" // Fists
"logname" "warrior_spirit"
"iconname" "warrior_spirit"
"logname" "infection_heavy"
"iconname" "infection_heavy"
}
}
Expand Down Expand Up @@ -384,8 +384,8 @@
"weapon"
{
"index" "5" // Fists
"logname" "unarmed_combat"
"iconname" "unarmed_combat"
"logname" "infection_scout"
"iconname" "infection_scout"
}
}
Expand All @@ -407,8 +407,8 @@
"weapon"
{
"index" "5" // Fists
"logname" "unarmed_combat"
"iconname" "unarmed_combat"
"logname" "infection_sniper"
"iconname" "infection_sniper"
}
}
Expand Down Expand Up @@ -436,8 +436,8 @@
"weapon"
{
"index" "5" // Fists
"logname" "hot_hand"
"iconname" "hot_hand"
"logname" "infection_pyro"
"iconname" "infection_pyro"
}
}
Expand All @@ -461,8 +461,8 @@
"weapon"
{
"index" "5" // Fists
"logname" "unarmed_combat"
"iconname" "unarmed_combat"
"logname" "infection_soldier"
"iconname" "infection_soldier"
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions addons/sourcemod/scripting/szf/event.sp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6b0978a

Please sign in to comment.