kassianoaguiar Posted March 27, 2022 How do I make the monster scream sometimes when I'm shooting it? Because in these two scripts in a row - one, which I want him to scream sometimes, he IS ALWAYS SCREAMING and I not want! 0 Quote Share this post Link to post
0 NinthBurn Posted March 27, 2022 I can't exactly tell what's you're trying to do, since you reference "Goto See" before the A_Jump instruction... { Pain: SSFF A 0 A_Jump(127,4) // 50% chance to jump to the 4th frame SSFF A 3 //frame 1 SSFF H 4 //frame 2 SSFF A 3 //frame 3 Goto See //not a frame; skipped SSFF A 0 A_Jump(78,2) // < -- frame 4; what is this for??? SSFF A 0 A_Jump(5,1) // 2% chance to jump to the next frame; in this case it does absolutely nothing SSFF A 3 SSFF I 4 A_Pain SSFF A 3 Goto See } If I understand correctly, you want the monster to scream sometimes, but the animation remains the same? If so, I think this could be a potential solution: I'm going to define a new state: { Pain: SSFF A 0 A_Jump(127,4) //first animation SSFF A 3 SSFF H 4 SSFF A 3 Goto See //second animation SSFF A 0 A_Jump(127,"PainScream") SSFF A 3 SSFF I 4 SSFF A 3 Goto See PainScream: SSFF A 3 SSFF I 4 A_Pain SSFF A 3 Goto See } So what is happening here is that there's a 50% chance you will skip the first pain animation; if this happens, there is now a 50% chance that the monster will jump to the "PainScream" state; if this happens, it will play a pain sound, and if it doesn't, it will play the animation without the sound. 1 Quote Share this post Link to post
0 Captain Toenail Posted March 27, 2022 You could do something like this which is a bit simpler. 50% chance to jump to silent pain state otherise it falls through to regular pain state. ACTOR TestZombieman : Zombieman replaces Zombieman { States { Pain: POSS G 0 A_Jump (127, "PainSilent") // fall through PainNoisy: POSS G 3 POSS G 3 A_Pain Goto See PainSilent: POSS G 3 POSS G 3 Goto See } } 1 Quote Share this post Link to post
Question
kassianoaguiar
How do I make the monster scream sometimes when I'm shooting it?
Because in these two scripts in a row - one, which I want him to scream sometimes, he IS ALWAYS SCREAMING and I not want!
Share this post
Link to post
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.