Alright, basically what I want is for a "weapon" animation/sound to play on-screen when I press F.
In the weapon decorate marker thingy I want it to play on, I've made a custom weapon state called User1 that contains the animation + sound.
Code: Select all
User1:
TNT1 A 10
OKAY A 1
OKAY B 1 A_PlaySound("YEAH", 2)
OKAY CD 1 A_AlertMonsters
OKAY E 15
OKAY DCBA 1
TNT1 A 10
Goto Ready
And, in KEYCONF, I've binded F to User1.
Code: Select all
AddKeySection "Custom Mod Controls" CustomModControls
AddMenuKey "Signal OKAY" Okay
Alias Okay +User1
DefaultBind F Okay
It works, however I have two problems;
-When the animation completes, it replays the animation infinitely until I switch weapon. Switching back to the weapon will continue playing that animation, the only way to stop it is to die.
-I don't want the state to be called User1, I want it to be called "Okay".
How would I fix/accomplish these? I've read heaps of stuff about it and can't seem to figure out why it's doing that/how to call the state something else and have it still work.