Hello, I wanted to know another way to add the sprite to a temp entity, at least I know currently 2, I want to use the 2nd option, but, if I have 2 plugins, and I use the same sprite, I would have to precache the same sprite twice , and I don't want to use engfunc, what other option do I have?
PHP Code:
message_begin(0, SVC_TEMPENTITY);
write_byte(TE_SPRITE);
write_coord_f(Origin[0]);
write_coord_f(Origin[1]);
write_coord_f(Origin[2]);
write_short( engfunc( EngFunc_ModelIndex, SPR ) );
write_byte(Scale);
write_byte(Brillo);
message_end();
PHP Code:
new SPRITE
SPRITE = precache_model( "sprites/black.spr" );
message_begin(0, SVC_TEMPENTITY);
write_byte(TE_SPRITE);
write_coord_f(Origin[0]);
write_coord_f(Origin[1]);
write_coord_f(Origin[2]);
write_short(SPRITE);
write_byte(Scale);
write_byte(Brillo);
message_end();