Laser guided missile

From GMod Wiki

Jump to: navigation, search

Contents

Contraption


Laser guided missile

Laser guided missile: Laser guided missile
Page white text.png Description:How to wire a laser guided pretty much anything, and merrily send it careening around spreading chaos. The effect is much like the rocket launcher in Half-Life 2
link=User:Scorpion451 Original Author:Scorpion451
Calendar.png Created:March 10, 2008
Page white text.png Notes:so far, haven't managed to catch a decent screen shot of it, hopefully someone better at screenshots will.


You will need: Wiremod and something heavy and preferably metal as it will be running into stuff alot, depending on how bad of a steerer you are.

  1. Spawn the base object. I used a barrel, but anything can do. Be sure to freeze it, as the rocket tends to take off if you wire things up in the wrong order. Nothing worse than a Wile E. Coyote impression.
  2. Attach a GPS and a laser reciever.
  3. Attach a Wired Numpad, we will use 1 to turn the thruster on and off. (you really can use any number but zero, because the vector thruster multiplies the input number by what you set as the force multiplier)
  4. Attach three arithmatic chips set to 'subtract'. Use the namer tool to keep track of which chip is the x variable, which is the y, and which is the z. This can get confusing, and can go very wrong very fast, such as sending the missle flying into the ground, or you.
  5. Set each arithmatic chip with B to the respective laser reciever coord (x,y,orz) and A to the respective GPS coord. Be sure that you have the B to the reciever and the A to the GPS and not vice-versa or you will have a laser repelled missile Another useful tip is to go from the chip to the module, or you will not be able to attach to the coord variables. This frustrated the author until he figured this out.
  6. Set the numpad to be off. It will display a number on its popup if it is on. You want it off for now.
  7. Attach a Vector Thruster with the coordiate system set to xyz world. Setting the system to local will result in a rocket worthy of Wile E. Coyote himself. Also set the Force multiplier to your desired thrust, which is what it will be if you use "1" for the numpad. Check "toggle"
  8. Wire the thruster in this order:
    1. Mul wired to the numpad output "1"
    2. X to the arithmatic chip for x-coords
    3. Y to the chip for y
    4. Z to the chip for z
  9. Using the laser pointer from the scripted weapons, register it to the laser pointer reciever using the secondary fire mode.
  10. Unfreeze the base object and flip on the numpad toggle (1 if you followed my plans). If you wired everything right the missile should follow wherever you point the laser pointer.
  11. (Optional)Color and decorate it.It might not last long,but playing with it couldn't hurt.(You,if your careful.)

Using the Missile

Turning the beam off will have the missile hold position at the location you last targeted it to. This makes it an ideal trap weapon, as occasionally someone will come up and investigate the odd jet propelled barrel flailing on the ground or against a wall, only to have it suddenlly and surprisingly accurately flying at their head.

Make it better:

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox