DoomImp Fireball sprites change to gutted demons.

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
Stepepper
Posts: 3
Joined: Mon Sep 29, 2014 11:58 am

DoomImp Fireball sprites change to gutted demons.

Post by Stepepper »

I changed the DoomImp Fireball to something else, but when it hits something it changes to a gutted person, I have no idea why and how to solve it..

This is the Fireball script:

Code: Select all

Actor DogeFireball : DoomImp replaces DoomImpBall
{
	Scale 0.1
	Radius 6
	Height 8
	Speed 50
	FastSpeed 50
	Damage 2
	Projectile
	+RANDOMIZE
	RenderStyle Add
	Alpha 1
	SeeSound "imp/attack"
	DeathSound "imp/shotx"
	States
	{
		Spawn:
			WEED A 4 BRIGHT
			Loop
		Death:
		WEED AAA 6 BRIGHT
		Stop
	}
	
}
If you could help me, thanks.
User avatar
Caligari87
Admin
Posts: 6234
Joined: Thu Feb 26, 2004 3:02 pm
Preferred Pronouns: He/Him
Contact:

Re: DoomImp Fireball sprites change to gutted demons.

Post by Caligari87 »

You're inheriting from the DoomImp monster, not the DoomImp fireball actor. It's causing superfluous states to be imported. Change the first line to:

Code: Select all

Actor DogeFireball : DoomImpBall replaces DoomImpBall
This inherits from and replaces the original actor's states, flags and properties for anything you don't fill in, and replaces it.

8-)
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: DoomImp Fireball sprites change to gutted demons.

Post by Gez »

To complete what Caligari said, keep in mind that a [wiki]projectile[/wiki] will enter its XDeath or Crash state, when available, if they collide with an actor. And since you have inherited the DoomImp states, the imp's gib death is available!.
Locked

Return to “Editing (Archive)”