Raised This Month: $ Target: $400
 0% 

[Solved] (entity, pev_aiment) change entity RenderAmt


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-27-2014 , 20:19   [Solved] (entity, pev_aiment) change entity RenderAmt
Reply With Quote #1

Hello Alliedmodders!

I created a entity:
PHP Code:
    new entFloat:o[3]
    
pevidpev_origin)
    
ent create_entity("info_target")
    
set_peventpev_classname"player" )
    
entity_set_model(entmymodel)
    
dllfunc(DLLFunc_Spawnent)
    
set_pev(entpev_solidSOLID_NOT)
    
set_pev(entpev_movetypeMOVETYPE_FOLLOW)
    
entity_set_origin(ento)
    
entity_set_size(entFloat:{ -3.0, -3.0, -3.0 }, Float:{ 3.03.03.0 } )
    
set_peventpev_aimentid 
The question is how can i change entity render amt?
I tried to change render mode to kRenderTransAdd and amt 25
the entity turns invisible.

So i thought maybe we can do something with FM_AddToFullPack.
If forward registered as post = false, no effect
if true however, entity turns invisible again....


I can see that aiment copies the player entity.
I noticed when i set player renderfx to kRenderFxHologram my aiment model have also that effect.
Sadly, still no transparency.

Anyideas?
Thanks!

Last edited by .Dare Devil.; 05-27-2014 at 20:28.
.Dare Devil. is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-27-2014 , 20:28   Re: (entity, pev_aiment) change entity RenderAmt [Solved]
Reply With Quote #2

SOLVED

Solution:
Quote:
this is what ive done.
Created entity.
After when needed, i changed player render mode, then entity render mode and set_pev( id, pev_aiment, ent )
Again and it worked!
.Dare Devil. 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 09:39.


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