mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-24 17:11:22 +00:00
Fixed deaths at the end of nuke rounds, optimised the code a little gib() is now hgib() (ie it's specific to humans). gibs.dm() now only spawns generic gibs that could be from any mob. Likewise for dust. Awaiting generic dust() and gib() animations. Fixed (hopefully, depends if firewalls block this method) getruntimelog. GameMasters no longer have the getruntimelog verb. Instead they have .giverutimelog . This allows them to grant a specific client access to the server's runtime logs. (they can grant themself access this way too). NOTE: runtime logs can be used to meta, only grant access to coders or people you trust. It may also be wise to ensure they do not play in the current round. Introducing .getserverlog . It allows any admin above moderator to access ANY archived server/attack logs. Should mkae processing forum ban requests a lot easier since all admins with ban capabilities now have access. getruntimelog renamed to .getruntimelog . File-request spam prevention increased to 60seconds to discourage access serverlogs too much! They can reach sizes of 4Mb sometimes so please be responsible with them admins. runtime logs should now be saved to /data/logs/runtime/ (you may have to create this folder yourself) ummm... fixed gibs appearing below shuttle turfs. Trimmed some uneeded fluff text from the logs. Revision: r3509 Author: elly1...@rocketmail.com
77 lines
1.6 KiB
Plaintext
77 lines
1.6 KiB
Plaintext
//This is the proc for gibbing a mob. Cannot gib ghosts.
|
|
//added different sort of gibs and animations. N
|
|
/mob/proc/gib()
|
|
death(1)
|
|
var/atom/movable/overlay/animation = null
|
|
monkeyizing = 1
|
|
canmove = 0
|
|
icon = null
|
|
invisibility = 101
|
|
|
|
animation = new(loc)
|
|
animation.icon_state = "blank"
|
|
animation.icon = 'mob.dmi'
|
|
animation.master = src
|
|
|
|
// flick("gibbed-m", animation)
|
|
gibs(loc, viruses, dna)
|
|
|
|
spawn(15)
|
|
if(animation) del(animation)
|
|
if(src) del(src)
|
|
|
|
|
|
//This is the proc for turning a mob into ash. Mostly a copy of gib code (above).
|
|
//Originally created for wizard disintegrate. I've removed the virus code since it's irrelevant here.
|
|
//Dusting robots does not eject the MMI, so it's a bit more powerful than gib() /N
|
|
/mob/proc/dust()
|
|
death(1)
|
|
var/atom/movable/overlay/animation = null
|
|
monkeyizing = 1
|
|
canmove = 0
|
|
icon = null
|
|
invisibility = 101
|
|
|
|
animation = new(loc)
|
|
animation.icon_state = "blank"
|
|
animation.icon = 'mob.dmi'
|
|
animation.master = src
|
|
|
|
// flick("dust-m", animation)
|
|
new /obj/effect/decal/ash(loc)
|
|
|
|
spawn(15)
|
|
if(animation) del(animation)
|
|
if(src) del(src)
|
|
|
|
|
|
/mob/proc/death(gibbed)
|
|
timeofdeath = world.time
|
|
|
|
var/cancel = 0
|
|
for(var/mob/M in world)
|
|
if(M.client && (M.stat != DEAD))
|
|
cancel = 1
|
|
break
|
|
if(!cancel)
|
|
world << "<B>Everyone is dead! Resetting in 30 seconds!</B>"
|
|
|
|
spawn(300)
|
|
for(var/mob/M in world)
|
|
if(M.client && (M.stat != DEAD))
|
|
world << "Aborting world restart!"
|
|
return
|
|
|
|
feedback_set_details("end_error","no live players")
|
|
|
|
if(blackbox)
|
|
blackbox.save_all_data_to_sql()
|
|
|
|
sleep(50)
|
|
|
|
log_game("Rebooting because of no live players")
|
|
world.Reboot()
|
|
return
|
|
|
|
return ..(gibbed)
|