Compare commits

..

4 Commits

Author SHA1 Message Date
Gabriel Freitas Yamamoto
f2ff6245df Merge 4bae11b3c0 into 1ef12ed6b2 2025-09-26 02:21:50 +08:00
Dawid Bepierszcz
1ef12ed6b2 Update WeaponAction.cs 2025-09-18 12:16:29 +02:00
Dawid Bepierszcz
3f174a5013 Update WeaponPaints.cs 2025-09-18 11:45:45 +02:00
Gabriel Freitas Yamamoto
4bae11b3c0 docs: add skins command to README 2025-06-02 20:36:53 -03:00
3 changed files with 5 additions and 5 deletions

View File

@@ -14,6 +14,7 @@ Unfinished, unoptimized and not fully functional ugly demo weapon paints plugin
- Data syncs on player connect
- Added command **`!wp`** to refresh skins ***(with cooldown in seconds can be configured)***
- Added command **`!ws`** to show website
- Added command **`!skins`** to show menu with skins
- Added command **`!knife`** to show menu with knives
- Added command **`!gloves`** to show menu with gloves
- Added command **`!agents`** to show menu with agents

View File

@@ -452,12 +452,11 @@ namespace WeaponPaints
private void UpdateWeaponMeshGroupMask(CBaseEntity weapon, bool isLegacy = false)
{
if (!weapon.DesignerName.Contains("ak47")) return;
if (weapon.CBodyComponent?.SceneNode == null) return;
var skeleton = weapon.CBodyComponent.SceneNode.GetSkeletonInstance();
//var skeleton = weapon.CBodyComponent.SceneNode.GetSkeletonInstance();
// skeleton.ModelState.MeshGroupMask = isLegacy ? 2UL : 1UL;
weapon.AcceptInput("SetBodygroup", value: $"body,{(isLegacy ? 1 : 0)}");
// skeleton.ModelState.MeshGroupMask = isLegacy ? 2UL : 1UL;
}
private void UpdatePlayerWeaponMeshGroupMask(CCSPlayerController player, CBasePlayerWeapon weapon, bool isLegacy)
@@ -595,4 +594,4 @@ namespace WeaponPaints
return BitConverter.Int32BitsToSingle((int)value);
}
}
}
}

View File

@@ -10,7 +10,7 @@ using MySqlConnector;
namespace WeaponPaints;
[MinimumApiVersion(380)]
[MinimumApiVersion(338)]
public partial class WeaponPaints : BasePlugin, IPluginConfig<WeaponPaintsConfig>
{
internal static WeaponPaints Instance { get; private set; } = new();