mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 19:22:56 +00:00
check antag "call shuttle" overrides fake recall, can use marked datum as arg in the bs12 call proc command
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
if( ticker.mode.name == "blob" )
|
if( ticker.mode.name == "blob" )
|
||||||
alert("You can't call the shuttle during blob!")
|
alert("You can't call the shuttle during blob!")
|
||||||
return
|
return
|
||||||
|
emergency_shuttle.fake_recall = 0 // allow admins to override gamemode
|
||||||
switch(href_list["call_shuttle"])
|
switch(href_list["call_shuttle"])
|
||||||
if("1")
|
if("1")
|
||||||
if ((!( ticker ) || emergency_shuttle.location))
|
if ((!( ticker ) || emergency_shuttle.location))
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
|
|||||||
|
|
||||||
var/i
|
var/i
|
||||||
for(i=0; i<argNum; i++)
|
for(i=0; i<argNum; i++)
|
||||||
class = input("Type of Argument #[i]","Variable Type", "text") in list("text","num","type","reference","icon","file","cancel")
|
class = input("Type of Argument #[i]","Variable Type", "text") in list("text","num","type","reference","icon","file","marked datum","cancel")
|
||||||
switch(class)
|
switch(class)
|
||||||
if("cancel")
|
if("cancel")
|
||||||
return
|
return
|
||||||
@@ -156,6 +156,9 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
|
|||||||
if("file")
|
if("file")
|
||||||
argL.Add( input("Pick file:","File",null) as file )
|
argL.Add( input("Pick file:","File",null) as file )
|
||||||
|
|
||||||
|
if("marked datum")
|
||||||
|
argL.Add(usr.client.holder.marked_datum)
|
||||||
|
|
||||||
usr << "\blue Calling '[procname]'"
|
usr << "\blue Calling '[procname]'"
|
||||||
returnval = call(procname)(arglist(argL))
|
returnval = call(procname)(arglist(argL))
|
||||||
|
|
||||||
@@ -182,7 +185,7 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
|
|||||||
|
|
||||||
var/i
|
var/i
|
||||||
for(i=0; i<argNum; i++)
|
for(i=0; i<argNum; i++)
|
||||||
class = input("Type of Argument #[i]","Variable Type", "text") in list("text","num","type","reference","icon","file","cancel")
|
class = input("Type of Argument #[i]","Variable Type", "text") in list("text","num","type","reference","icon","file","marked datum","cancel")
|
||||||
switch(class)
|
switch(class)
|
||||||
if("cancel")
|
if("cancel")
|
||||||
return
|
return
|
||||||
@@ -205,6 +208,9 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
|
|||||||
if("file")
|
if("file")
|
||||||
argL.Add( input("Pick file:","File",null) as file )
|
argL.Add( input("Pick file:","File",null) as file )
|
||||||
|
|
||||||
|
if("marked datum")
|
||||||
|
argL.Add(usr.client.holder.marked_datum)
|
||||||
|
|
||||||
usr << "\blue Calling '[procname]' on '[target]'"
|
usr << "\blue Calling '[procname]' on '[target]'"
|
||||||
returnval = call(target,procname)(arglist(argL))
|
returnval = call(target,procname)(arglist(argL))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user