Hi guys.
There is this stock from WC3FT mod that adds a sprite to the player:
PHP Code:
stock Create_TE_PLAYERATTACHMENT(id, entity, vOffset, iSprite, life)
{
message_begin( MSG_ONE, SVC_TEMPENTITY, { 0, 0, 0 }, id )
write_byte( TE_PLAYERATTACHMENT )
write_byte( entity ) // entity
write_coord( vOffset ) // vertical offset ( attachment origin.z = player origin.z + vertical offset )
write_short( iSprite ) // model index
write_short( life ) // (life * 10 )
message_end()
}
It works well, but I would like to use a sprite that has different frames.
Can the pev_frame and pev_framerate set somehow on the entity created above?
If that would work it would save me 10+ "places" in the precache list, because currently the server crashes on de_torn, with only WC3FT installed that has custom files to download.