mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-23 16:42:13 +00:00
The lifeless live again. Or in this case, what never actually lived here. Ports Baystation12/Baystation12#17460 probably for real this time. What this allows us to do is create shuttles on runtime and make shuttles easier by just making landmarks and a shuttle instead of areas and shuttles. Also allows runtime landmark creation via flares or whatever AND allows shuttles to use different landmarks at will. I removed most of the overmap stuff, I think. It shouldn't be hard to slam it in whenever we need to. Changes: "Shuttle code has been completely reworked." "Shuttles can now be modified to have more than one destination." "Shuttles now have a takeoff sound." "You can now throw mobs against walls to damage them. A lot." "You now need a neckgrab to throw mobs." "BEING UNBUCKLED DURING SHUTTLE LAUNCH IS DANGEROUS! Don't do it." "Adminghosts can now interact with all shuttles."
37 lines
2.0 KiB
Plaintext
37 lines
2.0 KiB
Plaintext
/datum/admin_secret_item/admin_secret/jump_shuttle
|
|
name = "Jump a Shuttle"
|
|
|
|
/datum/admin_secret_item/admin_secret/jump_shuttle/can_execute(var/mob/user)
|
|
if(!SSshuttle) return 0
|
|
return ..()
|
|
|
|
/datum/admin_secret_item/admin_secret/jump_shuttle/execute(var/mob/user)
|
|
. = ..()
|
|
if(!.)
|
|
return
|
|
var/shuttle_tag = input(user, "Which shuttle do you want to jump?") as null|anything in SSshuttle.shuttles
|
|
if (!shuttle_tag) return
|
|
|
|
var/datum/shuttle/S = SSshuttle.shuttles[shuttle_tag]
|
|
|
|
var/origin_area = input(user, "Which area is the shuttle at now? (MAKE SURE THIS IS CORRECT OR THINGS WILL BREAK)") as null|area in world
|
|
if (!origin_area) return
|
|
|
|
var/destination_area = input(user, "Which area is the shuttle at now? (MAKE SURE THIS IS CORRECT OR THINGS WILL BREAK)") as null|area in world
|
|
if (!destination_area) return
|
|
|
|
var/long_jump = alert(user, "Is there a transition area for this jump?","", "Yes", "No")
|
|
if (long_jump == "Yes")
|
|
var/transition_area = input(user, "Which area is the transition area? (MAKE SURE THIS IS CORRECT OR THINGS WILL BREAK)") as null|area in world
|
|
if (!transition_area) return
|
|
|
|
var/move_duration = input(user, "How many seconds will this jump take?") as num
|
|
|
|
S.long_jump(origin_area, destination_area, transition_area, move_duration)
|
|
message_admins("<span class='notice'>[key_name_admin(user)] has initiated a jump from [origin_area] to [destination_area] lasting [move_duration] seconds for the [shuttle_tag] shuttle</span>", 1)
|
|
log_admin("[key_name(user)] has initiated a jump from [origin_area] to [destination_area] lasting [move_duration] seconds for the [shuttle_tag] shuttle",admin_key=key_name(user))
|
|
else
|
|
S.short_jump(origin_area, destination_area)
|
|
message_admins("<span class='notice'>[key_name_admin(user)] has initiated a jump from [origin_area] to [destination_area] for the [shuttle_tag] shuttle</span>", 1)
|
|
log_admin("[key_name(user)] has initiated a jump from [origin_area] to [destination_area] for the [shuttle_tag] shuttle",admin_key=key_name(user))
|