hello i need someone who can help me with this code:
Code:
Lighting( index )
{
new iOrigin[ 3 ];
get_user_origin( index, iOrigin, 0 );
message_begin( MSG_BROADCAST, SVC_TEMPENTITY );
write_byte( 0 ); // TE_BEAMPOINTS
write_coord( iOrigin[ 0 ] ); // Start X
write_coord( iOrigin[ 1 ] ); // Start Y
write_coord( iOrigin[ 2 ] ); // Start Z
write_coord( 0 );
write_coord( 0 );
write_coord( 0 );
write_short( g_iLighting );
write_byte( 0 );
write_byte( 0 );
write_byte( 2 );
write_byte( 20 );
write_byte( 30 );
write_byte( random( 256 ) );
write_byte( random( 256 ) );
write_byte( random( 256 ) );
write_byte( 255 );
write_byte( 30 );
message_end();
}
What i want to do is to rotate this lighting effect around player's origin,
but i have no idea how to do it.
Thanks in advance.