Author Topic: Gyropod Control (for newbies)  (Read 8860 times)

Integer

  • Starting Member
  • *
  • Posts: 27
  • Karma: +3/-1
    • View Profile
  • IGN: Inversedaspace
Gyropod Control (for newbies)
« on: July 06, 2015, 05:50:24 pm »
1. Spawn the E2 (use advanced wiring tool to wire)
2. Wire Pod to your Pod Controller (Select Wirelink)
3. Wire Gyropod to your Advanced Gyropod (Select Wirelink)
4. You're done, read the controls in the E2


Code: [Select]

@name Gyropod Controller (For Newbies) Rev. 9
@inputs Gyropod:wirelink Pod:wirelink
@outputs Weapon1 Weapon2
@persist GyroActive Level Freeze
@trigger
#Made by Inversedaspace.
#Wire Pod to your Pod Controller.
#Wire Gyropod to your Gyropod.
#For both click on wirelink.


interval(150)
#Variables


SpeedMultiplier = 1 #Current Speed multiplied by whatever replaces 1
YawMultiplier = 1 #Yaw is the side-to-side turning of your ship.
#If YawMultiplier was 2, then your turn speed would be 2 times
#the normal speed it turns at.


#Weapon1 is left click
#Weapon2 is right click
#W is forward.
#S is backward.
#A is turn left.
#D is turn right.
#Shift is down.
#Space is up.
#This will freeze the gyropod when you get out, and unfreeze when you're in.


W=Pod["W",normal]
S=Pod["S",normal]
A=Pod["A",normal]
D=Pod["D",normal]
Shift=Pod["Shift",normal]
Space=Pod["Space",normal]
Weapon1=Pod["Mouse1",normal]
Weapon2=Pod["Mouse2",normal]
Active=Pod["Active",normal]


Gyropod["Activate",normal]=GyroActive
Gyropod["Forward",normal]=W
Gyropod["YawLeft",normal]=A
Gyropod["Back",normal]=S
Gyropod["YawRight",normal]=D
Gyropod["MoveDown",normal]=Shift
Gyropod["MoveUp",normal]=Space
Gyropod["Freeze",normal]=Freeze
Gyropod["Level",normal]=Level
Gyropod["ThrustMult",normal]=SpeedMultiplier
Gyropod["YawMult",normal]=YawMultiplier


if(Active == 1){GyroActive = 1 Level = 1 Freeze = 0}
    else{GyroActive = 0 Level = 0 Freeze = 1}

bloxgate

  • Supreme Forum Overlord
  • Administrator
  • Hero Member
  • ******
  • Posts: 546
  • Karma: +50/-4
    • View Profile
    • Bloxgate's Website
  • IGN: bloxgate
Re: Gyropod Control (for newbies)
« Reply #1 on: July 06, 2015, 07:04:28 pm »
Mind if I make a suggestion.
Change these 3 variables like so:
Code: [Select]
Gyropod["Activate",normal]=Active
Gyropod["Freeze",normal]=!Active
Gyropod["Level",normal]=Active
and then remove the if statement from the end.