Raised This Month: $ Target: $400
 0% 

Rendering Entites?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Drak
Veteran Member
Join Date: Jul 2005
Old 01-30-2007 , 08:00   Rendering Entites?
Reply With Quote #1

Iv been trying to figure out how to render NPC's/Entites with fakemeta, this is what i have so far:
Code:
public render_test(id) {     new Ent,body     get_user_aiming(id,Ent,body,300)     if(!is_valid_ent(Ent)) return PLUGIN_HANDLED     set_pev(Ent, pev_renderfx, kRenderFxNone)     set_pev(Ent, pev_rendercolor, 255,0,0)     set_pev(Ent, pev_rendermode, kRenderNormal)     set_pev(Ent, pev_renderamt, 135.0)     return PLUGIN_HANDLED }
But doesn't seem todo anything, no errors or anything.

Last edited by Drak; 01-30-2007 at 13:37.
Drak is offline
Send a message via MSN to Drak
dutchmeat
Senior Member
Join Date: Sep 2006
Old 01-30-2007 , 08:21   Re: Rendering Entites?
Reply With Quote #2

you should debug if the ent passes the first IF statement.
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat is offline
lunarwolfx
Member
Join Date: Feb 2005
Old 01-30-2007 , 08:54   Re: Rendering Entites?
Reply With Quote #3

Quote:
Originally Posted by SixTwin View Post
Iv been trying to figure out how to render NPC's/Entites with fakemeta, this is what i have no far:
Code:
public render_test(id) {     new Ent,body     get_user_aiming(id,Ent,body,300)     if(!is_valid_ent(Ent)) return PLUGIN_HANDLED     set_pev(Ent, pev_renderfx, kRenderFxNone)     set_pev(Ent, pev_rendercolor, 255,0,0)     set_pev(Ent, pev_rendermode, kRenderNormal)     set_pev(Ent, pev_renderamt, 135.0)     return PLUGIN_HANDLED }
But doesn't seem todo anything, no errors or anything.

that's because KRenderFxNone and KRenderNormal are used to make the entity go back to normal.

Replace KRenderNormal with KRenderTransAlpha, and that will make the entity transparent.
lunarwolfx is offline
Drak
Veteran Member
Join Date: Jul 2005
Old 01-30-2007 , 13:41   Re: Rendering Entites?
Reply With Quote #4

Quote:
Originally Posted by lunarwolfx View Post
that's because KRenderFxNone and KRenderNormal are used to make the entity go back to normal.

Replace KRenderNormal with KRenderTransAlpha, and that will make the entity transparent.
Ah, thank you that worked.

Last edited by Drak; 01-30-2007 at 15:21.
Drak is offline
Send a message via MSN to Drak
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 00:34.


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