diff --git a/src/zr/weapons/weaponalpha.inc b/src/zr/weapons/weaponalpha.inc index 6aea2b0..441c86f 100644 --- a/src/zr/weapons/weaponalpha.inc +++ b/src/zr/weapons/weaponalpha.inc @@ -81,6 +81,16 @@ WeaponAlphaOnClientDisconnect(client) */ WeaponAlphaOnItemPickupPost(client, weapon) { + if (Entity_HasChildren(weapon)) + { + // Don't apply alpha value if weapon has children. Render mode is + // recursively applied to child entities that may not have the render + // mode attribute - and cause errors like this: + // Native "SetEntProp" reported: Property "m_nRenderMode" not found + // (entity 666/info_particle_system) + return; + } + // Get client's current alpha. new alpha = ToolsGetEntityAlpha(client);