Raised This Month: $ Target: $400
 0% 

Solved [ H3LP ] Light Issue


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DarthMan
Veteran Member
Join Date: Aug 2011
Old 07-06-2017 , 10:34   Re: [ H3LP ] Light Issue
Reply With Quote #1

Quote:
Originally Posted by SpawnerF View Post
Looking at this
Code:
 // Teh_Freak: Entity Lighting!      MESSAGE_BEGIN( MSG_BROADCAST, SVC_TEMPENTITY );           WRITE_BYTE( TE_ELIGHT );           WRITE_SHORT( entindex( ) );     // entity, attachment           WRITE_COORD( pev->origin.x );     // origin           WRITE_COORD( pev->origin.y );           WRITE_COORD( pev->origin.z );           WRITE_COORD( 8 );     // radius           WRITE_BYTE( 255 );     // R           WRITE_BYTE( 192 );     // G           WRITE_BYTE( 64 );     // B           WRITE_BYTE( 2 );     // life * 10           WRITE_COORD( 0 ); // decay      MESSAGE_END();      // Teh_Freak: Entity Lighting!

or

Code:
stock Create_TE_ELIGHT(entity, start[3], radius, red, green, blue, life, decayRate){     message_begin( MSG_BROADCAST, SVC_TEMPENTITY )     write_byte( TE_ELIGHT )     write_short( entity )           // entity     write_coord( start[0] )         // initial position     write_coord( start[1] )         // initial position     write_coord( start[2] )         // initial position     write_coord( radius )           // radius     write_byte( red )               // red     write_byte( green )             // green     write_byte( blue )              // blue     write_byte( life )              // life     write_coord( decayRate )        // decay rate     message_end() }

You didn't add
Code:
write_short( entity )

http://twhl.info/articulator.php?art=167

Spoiler


which is the entity index also adding set_task make no sense, you already write things to the entity ...
No, I read somewhere that in the recent updates, after SteamPipe, Valve removed that write short parameter, so that's why I did not use it, but I tried both ways and even with DLIGHT without the parameter and it still crashed the server.

"The WRITE_SHORT is no longer used, it is used by TE_ELIGHTs (entity lights), but Valve removed it. If you do use it, the DLL will compile fine, but an error will pop up in-game saying its an illegal message. So to put it basically, DONT USE IT." on http://twhl.info/articulator.php?art=167

Last edited by DarthMan; 07-06-2017 at 10:36.
DarthMan is offline
SpawnerF
Member
Join Date: Apr 2017
Location: Morocco
Old 07-06-2017 , 10:59   Re: [ H3LP ] Light Issue
Reply With Quote #2

Quote:
Originally Posted by DarthMan View Post
"The WRITE_SHORT is no longer used, it is used by TE_ELIGHTs (entity lights), but Valve removed it. If you do use it, the DLL will compile fine, but an error will pop up in-game saying its an illegal message. So to put it basically, DONT USE IT." on http://twhl.info/articulator.php?art=167
I didn't see that lol.

Glad that you've solved your problem.
__________________
XX was created just for giving evidence and not meant to damage public servers.
&We do not test on public servers.
Thank's.
SpawnerF 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 23:10.


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