Wired Vehicles

From GMod Wiki

Jump to: navigation, search

One of the most important uses of the Target Finder and Beacon Sensor tools (from Erkle's Wire Addon) is in vehicles, to enable them to track or follow objects, NPCs, players, etc. This page describes the construction some vehicles, integrating some of these applications.



Contents

Attack Tube

Wired Vehicles: Attack Tube
Page white text.png Description:The Attack Tub is a completely autonomous bathtub that chases targets and runs them down.
link=User:Nesc Original Author:Nesc
Calendar.png Created:unknown
Page white text.png Notes:-


Essentials

The unwired base

The Attack Tub will, in fact, not function without these.

First, get the unwired base together. Spawn a bathtub and stick four wheels on it. They don't need to be wired wheels.

It can turn to follow targets

The beacon sensors report their distance from the target to gates that decide which side of the tub is closer. The thrusters are activated (if the button is on and a target is acquired) until the tub is facing the right direction. The thruster on the back is also providing forward thrust.

More specific thrust

Now much more stable

Proof of concept. You can take that to any bank. But it spins wildly and, given enough time, falls over. We need to set the big thruster to only fire when it's pointing in the right direction. An Equals gate wired to the two beacon sensors wouldn't work, because that's too exact.

Problem is, now the big thruster isn't firing during most of the turning, and there's too much friction.

Self-righting

It will right itself

It still falls over a lot, though. Lift up the tub and get underneath.

The two gates ask the gyroscope which way the tub is pointing, and if it is close to falling over either way, the thruster fires. But we want everything else to stop when it's righting itself.

Efficiency

It wobbles back and forth a lot. You could give it some time to align itself before the main thruster fires. This might mean using a timer for 1 or 2 seconds before the main thruster would fire. There are probably simpler solutions.

It also bumps the target a lot, because it's not fast enough. You could figure out a way to keep stability while increasing the thruster power. You could go with the quick and easy way, and wire some dynamite to the front. Or, you could set up a routine that would reverse the tub if it pushed against the target for too long, and them ram it again. See if you can figure out how to implement some of these on your tub.

Designed and written by Nesc, Steam account name "taio".




Stable Wire Car

Wired Vehicles: Stable Wire Car
Page white text.png Description:A wire car that most of the time will never come off the ground!
link=User:Orb posted by , quangphangbang Original Author:Orb posted by , quangphangbang
Calendar.png Created:Unknown
Page white text.png Notes:-


Go back to your control panel and control the car. You will notice it won't bounce around as much.

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox