Raised This Month: $ Target: $400
 0% 

Render Sprite Colour?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 01-11-2014 , 21:58   Render Sprite Colour?
Reply With Quote #1

is there anyway to render a sprites colour without editing the file?

Code:
        new Entity = create_entity( "env_sprite" );                 entity_set_model(Entity, Fire)         entity_set_int(Entity, EV_INT_rendermode, kRenderTransAdd)         entity_set_float(Entity, EV_FL_renderamt, 300.0)                 entity_set_float( Entity, EV_FL_framerate, 20.0 );                 entity_set_int(Entity, EV_INT_movetype, MOVETYPE_FOLLOW)                 entity_set_edict(Entity, EV_ENT_aiment, Client)                 DispatchSpawn( Entity);                 g_iPlayerEnt[ Client ] = Entity;
Code:
new Fire[] = "sprites/poison.spr";
__________________

Last edited by Blizzard_87; 01-11-2014 at 21:59.
Blizzard_87 is offline
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 01-11-2014 , 22:30   Re: Render Sprite Colour?
Reply With Quote #2

I think the "lightmaker" does it
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 01-11-2014 , 22:41   Re: Render Sprite Colour?
Reply With Quote #3

Quote:
Originally Posted by ironskillz1 View Post
I think the "lightmaker" does it
can you elaborate?
__________________
Blizzard_87 is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 01-11-2014 , 22:43   Re: Render Sprite Colour?
Reply With Quote #4

PHP Code:
new rgb[3]
rgb[0] = 0
rgb
[1] = 180
rgb
[2] = 230
entity_get_vector
(EntityEV_VEC_rendercolorrgb

Last edited by .Dare Devil.; 01-11-2014 at 22:44.
.Dare Devil. is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 01-11-2014 , 23:19   Re: Render Sprite Colour?
Reply With Quote #5

thanks. but doesnt work... i found a sprite that works the way i want anyway thanks.
__________________

Last edited by Blizzard_87; 01-11-2014 at 23:22.
Blizzard_87 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 10:05.


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