mirror of
https://github.com/Nereziel/cs2-WeaponPaints.git
synced 2026-03-07 15:37:16 +00:00
3.0b
- Fix for fade skins (same seed if 0 by default)
This commit is contained in:
14
Commands.cs
14
Commands.cs
@@ -164,17 +164,9 @@ public partial class WeaponPaints
|
||||
if (!teamWeapons.TryGetValue(weapon.AttributeManager.Item.ItemDefinitionIndex, out var teamWeapon))
|
||||
return;
|
||||
|
||||
if (teamWeapon.StatTrak)
|
||||
{
|
||||
teamWeapon.StatTrak = false;
|
||||
RefreshWeapons(player);
|
||||
}
|
||||
else
|
||||
{
|
||||
teamWeapon.StatTrak = true;
|
||||
RefreshWeapons(player);
|
||||
}
|
||||
|
||||
teamWeapon.StatTrak = !teamWeapon.StatTrak;
|
||||
RefreshWeapons(player);
|
||||
|
||||
if (!string.IsNullOrEmpty(Localizer["wp_stattrak_action"]))
|
||||
{
|
||||
player.Print(Localizer["wp_stattrak_action"]);
|
||||
|
||||
Reference in New Issue
Block a user