Raised This Month: $ Target: $400
 0% 

Color Grenade


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kiske
Veteran Member
Join Date: May 2009
Old 07-23-2011 , 22:41   Color Grenade
Reply With Quote #1

Hi!
I want to generate the same amount of light color that 8 grenades generate but only using one grenade.
Any ideas?

Thanks in advance.

[IMG]http://img12.**************/img12/8960/dd21g.png[/IMG]

[IMG]http://img833.**************/img833/7828/dd28g.png[/IMG]

Last edited by Kiske; 07-23-2011 at 22:50.
Kiske is offline
Send a message via Skype™ to Kiske
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 07-23-2011 , 22:57   Re: Color Grenade
Reply With Quote #2

Increase the brightness of the TE_DLIGHT

Code:
#define TE_DLIGHT                   27       // Dynamic light, effect world, minor entity effect
// write_byte(TE_DLIGHT)
// write_coord(position.x)
// write_coord(position.y)
// write_coord(position.z)
// write_byte(radius in 10's) 
// write_byte(red)
// write_byte(green)
// write_byte(blue)
// write_byte(brightness)
// write_byte(life in 10's)
// write_byte(decay rate in 10's)
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Kiske
Veteran Member
Join Date: May 2009
Old 07-23-2011 , 23:14   Re: Color Grenade
Reply With Quote #3

Great! I didn't noticed that.
Thanks!
Kiske is offline
Send a message via Skype™ to Kiske
Kiske
Veteran Member
Join Date: May 2009
Old 01-15-2013 , 00:14   Re: Color Grenade
Reply With Quote #4

The parameter brightness exists ?
Because in all TE_DLIGHT I don't see.

Look:
PHP Code:
message_begin(MSG_ONE_UNRELIABLESVC_TEMPENTITY_id);
    
write_byte(TE_DLIGHT);
    
write_coord(vecOrigin[0]);
    
write_coord(vecOrigin[1]);
    
write_coord(vecOrigin[2]);
    
write_byte(40);
    
write_byte(255);
    
write_byte(255);
    
write_byte(255);
    
write_byte(255); // brightness
    
write_byte(2);
    
write_byte(0);
    
message_end(); 
Quote:
Last 32 messages parsed.
85674 0014 svc_clientdata
85674 0036 svc_deltapacketentities
85674 0008 svc_time
85674 0013 svc_choke
85674 0014 svc_clientdata
85674 0036 svc_deltapacketentities
85675 0008 svc_time
85675 0013 svc_choke
85675 0014 svc_clientdata
85675 0036 svc_deltapacketentities
85675 0008 svc_time
85675 0013 svc_choke
85675 0014 svc_clientdata
85675 0036 svc_deltapacketentities
85675 0008 svc_time
85675 0013 svc_choke
85675 0014 svc_clientdata
85675 0036 svc_deltapacketentities
85676 0008 svc_time
85676 0013 svc_choke
85676 0014 svc_clientdata
85676 0036 svc_deltapacketentities
85676 0008 svc_time
85676 0013 svc_choke
85676 0014 svc_clientdata
85676 0036 svc_deltapacketentities
85677 0008 svc_time
85677 0013 svc_choke
85677 0014 svc_clientdata
85677 0036 svc_deltapacketentities
85677 0050 svc_temp_entity
BAD: 64:svc_bad
Host_Error: CL_ParseServerMessage: Illegible server message - svc_bad
Without write_byte(255); // brightness is okay!


Thanks in advanced!
Kiske is offline
Send a message via Skype™ to Kiske
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 01-15-2013 , 00:24   Re: Color Grenade
Reply With Quote #5

I think I pulled that snippet from some bad documentation.

Try changing the color to a brighter/lighter color, that's the only suggestion I can come up with.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-15-2013 , 00:34   Re: Color Grenade
Reply With Quote #6

message_const.inc documentation should be fixed... same error appears in it.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 01-15-2013 at 00:35.
ConnorMcLeod is offline
Kiske
Veteran Member
Join Date: May 2009
Old 01-15-2013 , 04:19   Re: Color Grenade
Reply With Quote #7

Ok, thanks both!
Kiske is offline
Send a message via Skype™ to Kiske
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 01:11.


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