mirror of
https://github.com/Nereziel/cs2-WeaponPaints.git
synced 2026-03-11 16:59:58 +00:00
Compare commits
3 Commits
build-395
...
f2ff6245df
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f2ff6245df | ||
|
|
1ef12ed6b2 | ||
|
|
4bae11b3c0 |
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user