StepS wrote:
SetSpriteOverride works only once... We can't override the Index otherwise.
Why is this? I've come to a halt because i'm not sure how i can have two version of mole bomb in game.
It works only one time, BUT IT WORKS WHENEVER. For example if you wait 10 turns and then call Override before the sprite is in memory it will be overwritten. If there was some way to remove the sprite from memory and allow another override..
Code:
override void CWorm::FireFinal(CWeapon* Weap, CShootDesc* Desc)
{
if(Weap->CheckName("Mole Bomb"))
{
SetSpriteOverride(158 , mfn);
SetSpriteOverride(159 , mn1);
SetSpriteOverride(160 , mn2);
SetSpriteOverride(161 , mn3);
SetSpriteOverride(166 , mwn);
}
else if(Weap->CheckName("Super Mole Bomb"))
{
SetSpriteOverride(158 , mfk);
SetSpriteOverride(159 , mk1);
SetSpriteOverride(160 , mk2);
SetSpriteOverride(161 , mk3);
SetSpriteOverride(166 , mwk);
}
super;
}