Team Spartan Cookies & Milk Forums
E2 Gate Chat >> Starfall - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Starfall (https://teamscm.co.uk/forum-7.html)
+--- Thread: E2 Gate Chat >> Starfall (/thread-1070.html)



E2 Gate Chat >> Starfall - Antruck - 03-07-2015

hi everyone !!

is anyone can translate this to me to E2 starfall ?

Best Regards

Code:
@name Gate chat @inputs Stargate:wirelink GDOComputer:wirelink @outputs @persist Sayed Irissayed Analyse Irissayed1 @model models/props_lab/reciever01a.mdl interval(300) if(first()) { Stargate:stargateSetName("Prometheus") Stargate:stargateSetAddress("AEN2ZU") Stargate:stargateSetGroup("M") Stargate:stargateSetLocal(0) } if(first() | duped()) { GDOComputer["Auto-Close", number] = 1 GDOComputer["Don't Auto-Open", number] = 1 } IDCName = GDOComputer["Code Description",string] if(GDOComputer["Code Status",number] == 1 & Irissayed == 0) { botSay("Prometheus","Iris Computer",vec(0,255,255),"Signal Recieved ... Signal analyzed! This is "+IDCName+" opening the IRIS") GDOComputer["Iris Control",number] = 1 timer("Irissayed",500) } if(GDOComputer["Code Status",number] == 0 & Irissayed == 1 & Analyse == 0) { botSay("Prometheus","Iris Computer",vec(0,255,255),"IRIS Open!") GDOComputer["Iris Control",number] = 0 timer("Analyse",500) } if(GDOComputer["Code Status",number] == 2 & Irissayed1 == 0) { botSay("Prometheus","Iris Computer",vec(0,255,255),"Signal Recieved ... Unknown IDC") timer("Irissayed1",500) } if(clk("Irissayed1")) { Irissayed1 = 1 } if(Stargate["Open",number] == 0) { Irissayed1 = 0 } if(clk("Irissayed")) { Irissayed = 1 } if(Stargate["Open",number] == 0) { Irissayed= 0 } if(clk("Analyse")) { Analyse = 1 } if(Stargate["Open",number] == 0) { Analyse= 0 } if(Stargate["Inbound",number] == 1 & Sayed == 0) { botSay("Prometheus","Iris Computer",vec(0,255,255),"This gate is Iris protected. Please identify") timer("sayed",500) } if(clk("sayed")) { Sayed = 1 } if(Stargate["Inbound",number] == 0) { Sayed = 0 } Iris=Stargate:stargateIrisActive() if(changed(Iris)&Iris==1 & Stargate["Inbound",number] == 1 ){timer("ciris",500)} if(clk("ciris")){botSay("Prometheus","Iris Computer",vec(0,255,255),"Closing the IRIS")} if(changed(Iris)&Iris==0 & Stargate["Inbound",number] == 1 ){timer("oiris",500)} if(clk("oiris")){botSay("Prometheus","Iris Computer",vec(0,255,255),"Opening the IRIS")}



RE: E2 Gate Chat >> Starfall - Destiny's Player - 03-07-2015

Hmm... Should be just a case of slightly changing how the "if"'s are written down, declaring the inputs the other way, and checking if the Stargate functions are correct. Overall it should be pretty simple. I would gladly help, but sadly I'm only going to get access to GMod on monday.


RE: E2 Gate Chat >> Starfall - TheOneAndOnlyTee - 04-07-2015

i'll do it, probably take 5 or 10mins to do. EDIT: sorry didn't get around to doing to, i'll do it when i get a chance if TND doesn't first


RE: E2 Gate Chat >> Starfall - Antruck - 18-07-2015

Always nothing?

Best regards