[SOLVED] ThrustThing works for a bit, then stops

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.
waaaaaaah
Posts: 3
Joined: Tue Aug 22, 2017 9:01 am

[SOLVED] ThrustThing works for a bit, then stops

Post by waaaaaaah »

I'm pretty new to the Doom modding scene, I've been fooling around with GZ Doom Builder and ACS for a day now. Anyways, I've been trying to get monsters to slide across the floors more or less constantly. It wasn't working too well, until I started using ThrustThing in the DECORATE lump. I got MUCH better results, but it stops thrusting after a few seconds. I researched it for a while, but I haven't found any solutions yet. Can someone tell me what I've been doing wrong?

EDIT: I ran it again, and it looks like the Zombiemen stop thrusting whenever they fire.

Code: Select all

Actor ZombieManSkt : ZombieMan replaces ZombieMan {
	+SLIDESONWALLS
	Friction 1000000
	Speed 10
	BounceType Doom
	WallBounceFactor 0.000001
	
	States {
		See:
			POSS ABCD 4 {
				A_Chase;
				ThrustThing(GetAngle(GAF_RELATIVE), 10, 1, 0);
			}
		Loop
	}
} 
Last edited by waaaaaaah on Tue Aug 22, 2017 10:17 am, edited 1 time in total.
User avatar
Caligari87
Admin
Posts: 6248
Joined: Thu Feb 26, 2004 3:02 pm
Preferred Pronouns: He/Him

Re: ThrustThing works for a bit, then stops

Post by Caligari87 »

I think this happens because when it goes to the Fire state, it's actually the parent's fire state (the actor you inherited from), and when that state says "Goto See", it's pointing to the parent's See state, not the one you defined. Try re-defining the Fire and Pain states in your actor and see if the problem still occurs.

8-)
waaaaaaah
Posts: 3
Joined: Tue Aug 22, 2017 9:01 am

Re: ThrustThing works for a bit, then stops

Post by waaaaaaah »

It worked! :D I have other things to iron out now, but it's working! Thanks!

Return to “Editing (Archive)”