|
Author
|
Message
|
|
Veteran Member
|

07-06-2017
, 10:55
Re: [ H3LP ] Light Issue
|
#1
|
Quote:
Originally Posted by SpawnerF
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
which is the entity index also adding set_task make no sense, you already write things to the entity ...
|
I updated my amxx 1.8.3.5120 to latest 1.8.3.5123 build and now it works fine.
|
|
|
|