Skip to content

Commit

Permalink
Merge pull request #330 from daffyyyy/main
Browse files Browse the repository at this point in the history
Sticker position re-added
  • Loading branch information
daffyyyy authored Oct 20, 2024
2 parents ccee3e5 + 44c59e6 commit b99f30d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions WeaponAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,10 @@ private void SetStickers(CCSPlayerController? player, CBasePlayerWeapon weapon)
// $"sticker slot {stickerSlot} schema", stickerSlot);
// if (stickerSlot == 5)
// {
// // CAttributeListSetOrAddAttributeValueByName.Invoke(weapon.AttributeManager.Item.NetworkedDynamicAttributes.Handle,
// // $"sticker slot {stickerSlot} offset x", 0.05f);
// // CAttributeListSetOrAddAttributeValueByName.Invoke(weapon.AttributeManager.Item.NetworkedDynamicAttributes.Handle,
// // $"sticker slot {stickerSlot} offset y", 0.02f);
CAttributeListSetOrAddAttributeValueByName.Invoke(weapon.AttributeManager.Item.NetworkedDynamicAttributes.Handle,
$"sticker slot {stickerSlot} offset x", sticker.OffsetX);
CAttributeListSetOrAddAttributeValueByName.Invoke(weapon.AttributeManager.Item.NetworkedDynamicAttributes.Handle,
$"sticker slot {stickerSlot} offset y", sticker.OffsetY);
// }
CAttributeListSetOrAddAttributeValueByName.Invoke(weapon.AttributeManager.Item.NetworkedDynamicAttributes.Handle,
$"sticker slot {stickerSlot} wear", sticker.Wear);
Expand Down

0 comments on commit b99f30d

Please sign in to comment.