![]() |
|
T-16's E2 Help & Request Thread - Printable Version +- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk) +-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html) +--- Forum: Expression 2 (https://teamscm.co.uk/forum-6.html) +--- Thread: T-16's E2 Help & Request Thread (/thread-580.html) |
RE: T-16's E2 Help & Request Thread - TheOneAndOnlyTee - 06-09-2015 well reading it would tell you that but just incase "!warp destination" and then "!warp engage" RE: T-16's E2 Help & Request Thread - тѕсм.[SG-1] Teal'c - 06-09-2015 i just tried the e2 it dont work no more RE: T-16's E2 Help & Request Thread - TheOneAndOnlyTee - 06-09-2015 if you don't mind use super's for now and if you still want i'll recode one tommorow RE: T-16's E2 Help & Request Thread - тѕсм.[SG-1] Teal'c - 06-09-2015 yh can you try and make one will all destinations because super's only warps to the galexy but no planet or anything else and see if you could make it so it works on all shuttle and make it so it warps to the members place please if you could it will be appreciated RE: T-16's E2 Help & Request Thread - pho - 06-09-2015 Hi im attemping to create a new warp drive and i have no idea how to speed up my array sorter without crashing the whole e2.. im using bubble sort to sort every entity on my ship (from front to back) it works but take ages (my ship have around 580 ents) do you have any idea to either speed up my sorter or sort entities from front to back
RE: T-16's E2 Help & Request Thread - TheOneAndOnlyTee - 07-09-2015 Perhaps store props and other entities into 2 seperate table and them move both at the same time? RE: T-16's E2 Help & Request Thread - тѕсм.[SG-1] Teal'c - 07-09-2015 hey t-17 do you think you could make me one please RE: T-16's E2 Help & Request Thread - TheOneAndOnlyTee - 07-09-2015 I've got most of it done just the warp function as i can't remember the shuttle inputs entirely and if they differ, should be done in about 2-3 hours as i'm abit busy RE: T-16's E2 Help & Request Thread - TheOneAndOnlyTee - 07-09-2015 Done also added a beam up/down command aswell, Code: @name Shuttle Computer by T-17
@persist Destinations:table Shuttle:wirelink Class:string
interval(200)
if(first()|duped()){
runOnChat(1)
Class = entity():isConstrainedTo():type()
if(Class:find("st_shuttle")>0){
Shuttle = entity():isConstrainedTo():wirelink()
entity():parentTo(Shuttle:entity())
}
Destinations["pegasus",vector] = vec(5962.2661132812 ,-6901.3481445312 ,9672.0419921875)
Destinations["peg",vector] = vec(5962.2661132812 ,-6901.3481445312 ,9672.0419921875)
Destinations["shak",vector] = vec(-9023.3642578125 ,-3788.8493652344 ,7704.75390625)
Destinations["station",vector] = vec(5962.2661132812 ,-6901.3481445312 ,9672.0419921875)
Destinations["shakurus",vector] = vec(-9023.3642578125 ,-3788.8493652344 ,7704.75390625)
Destinations["milk",vector] = vec(11193.995117188 ,10126.456054688 ,7498.1943359375)
Destinations["milky",vector] = vec(11193.995117188 ,10126.456054688 ,7498.1943359375)
Destinations["earth",vector] = vec(2605.9643554688 ,9688.107421875 ,8552.4921875)
Destinations["moon",vector] = vec(-4400.6547851562 ,13517.466796875 ,10597.147460938)
Destinations["uni",vector] = vec(-925.59069824219 ,1247.7346191406 ,-4880.255859375)
Destinations["universe",vector] = vec(-925.59069824219 ,1247.7346191406 ,-4880.255859375)
Destinations["desert",vector] = vec(12561.317382812 ,-13069.1640625 ,-7842.0703125)
Destinations["lava",vector] = vec(-9692.341796875 ,243.5647277832 ,-4014.9545898438)
Destinations["hii",vector] = vec(8213.69921875 ,12861.478515625 ,-5828.5092773438)
Destinations["hiigara",vector] = vec(8213.69921875 ,12861.478515625 ,-5828.5092773438)
Destinations["member",vector] = vec(-1475.6666259766 ,1121.8592529297 ,-15488.549804688)
Destinations["secret",vector] = vec(-1475.6666259766 ,1121.8592529297 ,-15488.549804688)
Destinations["members",vector] = vec(-1475.6666259766 ,1121.8592529297 ,-15488.549804688)
}
function void warpShuttle(Dest:vector){
if(Class=="st_shuttle_type6" | Class =="st_shuttle_type9"){
Shuttle["Warp Destination",vector] = Dest
Shuttle["Engage Warp",number] = 1
timer("disengage warp",500)
}
elseif(Class=="st_shuttle_type11"){
Shuttle["Transwarp Destination",vector] = Dest
Shuttle["Transwarp",number] = 1
timer("disengage warp",500)
}
}
if(clk("disengage warp")){
if(Class=="st_shuttle_type6" | Class =="st_shuttle_type9"){
Shuttle["Engage Warp",number] = 0
}
elseif(Class=="st_shuttle_type11"){
Shuttle["Transwarp",number] = 0
}
}
if(chatClk(owner())){
W = owner():lastSaid():lower():explode(" ")
if(W[1,string] == "/shuttle" & Shuttle){
hideChat(1)
if(W[2,string] == "warp" & W[3,string] == "to"){
if(Destinations[W[4,string],vector]!=vec()){
print("[Shuttle Computer]:Warping to "+W[4,string])
warpShuttle(Destinations[W[4,string],vector])
}else{
print("[Shuttle Computer]:Invalid Destination!")
}
}
elseif(W[2,string] == "beam" & W[3,string] == "me" & W[4,string] == "up"){
Shuttle["Beam Up",number] = 1
timer("resetBeam",200)
}
elseif(W[2,string] == "beam" & W[3,string] == "me" & W[4,string] == "down"){
Shuttle["Beam Down",number] = 1
timer("resetBeam",200)
}
}
}
if(clk("resetBeam")){
Shuttle["Beam Up",number] = 0
Shuttle["Beam Down",number] = 0
}if you're really bad at reading that to figure out the simple commands then "/shuttle warp to planet/galaxy" "/shuttle beam me up" or "/shuttle beam me down" RE: T-16's E2 Help & Request Thread - тѕсм.[SG-1] Teal'c - 07-09-2015 thank you so much |