Thanks. I was looking for exactly that function but was currently working in
the Server SDK project - so stupid me. I'm using GetMoveParent and it works
just fine.

 

Jan

 

Von: [email protected]
[mailto:[email protected]] Im Auftrag von Saul
Rennison
Gesendet: Dienstag, 26. Februar 2013 14:46
An: Discussion of Half-Life Programming
Betreff: Re: [hlcoders] Not rendering specific entities for a specific
player

 

After looking up the functions, I believe GetMoveParent is the correct
method (not GetParentEntity)




 

 

Kind regards,

Saul Rennison

 

On 26 February 2013 13:39, Saul Rennison <[email protected]> wrote:

Overriding C_BaseEntity::ShouldDraw should do the trick for you. It should
look something like:

 

bool C_MyEntity::ShouldDraw()

{

    return BaseClass::ShouldDraw() && GetParentEntity() !=
C_BasePlayer::GetLocalPlayer();

}

 

(GetParentEntity may be the wrong name for method)

 




 

 

Kind regards,

Saul Rennison

 

On 26 February 2013 13:34, Jan Hartung <[email protected]> wrote:

Hi list,

 

This might be easy to achieve but I did not come across anything that helps
me while searching the net, wiki and SDK.

Some time ago I asked how it would be possible to attach a model to a player
and the bonemerge solution I got from here works just as it should. The only
problem left now is that the player which carries that model sees it
floating for example in front of them when it's attached to their hand. Is
there any way from keeping the engine from rendering an entity for the
player it is attached to?

 

Jan

 

 

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders



 

 

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders

Reply via email to