PDA

View Full Version : Hide weapon models?


Korrupzion
02-14-2012, 02:34
Hello,

I'm trying Hide weapon world models, so people can't see the weapon that a player is wearing, how can I do this?

And also, I want to know if it's possible to hide client weapon viewmodel

Thanks!

Starbish
02-15-2012, 12:10
Maybe, World Model can change its colors by using SetEntityRenderColor

Blowst
02-15-2012, 14:25
try this (https://forums.alliedmods.net/showthread.php?t=152165).

or


SetWeaponTransparency(Client, Alpha)
{
if(IsPlayerAlive(Client))
{
new m_hActiveWeapon = GetEntPropEnt(Client, Prop_Data, "m_hActiveWeapon");

if(m_hActiveWeapon > -1 )
{
SetEntityRenderMode(m_hActiveWeapon, RENDER_TRANSALPHA);
SetEntityRenderColor(m_hActiveWeapon, 255, 255, 255, Alpha);
}
}
}