AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Color Grenade (https://forums.alliedmods.net/showthread.php?t=162863)

Kiske 07-23-2011 22:41

Color Grenade
 
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]

Emp` 07-23-2011 22:57

Re: Color Grenade
 
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)


Kiske 07-23-2011 23:14

Re: Color Grenade
 
Great! I didn't noticed that.
Thanks!

Kiske 01-15-2013 00:14

Re: Color Grenade
 
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!

Emp` 01-15-2013 00:24

Re: Color Grenade
 
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.

ConnorMcLeod 01-15-2013 00:34

Re: Color Grenade
 
message_const.inc documentation should be fixed... same error appears in it.

Kiske 01-15-2013 04:19

Re: Color Grenade
 
Ok, thanks both!


All times are GMT -4. The time now is 01:11.

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