Make missile detonate upon impact of a wall

Reaction score
54
Getting tricky now.

I currently have a marauder with it's default weapon using ballistic as a motion phase driver. This causes the missile the marauder fires, to fly in a straight line towards the target. However, if the target moves and the missile misses, if it reaches a wall it just clips through it.

I was hoping if there was a way to kill a missile upon detection of cliff level change?

Update:
Also, would it be possible to have the missile detonate upon detection of any unit?

I've added a test map to the attachments in case anyone is willing to give it a try.
 

Attachments

  • marauderTest.zip
    10.9 KB · Views: 343

Sensang

TH.net Regular
Reaction score
7
um thats maybe offtopic but could you somehow tell how you managed to get that kind of attack? (non homing missiles)

Other than that I'd also like to have an answer to that question :thup:
 
Reaction score
54
um thats maybe offtopic but could you somehow tell how you managed to get that kind of attack? (non homing missiles)

Other than that I'd also like to have an answer to that question :thup:

Sure!

Unit (Marauder) -> Effect (MarauderLM) -> Movers -> Marauder Weapon

Change Motion Phase+ field:

Driver: Ballistic
Acceleration: -1
Minimum Speed: 10
Maximum Speed: 10

I also checked the Ignore Terrain box.
 

Sensang

TH.net Regular
Reaction score
7
Sure!

Unit (Marauder) -> Effect (MarauderLM) -> Movers -> Marauder Weapon

Change Motion Phase+ field:

Driver: Ballistic
Acceleration: -1
Minimum Speed: 10
Maximum Speed: 10

I also checked the Ignore Terrain box.

Ah thx. It appears like ballistic and minimum speed is enough to get that effect. Dearly it doesn't aim ahead like i thought it might... maybe that can be done somehow else^^

have you tried editing the missile unit yet? maybe there is something at collision or you could even set path blockers to stop it. or some kind of autocast ability that makes it explode when something is in range... that would be cool. Like this you could enable teamattack :D

Has anyone yet played around with the unit settings of missiles? for example giving them autocasts?
 
Reaction score
54
What aim ahead effect were you looking for?

I'm looking in to the missile unit right now. I'm sure the way to do it is in Missile Unit -> Actor -> Events. For the event, it is UnitMovementUpdate. However, I have no idea which Term I should use to check if a cliff was encountered.
 

Sensang

TH.net Regular
Reaction score
7
What aim ahead effect were you looking for?

I'm looking in to the missile unit right now. I'm sure the way to do it is in Missile Unit -> Actor -> Events. For the event, it is UnitMovementUpdate. However, I have no idea which Term I should use to check if a cliff was encountered.

which event? its not the first event is it? since it has the "birth" of the missile.
 

Weep

Godspeed to the sound of the pounding
Reaction score
400
I am going to pull this idea out of my ...behind... because I don't actually have the beta, but:

I've read people talking about "Validators" as some way to limit an action with a condition. Collision with the terrain would be the condition that the missile's height above the terrain is less than or equal to 0 - maybe there's some way to check that periodically, without triggers, or maybe some data element that fires when that becomes true?

Feel free to completely ignore me if it's nonsense. :D
 
Reaction score
54
I am going to pull this idea out of my ...behind... because I don't actually have the beta, but:

I've read people talking about "Validators" as some way to limit an action with a condition. Collision with the terrain would be the condition that the missile's height above the terrain is less than or equal to 0 - maybe there's some way to check that periodically, without triggers, or maybe some data element that fires when that becomes true?

Feel free to completely ignore me if it's nonsense. :D

Actually Weep, that makes a lot of sense. I'm actually using the cliff validators to make sure some units unable to blink out of an arena. I can't make out cross or squares of how to apply the validators to a periodic check though.

Also, I've added a test map to this thread's attachments to entice you guys to try and solve this. :3
 

Sensang

TH.net Regular
Reaction score
7
Actually Weep, that makes a lot of sense. I'm actually using the cliff validators to make sure some units unable to blink out of an arena. I can't make out cross or squares of how to apply the validators to a periodic check though.

Also, I've added a test map to this thread's attachments to entice you guys to try and solve this. :3

maybe some kind of periodic ability that explodes the missile when it changes height? or something like that.
 

Advice D.

New Member
Reaction score
11
Got it. You use a Buff attached to the missile that has a Remove Validator and an Expire/Final Effect set to the detonation effect.
Map attached.
Perhaps a Buff attached to the missile that has a Remove Validator related to changing cliff level (I can't find one, haven't played around with validators much yet), with an Expire/Final Effect set to the Marauder Set? I'm trying this at the moment in the test map, but I'm stuck on the Validator part.
 

Attachments

  • marauderTest.zip
    13.4 KB · Views: 390
Reaction score
54
:O

You did it, Advice!

Is the detonation effect working for you? On my side, it seems the missiles are removed when they impact a cliff, no explosion. Weird... I can tell the buff is going off since the missile is disappearing.
Is it because the MarauderLM is expecting a unit to display the Damage effect?
 

Advice D.

New Member
Reaction score
11
I thought it wasn't appearing because of the uberlow settings on my laptop. I'll have another go at it, I have a hunch that there might be a behaviour remove/expire event in Actor events.
 

Cookiemaster

New Member
Reaction score
36
Take a good look at what the "Explode" behavior does.

It has "Effect - Final" Concussive Grenade (set), and it has "Expire Effect" Concussive Grenade (set).

Combined with the validator (remove) which is basically a condition wether or not the missile is above the ground. If it returns false, Validator(remove) goes off and the given behavior GETS REMOVED.


If the given effect(s) trigger upon removal (which seems what is happening, seeing how the missiles disappear. Assuming that's what the set->(slow+dmg) effect does...), then I suggest changing it to something more like, an effect that kills the unit (missile)!
 
Reaction score
54
Indeed, when the behaviour gets removed, the Effect - Final is executed (that's what I get from its tooltip.)

However, it seems that Concussive Grenade (Damage) only happens if it has a target unit. Since this is the effect that also produces the explosion effect, it accounts to no unit = no effect.

Right now, all we need to do is to find how to make Concussive Grenade (Damage) produce the explosion even if no unit is present.
 

Advice D.

New Member
Reaction score
11
Target Unit to Target Unit/Point? I don't have my editor handy. And yeah, I might have to recheck my code if for some reason the missile isn't being removed (also devise a method of detecting it since it would be invisible).
 
Reaction score
54
Upon changing to Target Unit/Point, the missile explodes in the location where the enemy was, instead of flying straight ahead.

The missile is being removed. However, it's supposed to die or create the detonation model instead. :/
 

overload119

New Member
Reaction score
5
Upon changing to Target Unit/Point, the missile explodes in the location where the enemy was, instead of flying straight ahead.

The missile is being removed. However, it's supposed to die or create the detonation model instead. :/

I'm currently working on a similar map.

So far, I have Stalkers that shoot missiles that can be dodged. I added a periodic Search Area behaviour to the Weapon - Stalker unit (the projectile) then for the effect of the Search Area (which periodically searches for neabry enemies, then runs a Set effect when found) The Set effect deals damage to the unit it hits, and it also deals like 10000 damage to the projectile, so that it effectively suicides.

The problem I have right now is with showing a death animation when the unit dies. I tried connecting an actor UnitDeath - Create the impact model, but that hasn't worked.
 

Sensang

TH.net Regular
Reaction score
7
I'm currently working on a similar map.

So far, I have Stalkers that shoot missiles that can be dodged. I added a periodic Search Area behaviour to the Weapon - Stalker unit (the projectile) then for the effect of the Search Area (which periodically searches for neabry enemies, then runs a Set effect when found) The Set effect deals damage to the unit it hits, and it also deals like 10000 damage to the projectile, so that it effectively suicides.

The problem I have right now is with showing a death animation when the unit dies. I tried connecting an actor UnitDeath - Create the impact model, but that hasn't worked.

could you please link that map or at least the needed data in a blank map... btw. is it possible to have something like team attack by doing that kind of thing??
Ive tried doing something like that with the explode ability from banelings^^

btw. is there a possibility to make a missile explode after a certain amount of range? Ive given the missile a -life regeneration aura but it doesnt seem to work at all ... (-2 regeneration at 6 life and it will still fly to the end of the map)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Varine Varine:
    How can you tell the difference between real traffic and indexing or AI generation bots?
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air
  • The Helper The Helper:
    New dessert added to recipes Southern Pecan Praline Cake https://www.thehelper.net/threads/recipe-southern-pecan-praline-cake.193555/
  • The Helper The Helper:
    Another bot invasion 493 members online most of them bots that do not show up on stats
  • Varine Varine:
    I'm looking at a solid 378 guests, but 3 members. Of which two are me and VSNES. The third is unlisted, which makes me think its a ghost.
    +1
  • The Helper The Helper:
    Some members choose invisibility mode
    +1
  • The Helper The Helper:
    I bitch about Xenforo sometimes but it really is full featured you just have to really know what you are doing to get the most out of it.
  • The Helper The Helper:
    It is just not easy to fix styles and customize but it definitely can be done
  • The Helper The Helper:
    I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
  • Blackveiled Blackveiled:
    People love rep, lol
    +1
  • The Helper The Helper:
    The recipe today is Sloppy Joe Casserole - one of my faves LOL https://www.thehelper.net/threads/sloppy-joe-casserole-with-manwich.193585/
  • The Helper The Helper:
    Decided to put up a healthier type recipe to mix it up - Honey Garlic Shrimp Stir-Fry https://www.thehelper.net/threads/recipe-honey-garlic-shrimp-stir-fry.193595/

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top