We have the following sprite with such parameters
And its function
PHP Code:
public fire()
{
message_begin( MSG_BROADCAST, SVC_TEMPENTITY );
write_byte( TE_FIREFIELD );
engfunc( EngFunc_WriteCoord, OriginC4[ 0 ] );
engfunc( EngFunc_WriteCoord, OriginC4[ 1 ] );
engfunc( EngFunc_WriteCoord, OriginC4[ 2 ] += 35.0 );
write_short( 2 );
write_short( g_FireSprites );
write_byte( 2 );
write_byte( TEFIRE_FLAG_ALLFLOAT | TEFIRE_FLAG_ALPHA );
write_byte( 20 );
message_end();
}
Why in the game do I see him on a black background?
I tried to redo the sprite with different formats ... no sense.
Maybe this is due to the number of frames, instead of one? (Delirium)
What is needed or is everything right?
PHP Code:
write_byte( TEFIRE_FLAG_ALLFLOAT | TEFIRE_FLAG_ALPHA );