Skip to content

Commit

Permalink
fix: stripping bomb
Browse files Browse the repository at this point in the history
  • Loading branch information
derkalle4 committed Nov 10, 2024
1 parent dfec94b commit 8c003c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/RollTheDice+DiceStripWeapons.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ private string DiceStripWeapons(CCSPlayerController player, CCSPlayerPawn player
if (weapon.Value == null || weapon.Value != null && weapon.Value.DesignerName == null) continue;
// ignore knife and C4
if (weapon.Value!.DesignerName == $"weapon_{CsItem.C4.ToString().ToLower()}"
|| weapon.Value!.DesignerName == $"weapon_{CsItem.Bomb.ToString().ToLower()}"
|| weapon.Value!.DesignerName == "weapon_knife" // necessary because CsItem.Knife is not always this value
|| weapon.Value!.DesignerName == $"weapon_{CsItem.Knife.ToString().ToLower()}"
|| weapon.Value!.DesignerName == $"weapon_{CsItem.KnifeCT.ToString().ToLower()}"
Expand Down

0 comments on commit 8c003c0

Please sign in to comment.