Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * ELITE: DANGEROUS Voice Commands Script for GlovePIE
- * Author: Wedge - www.youtube.com/wedgesvisions
- * Version: 1.0
- * Last Update: 11/27/2014
- * Pastebin: http://pastebin.com/mk1xJ88R
- * GlovePIE Download: http://glovepie.org/glovepie_download.php
- */
- /*
- * PUSH TO TALK
- * Disabled
- * To enable, remove the //
- * And edit your key
- */
- //Microphone.Enabled = mouse.XButton1
- /*
- * Say "start listening" to begin.
- */
- if said("enable voice commands",5) or said("start listening",5) then
- var.listen=true
- say("enabled")
- end if
- if said("disable voice commands",5) or said("stop listening",5) then
- var.listen=false
- say("disabled")
- end if
- /*
- * STATES
- */
- // STOPPING SHIP
- if key.x then
- var.ShipSpeed=0
- end if
- // WEAPONS TOGGLE
- toggle(var.HardPoints) = pressed(key.u) or pressed(key.LeftControl)
- if said("reset weapons status",5) then
- var.HardPoints=0
- end if
- /*
- * COMMANDS LIST
- */
- if var.listen == true then
- // FLIGHT THROTTLE
- key.x = said("set speed 0",5) or said("speed 0",5) or said("stop ship",5) or said("full stop",5)
- key.9 = said("set speed 25",5) or said("speed 25",5) or said("speed two five",5)
- key.8 = said("set speed 50",5) or said("speed 50",5) or said("speed five zero",5)
- key.7 = said("set speed 75",5) or said("speed 75",5) or said("speed seven five",5)
- key.6 = said("set speed 100",5) or said("speed 100",5) or said("full speed",5) or said("full throttle",5) or said("maximum speed",5)
- key.F5 = said("set speed minus 25",5) or said ("speed minus 25",5)
- key.F6 = said("set speed minus 50",5) or said ("speed minus 50",5)
- key.F7 = said("set speed minus 75",5) or said ("speed minus 75",5)
- key.F8 = said("set speed minus 100",5) or said ("speed minus 100",5) or said ("full negative speed",5)
- // SPEED VARS
- if said("set speed 25",5) or said("speed 25",5) or said("speed two five",5) then
- var.ShipSpeed=25
- end if
- if said("set speed 50",5) or said("speed 50",5) or said("speed five zero",5) then
- var.ShipSpeed=50
- end if
- if said("set speed 75",5) or said("speed 75",5) or said("speed seven five",5) then
- var.ShipSpeed=75
- end if
- if said("set speed 100",5) or said("speed 100",5) or said("full speed",5) or said("full throttle",5) or said("maximum speed",5) then
- var.ShipSpeed=100
- end if
- if said("set speed 0",5) or said("speed 0",5) or said("stop ship",5) or said("full stop",5) then
- var.ShipSpeed=0
- end if
- // THROTTLE/SPEED UP
- if said("throttle up",5) or said("speed up",5) then
- if var.ShipSpeed==0 then
- var.ShipSpeed=25
- press key.9
- release key.9
- else if var.ShipSpeed==25 then
- press key.8
- release key.8
- var.ShipSpeed=50
- else if var.ShipSpeed==50 then
- press key.7
- release key.7
- var.ShipSpeed=75
- else if var.ShipSpeed==75 then
- press key.6
- release key.6
- var.ShipSpeed=100
- end if
- end if
- // THROTTLE/SPEED DOWN
- if said("throttle down",5) or said("speed down",5) then
- if var.ShipSpeed==100 then
- press key.7
- release key.7
- var.ShipSpeed=75
- else if var.ShipSpeed==75 then
- press key.8
- release key.8
- var.ShipSpeed=50
- else if var.ShipSpeed==50 then
- press key.9
- release key.9
- var.ShipSpeed=25
- else if var.ShipSpeed==25 then
- press key.x
- release key.x
- var.ShipSpeed=0
- end if
- end if
- // FLIGHT MISCELLANEOUS
- key.LeftShift = said("engine boost",5) or said ("boost",5)
- key.c = said("FSD",5) or said ("frame shift",5) or said ("frame shift drive",5) or said ("warp",5) or said ("jump",5) or said ("super cruise",5) or said ("cancel charge",5) or said ("cancel warp",5) or said ("disengage",5)
- // TARGETING
- key.t = said("target ahead",5) or said ("target",5)
- key.g = said("next ship",5) or said ("target next ship",5) or said ("cycle next ship",5)
- key.y = said("highest threat",5) or said ("next threat",5) or said ("threat",5) or said ("target threat",5)
- key.h = said("hostile",5) or said ("target next hostile",5) or said ("target hostile",5) or said ("cycle hostile",5)
- key.j = said("target subsystem",5) or said ("next subsystem",5) or said ("subsystem",5) or said ("cycle subsystem",5)
- // WEAPONS
- key.1 = said("cycle group",5) or said ("weapons group",5) or said ("fire group",5) or said("cycle weapons",5)
- if said("deploy weapons",5) or said("deploy hard points",5) or said("weapons on",5) or said("weapons online",5) then
- if var.HardPoints==0 then
- press key.u
- release key.u
- var.HardPoints=1
- end if
- else if said("retract weapons",5) or said("retract hard points",5) or said("weapons off",5) or said("weapons offline",5) then
- if var.HardPoints==1 then
- press key.u
- release key.u
- var.HardPoints=0
- end if
- end if
- // COOLING
- key.delete = said("silent running",5) or said ("disable silent running",5) or said("silent mode",5) or said ("disable silent mode",5) or said ("go silent",5) or said ("disable silent",5)
- key.end = said("heat sink",5) or said ("deploy heat sink",5)
- // MISCELLANEOUS
- key.l = said("ship lights",5) or said ("ship lights on",5) or said ("ship lights off",5) or said ("lights",5) or said ("lights on",5) or said ("lights off",5)
- key.F1,key.F1,key.F1,key.F1 = said("shields",5) or said ("full shields",5) or said ("systems",5) or said ("power systems",5) or said ("power to systems",5)
- key.F3,key.F3,key.F3,key.F3 = said("weapons",5) or said ("full weapons",5) or said ("power weapons",5) or said ("power to weapons",5)
- key.F2,key.F2,key.F2,key.F2 = said("engines",5) or said ("full engines",5) or said ("power engines",5) or said ("power to engines",5)
- key.F4 = said("balance",5) or said ("power balance",5) or said ("balance power",5)
- key.z = said("landing gear",5) or said ("deploy landing gear",5) or said ("retract landing gear",5)
- key.insert = said("cargo scoop",5) or said ("retract cargo scoop",5) or said("deploy cargo scoop",5)
- key.home = said("jettison cargo",5) or said ("release cargo",5) or said ("jettison all cargo",5)
- key.k = said("chaff launcher",5) or said ("launch chaff",5) or said ("chaff",5)
- // MODE SWITCHES
- key.3 = said("target panel",5) or said ("one",5) or said ("panel left",5) or said("left panel",5) or said("left",5)
- key.4 = said("systems panel",5) or said ("four",5) or said ("panel right",5) or said("right panel",5) or said("right",5)
- key.5 = said("sensors panel",5) or said ("three",5) or said ("zoom",5) or said("radar panel",5) or said("radar",5) or said("zoom radar",5) or said("zoom out radar",5)
- key.backspace = said("comms panel",5) or said ("two",5) or said ("panel comms",5) or said("comms panel",5)
- key.f9 = said("galaxy map",5) or said ("open galaxy map",5)
- // DOCKING
- key.3,key.e,key.e,key.space,key.s,key.space,key.3 = said("requesting permission to dock",5) or said("docking permission",5)
- //key. = said("",5) or said ("",5) or said ("",5)
- end if
- /*
- if said("disable voice commands",5) or said("stop listening",5) then
- var.listen=false
- say("disabled")
- end if
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement