FighterBoss attack problems
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
- SilentRage
- Posts: 216
- Joined: Mon Apr 25, 2005 10:34 pm
- Contact:
FighterBoss attack problems
So I rename all of the Hexen Fighter Sprites in my PK3 and then make a new DECORATE actor that is the exact same as FighterBoss except it uses the new sprite names.
Then I get this error:
Script error, "Hexen 4 All.pk3:decorate.txt" line 19:
action functions can only be imported by internal class and actor definitions!
Execution could not continue.
Script error, "Hexen 4 All.pk3:decorate.txt" line 38:
Invalid state parameter a_fighterattack
Is there a way to do this? I'm sure I could use "A_CustomMissile" but I wouldn't know how to replicate the exact behaviour of his attack.
Then I get this error:
Script error, "Hexen 4 All.pk3:decorate.txt" line 19:
action functions can only be imported by internal class and actor definitions!
Execution could not continue.
Script error, "Hexen 4 All.pk3:decorate.txt" line 38:
Invalid state parameter a_fighterattack
Is there a way to do this? I'm sure I could use "A_CustomMissile" but I wouldn't know how to replicate the exact behaviour of his attack.
- NeuralStunner
-
- Posts: 12328
- Joined: Tue Jul 21, 2009 12:04 pm
- Preferred Pronouns: No Preference
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: capital N, capital S, no space
- Contact:
Re: FighterBoss attack problems
Inherit from the original boss.
- SilentRage
- Posts: 216
- Joined: Mon Apr 25, 2005 10:34 pm
- Contact:
Re: FighterBoss attack problems
You can't. That would inherit the sprite names too.
- NeuralStunner
-
- Posts: 12328
- Joined: Tue Jul 21, 2009 12:04 pm
- Preferred Pronouns: No Preference
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: capital N, capital S, no space
- Contact:
Re: FighterBoss attack problems

You obviously redefined the states already anyway. Do that with the inherited class.
Re: FighterBoss attack problems
Try it first...SilentRage wrote:You can't. That would inherit the sprite names too.
- SilentRage
- Posts: 216
- Joined: Mon Apr 25, 2005 10:34 pm
- Contact:
Re: FighterBoss attack problems
So yeah, I made him inherit from FighterBoss but deleting his attacking section, right?
He turns into the Doomguy when he attacks.
He turns into the Doomguy when he attacks.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49223
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: FighterBoss attack problems
Of course he does. If you don't want to use an inherited state label you have to clear it in your subclass. Do that by defining that label and immediately adding a 'stop' command without any states.
- SilentRage
- Posts: 216
- Joined: Mon Apr 25, 2005 10:34 pm
- Contact:
Re: FighterBoss attack problems
This?
He doesn't shoot then. 
I have a question: why can't he use A_FighterAttack? That would solve everything.
Code: Select all
Missile:
stop

I have a question: why can't he use A_FighterAttack? That would solve everything.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49223
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: FighterBoss attack problems
If you inherit from the original fighter boss you can use it.
- NeuralStunner
-
- Posts: 12328
- Joined: Tue Jul 21, 2009 12:04 pm
- Preferred Pronouns: No Preference
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: capital N, capital S, no space
- Contact:
Re: FighterBoss attack problems
And then change the sprite names.
- SilentRage
- Posts: 216
- Joined: Mon Apr 25, 2005 10:34 pm
- Contact:
Re: FighterBoss attack problems
OK... weird...
I thought when I originally had the error, I was inheriting. Turns out I wasn't.
Nevermind. LOL
I thought when I originally had the error, I was inheriting. Turns out I wasn't.
Nevermind. LOL
Re: FighterBoss attack problems
You wouldn't want to use A_FighterAttack anyway, since it only goes straight out horizintally (no vertical aiming whatsoever). This is how it worked in original Hexen.