First time making a mod for Doom, and ran into a problem when testing it: after saving my changes to the weapon's hud offsets, they reset back to the default.
I'm using Slade 3 to make the mod, I'm not sure if that's the reason for it.
Here's the mod's code, written in Decorate:
Spoiler:
ACTOR LightArtilleryCannon : Weapon replaces RocketLauncher { Inventory.PickupMessage "Picked up a Light Artillery Cannon" Weapon.AmmoUse 1 Weapon.AmmoGive 5 Weapon.AmmoType "RocketAmmo" Weapon.SlotNumber 5 +WEAPON.NOAUTOFIRE States { Spawn: LAUN A -1 Stop Ready: LACN A 1 A_WeaponReady Loop Deselect: LACN A 1 A_Lower Loop Select: LACN A 1 A_Raise Loop Fire: LACF B 8 A_GunFlash LACF B 12 A_FireMissile LACF B 1 A_ReFire GoTo Ready Flash: RLFL A 2 BRIGHT A_Light2 RLFL B 2 BRIGHT A_Light1 TNT1 A 1 A_Light0 GoTo LightDone } }
awesome Elly It looks ok if I replace the sprites with doom's rocket launcher sprites, so I think the offsets didn't get saved by slade. If you change and save offsets, the file name should turn blue until you save the mod!
When in doubt, share the sprites with the decorate.
Oddly enough, that only happened once with the firing sprite, and I can't seem to get it to do it again. Even after changing and saving the offsets the name color doesn't change to signify the change.
Also here's the weapon sprites themselves.
LAC.png
LACFIRE.png
You do not have the required permissions to view the files attached to this post.
Well good news! I figured out what was wrong: apparently this was caused by a bug with the beta version of Slade 3. I rolled back to the stable release and offsets are now working as intended.