User Tools

Site Tools


Arcing Missiles By: Twinkletoes

Original Post:

Re: Missile Aim gone Wrong (March 16, 2016)

ok fixed it and made it arc properly.

it was simple to fix the targeting, but arcing missiles are pretty technical, and i had to edit more than just the skill file anyway, ill try and break it down so you can somewhat understand whats going on lol. 1st the skill code and the changes i made.

      <TRANSLATE>DESCRIPTION:The Ranger Lights an Arrow and Launches it at Their Enemies.
      <TRANSLATE>REQUIREMENT_DESCRIPTION:Requires a Bow or Crossbow to use.

what i removed


these are just superfluous for the skill, they have other applications elsewhere but in this case they do nothing.


more lines at the event strings i took out

FIRE FROM/AT (BONES) lines had to be taken out since they are the main culprits of the wonky targeting, they force the missile to always fire from the characters right hand bone and fire at the center of a targeted unit, if there is nothing targeted (aiming on ground) the missile will careen into a random direction.

what i changed


for monsters its set differently so they aim at certain angles towards the player. this is also used in skills which require targets to give it an angle to where it will snap and acquire the target regardless of where the mouse is located, the radius is controlled by the max and min range


changed from 6 so the missile can arc at close range and still hit whatever is in front, if its set too high you wont be able to hit anything close

what i added


this sets the minimum distance you can select targets, its different from range min since this range applies when you physically click on a target.

now for the missile file, this is key to making the missile arc propperly. you only need to set some things to false in the side menu to get it working

TARGET POSITION: FALSE this makes the missile free from targeting constrains and lets the skill handle the targeting, this is typically used for straight trajectories to control where the missile will end. this is a minor part of what made the targeting wonky, since the missile is asked to end at the target area, but is also given a set distance to travel, so it ends up exploding in mid air

COLLIDES WITH OBJECTS: FALSE this is to make the missile arc at close range properly, if this was set to true the missile will instantly collide with any unit in front and not perform its arc, this is typically set to true for straight trajectories and missiles which dont have a following missile die event

ARCH DISTANCE: 0 this will force the missile to always go a set distance when it arcs, if set to 0 the missile can arc freely though out its max range and enables it to be aimed at targets properly

now for the unit spawner settings within the layout file, the only thing that had to be done was shift the Y axis of the spawner up to 1.5 since the missile no longer spawns from the right hand bone, we just have to set it to spawn a bit higher up so it aligns with the character and doesn't instantly collide with the ground.

this is what it looks like after the changes.

i want you to try and do this yourself so you get a better feel for GUTS and learn from it

thats it. gl and have fun modding.

arcing_missiles.txt · Last modified: 2018/03/05 19:28 by phanjam