Raised This Month: $51 Target: $400
 12% 

how to make weapons & equipment invisible


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zipcore
Veteran Member
Join Date: Mar 2010
Location: m_flZipcore
Old 04-08-2012 , 02:46   how to make weapons & equipment invisible
Reply With Quote #1

can anyone please help me out with a working fuction?

mfg zipcore
__________________
zipcore is offline
TheAvengers2
BANNED
Join Date: Jul 2011
Old 04-08-2012 , 05:45   Re: how to make weapons & equipment invisible
Reply With Quote #2

One way is to use SDKHook SetTransmit on the weapon entity and return Plugin_Handled. Another potential way is to change the entity rendering mode as discussed here: http://forums.alliedmods.net/showthread.php?t=92335

Last edited by TheAvengers2; 04-08-2012 at 05:45.
TheAvengers2 is offline
Andersso
Member
Join Date: Nov 2009
Location: E8 2A 2A 2A 2A
Old 04-08-2012 , 14:05   Re: how to make weapons & equipment invisible
Reply With Quote #3

What about:

PHP Code:

#define EF_NODRAW 32

stock ShowEntity(entitybool:show)
{
    new 
flags GetEntProp(entityProp_Send"m_fEffects");
    
    
SetEntProp(entityProp_Send"m_fEffects"show flags & ~EF_NODRAW flags EF_NODRAW);

Andersso 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 16:53.


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