Ok, no more stupid math questions until I finish going through my high school math books and especially Trigonometry. Meanwhile...
I try to design a custom attack for those cute Hexen ettins, but I fail.
I started by designing an attack in
Actor.Hexen.vc:
- Code: Select all
final void A_Borsuk() // temporary !!
{
A_TroopAttack() // DooM Imp attack
}
Then I added this line to
ettin.txt in Actors:
- Code: Select all
ETTN E 1 A_Borsuk
I launch the mod, it doesn't crash (yay !) but no effect when an ettin attacks.
If I just use
A_TroopAttack directly in
ettin.txt, it works, and it's easy to see because DooM Imps do instant damage in melee.
If I modify one of existing attacks in
Actors.Hexen.vc, the effect is visible in game. It's just the my new attack that produces no effect.
What am I missing ? By the way, I tried just using VavoomC function (Thrust(angle, power)) directly in Decorate, but I guess it's not possible - it crashed. Can I only call functions which take no arguments in decorate ? What determines which functions can be used in Decorate ?