Raised This Month: $ Target: $400
 0% 

[TF2] How to hide weapon.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Eggman
Senior Member
Join Date: Jan 2010
Old 01-14-2010 , 07:34   [TF2] How to hide weapon.
Reply With Quote #1

I need hide weapon, and use this constructon:
Quote:
SetWeaponsAlpha(target, alpha)
{
if(IsPlayerAlive(target))
{
new m_hMyWeapons = FindSendPropOffs("CBasePlayer", "m_hMyWeapons");

for(new i = 0, weapon; i < 47; i += 4)
{
weapon = GetEntDataEnt2(target, m_hMyWeapons + i);

if(weapon > -1 )
{
SetEntityRenderMode(weapon, RENDER_TRANSCOLOR);
SetEntityRenderColor(weapon, 255, 255, 255, alpha);
}
}
}
}
But it's don't hide original weapons from 1st view, and I need this. How to do?
Eggman is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 01-14-2010 , 08:22   Re: [TF2] How to hide weapon.
Reply With Quote #2

Kill tf_viewmodel. I dunno about the code how to find it's index.
FaTony is offline
Eggman
Senior Member
Join Date: Jan 2010
Old 01-14-2010 , 12:09   Re: [TF2] How to hide weapon.
Reply With Quote #3

and how do it?
Eggman is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode