Raised This Month: $ Target: $400
 0% 

Solved [ H3LP ] Light Issue


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
SpawnerF
Member
Join Date: Apr 2017
Location: Morocco
Old 07-06-2017 , 10:20   Re: [ H3LP ] Light Issue
Reply With Quote #2

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 ...
__________________
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
 



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