https://zdoom.org/wiki/Actor_states You are interested in this. You should learn how the states work and how to do advanced stuff with them. But, like I said, this is reachable in wiki. So, whenyou find a problem, head over to wiki and try to solve by yourself. WHEN you are not able t solve by yourself, ask on forum. But I can say that I am able to solv2 like 80% things on by myself, only by looking at wiki.
For the pain state issues, since you havent described how it should behave, we cannot advice you more... Also, as I said, you should learn and understand how decorate works.
If you want the sound to be played only on the blocking action, you can do this:
Code: Select all
Pain:
KLKG G 3 A_Pain
KLKG G 3
KLKG H 6
{
A_SetReflectiveInvulnerable;
A_PlaySound("MySounds/Block", CHAN_WEAPON);
}
KLKG H 15 A_CentaurDefend
KLKG A 1 A_UnsetReflectiveInvulnerable
Goto See