mirror of
https://github.com/Nereziel/cs2-WeaponPaints.git
synced 2026-05-05 15:11:20 +00:00
fix(gloves): prevent model overlap
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -390,6 +390,8 @@ namespace WeaponPaints
|
|||||||
item.NetworkedDynamicAttributes.Attributes.RemoveAll();
|
item.NetworkedDynamicAttributes.Attributes.RemoveAll();
|
||||||
item.AttributeList.Attributes.RemoveAll();
|
item.AttributeList.Attributes.RemoveAll();
|
||||||
|
|
||||||
|
//force gloves model refresh to prevent model overlap
|
||||||
|
player.ExecuteClientCommand("lastinv");
|
||||||
Instance.AddTimer(0.08f, () =>
|
Instance.AddTimer(0.08f, () =>
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@@ -422,6 +424,8 @@ namespace WeaponPaints
|
|||||||
|
|
||||||
item.Initialized = true;
|
item.Initialized = true;
|
||||||
|
|
||||||
|
//force gloves model refresh to prevent model overlap
|
||||||
|
player.ExecuteClientCommand("lastinv");
|
||||||
SetBodygroup(pawn, "first_or_third_person", 0);
|
SetBodygroup(pawn, "first_or_third_person", 0);
|
||||||
AddTimer(0.2f, () => SetBodygroup(pawn, "first_or_third_person", 1), TimerFlags.STOP_ON_MAPCHANGE);
|
AddTimer(0.2f, () => SetBodygroup(pawn, "first_or_third_person", 1), TimerFlags.STOP_ON_MAPCHANGE);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user