Hey all! Working on a .pk3 that features a reloading weapon (using WildWeasel's reloading weapon tutorial) and thought of a cute idea to handle initial mag-filling and give a little personality to the weapon. I was wondering if there's an actor state that can be added in DECORATE to give the weapon a short animation and reload on first pickup only? Basically something like:
Code: Select all
StateName:
TNT1 A 0 A_JumpIfInventory("MyGun", "Ready") //If the player already has MyGun, then just go to Ready state as normal
MGUN A 0 A_JumpIfInventory("45Round", 1, "ReloadWork") //If there's extra .45 rounds in inventory, auto-load them into MyGun
MGUN B 2 //Reload cycle 1
MGUN C 2 //Reload cycle 2
Goto Ready
While I'm aware that there's a way to have the weapon full on initial pickup (seen here:
viewtopic.php?f=39&t=56130) I thought that if I could add a way to define this state as on first pickup only, that could be kinda cool. Thoughts? Apologies, I'm very very new to modding of any kind so idk if this is actually a huge project haha.