I got this idea when I saw the super shotgun in the Demon Eclipse thread- the animation for the shells is way to fast and there's no easy way to correct it without adding a ton of new sprites..
So anyways, when the flash state is called in a weapon, the sprites called from the flash state are rendered above the rest of the weapon sprites. What I'm asking for is the ability to have another state that's laid over the rest of the sprites and is also called simultaneously so that you can split the weapon into parts and easily have different parts of it animate at different speeds.
Example:
Code: Select all
Actor DESuperShotgun : Weapon {
States {
Fire:
//...code
DESG D 2 A_OpenShotgun2
DESG D 0 A_Overlay
//...code
Overlay:
//...animation of shells flying out of the gun...
DSHL ABCD 9
//etc. Hope that it makes sense now.
}
}
