FighterBoss attack problems

Archive of the old editing forum
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.
Locked
User avatar
SilentRage
Posts: 216
Joined: Mon Apr 25, 2005 10:34 pm
Contact:

FighterBoss attack problems

Post by SilentRage »

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.
User avatar
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

Post by NeuralStunner »

Inherit from the original boss.
User avatar
SilentRage
Posts: 216
Joined: Mon Apr 25, 2005 10:34 pm
Contact:

Re: FighterBoss attack problems

Post by SilentRage »

You can't. That would inherit the sprite names too.
User avatar
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

Post by NeuralStunner »

:|

You obviously redefined the states already anyway. Do that with the inherited class.
User avatar
Killar
Posts: 240
Joined: Mon Feb 09, 2009 12:15 pm
Location: Always one step behind

Re: FighterBoss attack problems

Post by Killar »

SilentRage wrote:You can't. That would inherit the sprite names too.
Try it first...
User avatar
SilentRage
Posts: 216
Joined: Mon Apr 25, 2005 10:34 pm
Contact:

Re: FighterBoss attack problems

Post by SilentRage »

So yeah, I made him inherit from FighterBoss but deleting his attacking section, right?

He turns into the Doomguy when he attacks.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49223
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: FighterBoss attack problems

Post by Graf Zahl »

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.
User avatar
SilentRage
Posts: 216
Joined: Mon Apr 25, 2005 10:34 pm
Contact:

Re: FighterBoss attack problems

Post by SilentRage »

This?

Code: Select all

	Missile:
		stop
He doesn't shoot then. :(




I have a question: why can't he use A_FighterAttack? That would solve everything.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49223
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: FighterBoss attack problems

Post by Graf Zahl »

If you inherit from the original fighter boss you can use it.
User avatar
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

Post by NeuralStunner »

And then change the sprite names.
User avatar
SilentRage
Posts: 216
Joined: Mon Apr 25, 2005 10:34 pm
Contact:

Re: FighterBoss attack problems

Post by SilentRage »

OK... weird...

I thought when I originally had the error, I was inheriting. Turns out I wasn't.

Nevermind. LOL
User avatar
Ichor
Posts: 1783
Joined: Wed Jul 23, 2003 9:22 pm

Re: FighterBoss attack problems

Post by Ichor »

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.
Locked

Return to “Editing (Archive)”