mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-26 09:32:21 +00:00
* WIP * More wip * Numbers * More WIP * Improve * Add QDEL_IN_CLIENT_TIME * More WIP * Getting there * Absolute communism * More stuff * More states * MrPerson's suggestion * Makes it work, now we just need the dmi * No, that's the null icon_state * More better * Fix script * Turns out we don't need an empty dmi to start with * Upload a much more complete dmi. Now we just need the identicons * Fix * Add the credits tool * THE FULL DMI * Mistake * No need to resize the image if it's already 32x32. Also download the right one in the first place. * It's oranges * Transparent opacity * Make per client * Run at roundend * Make tgstation-server great again! * Speed things up some * Fix up the verb * Final touches * Remove the unecessary .sln * PraiseRatvar -> Frozenguy5 * New age coding * Bigger gulps
54 lines
1.5 KiB
Plaintext
54 lines
1.5 KiB
Plaintext
//Dead mobs can exist whenever. This is needful
|
|
|
|
INITIALIZE_IMMEDIATE(/mob/dead)
|
|
|
|
/mob/dead
|
|
sight = SEE_TURFS | SEE_MOBS | SEE_OBJS | SEE_SELF
|
|
|
|
/mob/dead/Initialize()
|
|
if(initialized)
|
|
stack_trace("Warning: [src]([type]) initialized multiple times!")
|
|
initialized = TRUE
|
|
tag = "mob_[next_mob_id++]"
|
|
GLOB.mob_list += src
|
|
|
|
prepare_huds()
|
|
|
|
if(config.cross_allowed)
|
|
verbs += /mob/dead/proc/server_hop
|
|
return INITIALIZE_HINT_NORMAL
|
|
|
|
/mob/dead/dust() //ghosts can't be vaporised.
|
|
return
|
|
|
|
/mob/dead/gib() //ghosts can't be gibbed.
|
|
return
|
|
|
|
/mob/dead/ConveyorMove() //lol
|
|
return
|
|
|
|
|
|
|
|
/mob/dead/proc/server_hop()
|
|
set category = "OOC"
|
|
set name = "Server Hop!"
|
|
set desc= "Jump to the other server"
|
|
if(notransform)
|
|
return
|
|
if(!config.cross_allowed)
|
|
verbs -= /mob/dead/proc/server_hop
|
|
to_chat(src, "<span class='notice'>Server Hop has been disabled.</span>")
|
|
return
|
|
if (alert(src, "Jump to server running at [config.cross_address]?", "Server Hop", "Yes", "No") != "Yes")
|
|
return 0
|
|
if (client && config.cross_allowed)
|
|
to_chat(src, "<span class='notice'>Sending you to [config.cross_address].</span>")
|
|
new /obj/screen/splash(client)
|
|
notransform = TRUE
|
|
sleep(29) //let the animation play
|
|
notransform = FALSE
|
|
winset(src, null, "command=.options") //other wise the user never knows if byond is downloading resources
|
|
client << link(config.cross_address + "?server_hop=[key]")
|
|
else
|
|
to_chat(src, "<span class='error'>There is no other server configured!</span>")
|