From e441ccc6012b47667b455fdb9e4c139a085c0667 Mon Sep 17 00:00:00 2001 From: Dawid Bepierszcz <41084667+daffyyyy@users.noreply.github.com> Date: Tue, 14 Nov 2023 22:49:59 +0100 Subject: [PATCH] Update WeaponPaints.cs Weird fix of skin visibility, but at the moment it works xD --- WeaponPaints.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/WeaponPaints.cs b/WeaponPaints.cs index da86bad2..7be2dbd5 100644 --- a/WeaponPaints.cs +++ b/WeaponPaints.cs @@ -159,6 +159,11 @@ public class WeaponPaints : BasePlugin, IPluginConfig } } + // Check the best slot and set it. Weird solution but works xD + AddTimer(0.1f, () => NativeAPI.IssueClientCommand((int)player.EntityIndex!.Value.Value - 1, "slot3")); + AddTimer(0.1f, () => NativeAPI.IssueClientCommand((int)player.EntityIndex!.Value.Value - 1, "slot2")); + AddTimer(0.1f, () => NativeAPI.IssueClientCommand((int)player.EntityIndex!.Value.Value - 1, "slot1")); + return HookResult.Continue; } private void OnEntitySpawned(CEntityInstance entity) @@ -384,4 +389,4 @@ public class WeaponPaints : BasePlugin, IPluginConfig Console.WriteLine(message); Console.ResetColor(); } -} \ No newline at end of file +}