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 <saul.renni...@gmail.com> 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 <jan.hart...@gmx.de> 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