Raised This Month: $32 Target: $400
 8% 

Invis viewmodel?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DoPe^
Veteran Member
Join Date: Jul 2008
Location: Denmark / Copenhagen
Old 09-25-2014 , 06:17   Invis viewmodel?
Reply With Quote #1

Hey guys, is it possible to make a players viewmodel (gun/knife etc.) invisible?
Just like it is with the worldmodel "SetWeaponColor(client,255,255,255,0)"?

Thanks
__________________
DoPe^ is offline
h3bus
AlliedModders Donor
Join Date: Nov 2013
Old 09-25-2014 , 08:04   Re: Invis viewmodel?
Reply With Quote #2

Never tried but there are some interesting props you might want to mess with:
- On players: m_bDrawViewmodel
- On viewmodel (retrived by m_hViewModel on player): m_nRenderFX/m_nRenderMode and Inputs: InputAlpha/InputDisableDraw
h3bus is offline
MasterOfTheXP
Veteran Member
Join Date: Aug 2011
Location: Cloudbank
Old 09-25-2014 , 09:38   Re: Invis viewmodel?
Reply With Quote #3

In TF2, adding 32 to a viewmodel's m_fEffects works to make it invisible.
__________________
Plugins / My Steam / TF2 Sandbox (plugin beta testing!)
MasterOfTheXP is offline
DoPe^
Veteran Member
Join Date: Jul 2008
Location: Denmark / Copenhagen
Old 09-25-2014 , 11:30   Re: Invis viewmodel?
Reply With Quote #4

Quote:
Originally Posted by MasterOfTheXP View Post
In TF2, adding 32 to a viewmodel's m_fEffects works to make it invisible.
Thanks! that did the tricks
__________________
DoPe^ is offline
Entity
Member
Join Date: May 2016
Old 11-09-2018 , 19:55   Re: Invis viewmodel?
Reply With Quote #5

Quote:
Originally Posted by DoPe^ View Post
Thanks! that did the tricks
How have u done this? I couldn't do that

PHP Code:
new entity GetEntPropEnt(clientProp_Send"m_hViewModel");
    
if (
IsValidEntity(entity))
{
    
SetEntProp(entityProp_Send"m_fEffects"GetEntProp(entityProp_Send"m_fEffects") & ~32);
    
SetEntityRenderMode(entityRENDER_TRANSCOLOR);
    
SetEntityRenderColor(entity25525525525);

Entity is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 11-13-2018 , 19:00   Re: Invis viewmodel?
Reply With Quote #6

Quote:
Originally Posted by MasterOfTheXP View Post
In TF2, adding 32 to a viewmodel's m_fEffects works to make it invisible.
Entity, isn't that should be
Code:
| 32
?
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Reply


Thread Tools
Display Modes

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 21:51.


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