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

Setting a user's visibility


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 03-31-2005 , 10:15   Setting a user's visibility
Reply With Quote #1

Was wondering if anyone was able to do this? Rendering effects on the player?

Josh
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
vancelorgin
Senior Member
Join Date: Dec 2004
Location: san frandisco
Old 03-31-2005 , 11:16  
Reply With Quote #2

m_pEntity->SetRenderMode(kRenderNone);

should work - if not None for some reason try some of the lower ones - they're pretty funny, and I know a few of them don't render at all
__________________
Avoid like the plague.
vancelorgin is offline
sslice
Senior Member
Join Date: Feb 2005
Location: Texas, USA
Old 04-03-2005 , 01:12  
Reply With Quote #3

Where would I find all the render modes?
__________________
sslice is offline
sslice
Senior Member
Join Date: Feb 2005
Location: Texas, USA
Old 04-03-2005 , 21:45  
Reply With Quote #4

Sorry for the double post, but kRenderNone doesn't seem to do anything. Visually at least.
__________________
sslice is offline
vancelorgin
Senior Member
Join Date: Dec 2004
Location: san frandisco
Old 04-03-2005 , 22:17  
Reply With Quote #5

No, it doesn't do anything visually to *you*, should you test it on you, but players can't see you. They can see your weapon, but you can set that to rendernone too. Also, in MSVC, right click kRenderNone and click 'Go To Definition'.
__________________
Avoid like the plague.
vancelorgin is offline
sslice
Senior Member
Join Date: Feb 2005
Location: Texas, USA
Old 04-03-2005 , 23:04  
Reply With Quote #6

Ah, I see. Well, when I kill myself I see the model rendered, but maybe it changes back to kRenderNormal after death.

Will have to look at RenderFx now.


Edit: Do you know of any way to reproduce the way Phantom CT looks?
__________________
sslice is offline
fysh
Senior Member
Join Date: Oct 2004
Old 04-03-2005 , 23:08  
Reply With Quote #7

When you kill yourself a new ragdoll entity is created. It is not really the same entity as you were.
fysh is offline
sslice
Senior Member
Join Date: Feb 2005
Location: Texas, USA
Old 04-03-2005 , 23:12  
Reply With Quote #8

ohh... that explains it.
__________________
sslice is offline
vancelorgin
Senior Member
Join Date: Dec 2004
Location: san frandisco
Old 04-03-2005 , 23:17  
Reply With Quote #9

wtf is phantom ct
__________________
Avoid like the plague.
vancelorgin is offline
Webring
Junior Member
Join Date: Mar 2005
Old 04-04-2005 , 15:37  
Reply With Quote #10

Hey guys,
What the hell I need to get this simple example to work?
Code:
#include "baseentity.h"

virtual void test(edict_t *pEntity); //in the header

void test(edict_t *pEntity) { 
CBaseEntity *pPlayer = pEntity->GetUnknown()->GetBaseEntity();
pPlayer->SetRenderMode(kRenderNone);
}

Code:
errors
..\..\dlls\entityoutput.h(66) : error C2061: syntax error : identifier 'ISave'
..\..\dlls\entityoutput.h(67) : error C2061: syntax error : identifier 'IRestore'
..\..\dlls\entityoutput.h(76) : error C2079: 'm_Value' uses undefined class 'variant_t'
..\..\dlls\ServerNetworkProperty.h(168) : error C2065: 'ENTINDEX' : undeclared identifier
..\..\dlls\baseentity.h(203) : error C2079: 'value' uses undefined class 'variant_t'
..\..\dlls\baseentity.h(757) : error C2065: 'CPredictableId' : undeclared identifier
..\..\dlls\baseentity.h(757) : error C2955: 'CNetworkVarBase' : use of class template requires template argument list
        ..\..\public\networkvar.h(283) : see declaration of 'CNetworkVarBase'
Webring 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 03:33.


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