Skip to content

Commit

Permalink
fix: Save player last weapon used even suicide
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyShorokhov committed Apr 23, 2024
1 parent 9bb44ab commit 8de58fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cstrike/addons/amxmodx/scripting/ReDeathmatch.sma
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,11 @@ public CSGameRules_PlayerKilled_Post(const victim, const killer, const inflictor
if (!SV_IsPlayerIndex(killer))
return

EquipManager_PlayerKilled(victim)
if (killer == victim)
return

Features_PlayerKilled(victim, killer)
EquipManager_PlayerKilled(victim)
}

public CvarChange_redm_active(const cvar, const oldValue[], const value[]) {
Expand Down

0 comments on commit 8de58fa

Please sign in to comment.