logo

scripts

A bunch of scripts, some to be moved to their own repository
commit: f9e4fa5b9567efdde09d72dbbfe6be905229ab59
parent: 7982066a50ee42882b63f85d4dc6e7bb809f266d
Author: lanodan <lanodan.delta@free.fr>
Date:   Thu, 15 May 2014 07:53:21 +0200

Add Comments on how to wire everything

Diffstat:

Mgmod/hovercraft.e218++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/gmod/hovercraft.e2 b/gmod/hovercraft.e2 @@ -1,13 +1,19 @@ @name Hovercraft @inputs Dist -@outputs Move +@outputs ZVelocity @persist @trigger -if(Dist <= 50) { //50 is about the eyes height - Move = 1 -} elseif(Dist >= 60) { //Put a little margin to prevent glitches - Move = -1 +# ----Wires---- +# E2 Dist >> Ranger: Dist +# E2 ZVelocity >> Hoverball: A: ZVelocity +# Numpad output >> Hoverball: B: HoverMode + + +if(Dist <= 50) { #50 is about the eyes height + ZVelocity = 1 +} elseif(Dist >= 60) { #Put a little margin to prevent glitches + ZVelocity = -1 } else { - Move = 0 + ZVelocity = 0 }