Make something do a 180 after touching a wall?

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.
User avatar
bagheadspidey
Posts: 1490
Joined: Sat Oct 20, 2007 10:31 pm
Contact:

Re: Make something do a 180 after touching a wall?

Post by bagheadspidey »

HotWax wrote:However, isn't there a way to have a projectile set its spawner as the target (In fact, I thought that was the default)? So, you could just use A_GiveToTarget in the death state. Maybe.
I think so, although I get mixed up with target and "tracer" on projectiles, and I think there's been some talk lately of possibly changing / extending that whole mess somehow.

Here's a variation on that - if the imps are going in a straight line, the invisible projectile could shoot a hitscan in the opposite direction when it hits a wall. The hitscan would have a custom damage type that causes imps to turn around.
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Re: Make something do a 180 after touching a wall?

Post by HotWax »

Even more hacky! Well done. ;)
User avatar
Cutmanmike
Posts: 11353
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Re: Make something do a 180 after touching a wall?

Post by Cutmanmike »

Too hacky, especially since it could harm other imps and make them turn!
User avatar
bagheadspidey
Posts: 1490
Joined: Sat Oct 20, 2007 10:31 pm
Contact:

Re: Make something do a 180 after touching a wall?

Post by bagheadspidey »

Heh, you're no fun. Hell, I was almost going to suggest having the thing set off a radius attack with said custom damage, that way whole groups of the things would turn around as they got close... but i don't think you can put custom damage on a radius attack (right?)
User avatar
Cutmanmike
Posts: 11353
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Re: Make something do a 180 after touching a wall?

Post by Cutmanmike »

Nevermind I sorted it. I used a short range bullet attack which makes a puff which uses a tiny A_Explode with a damage type "turn" and the imp has a pain state for turn which loads script 99 which makes him turn 180 degrees...

lovely :P
User avatar
bagheadspidey
Posts: 1490
Joined: Sat Oct 20, 2007 10:31 pm
Contact:

Re: Make something do a 180 after touching a wall?

Post by bagheadspidey »

oh, cool, so explosions can have custom damage =)
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Re: Make something do a 180 after touching a wall?

Post by HotWax »

Cutmanmike wrote:Nevermind I sorted it. I used a short range bullet attack which makes a puff which uses a tiny A_Explode with a damage type "turn" and the imp has a pain state for turn which loads script 99 which makes him turn 180 degrees...

lovely :P
Great! Now all you need to do is figure out how to gives imps umbrellas or drills, and how to make the geometry in a Doom level destructable. :P
User avatar
Cutmanmike
Posts: 11353
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Re: Make something do a 180 after touching a wall?

Post by Cutmanmike »

Giving the lemming crap: Custom damage types
Destructible terrain: Probably models or something. Obviously I can't make entire levels destructible.

Edit: Continue this discussion here: http://forum.zdoom.org/viewtopic.php?f=19&t=17588
Locked

Return to “Editing (Archive)”