mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Changelong:
More tweaks to death commandos. More work on CentCom. Fixed turret control issue for AI. Station blueprints now spawn in CE's locker. Power control modules placed on the map. More shield generator stuff by Barhandar: shield walls and shield wall generators now respect bullets and they (bullets) have chance to get past the shield. This also means you can power shield generators through emitters but it takes two to make a generator stable. Misc map changes. Re-check gimmick closets so they no longer spawn empty. Added a new admin button under Special Verbs. Allows to easily respawn a player (as an assistant) if their original body was gibbed. Currently doesn't set player preferences. WIP. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@675 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -237,24 +237,23 @@ Would like to add a law like "Law x is _______" where x = a number, and _____ is
|
||||
command_alert("Ion storm detected near the station. Please check all AI-controlled equipment for errors.", "Anomaly Alert")
|
||||
world << sound('ionstorm.ogg')
|
||||
|
||||
/client/proc/spawn_xeno()
|
||||
/client/proc/spawn_xeno() //Stealth spawns xenos /N
|
||||
set category = "Fun"
|
||||
set name = "Spawn Xeno"
|
||||
set desc = "Spawns a xenomorph for all those boring rounds, without having you to do so manually."
|
||||
if(!src.authenticated || !src.holder)
|
||||
src << "Only administrators may use this command."
|
||||
return
|
||||
var/list/xeno_list = list()
|
||||
for(var/obj/landmark/X in world)
|
||||
if (X.name == "xeno_spawn")
|
||||
xeno_list+=(X)
|
||||
if(xeno_list.len) goto NEXT
|
||||
else
|
||||
xeno_list.Add(X)
|
||||
if(!xeno_list.len)
|
||||
alert("There are no available spots to spawn the xeno. Aborting command.")
|
||||
return
|
||||
|
||||
NEXT
|
||||
var/obj/spawn_here = pick(xeno_list)
|
||||
var/mob/living/carbon/alien/humanoid/new_xeno = new /mob/living/carbon/alien/humanoid(spawn_here.loc)
|
||||
var/obj/landmark/spawn_here = pick(xeno_list)
|
||||
var/mob/living/carbon/alien/humanoid/new_xeno = new(spawn_here.loc)
|
||||
new_xeno.plasma = 250
|
||||
|
||||
var/list/candidates = list() // Picks a random ghost for the role. Mostly a copy of alien burst code.
|
||||
@@ -270,7 +269,40 @@ Would like to add a law like "Law x is _______" where x = a number, and _____ is
|
||||
alert("There are no available ghosts to throw into the xeno. Aborting command.")
|
||||
del(new_xeno)
|
||||
return
|
||||
message_admins("\blue [key_name_admin(usr)] has spawned a filthy xeno at [new_xeno.loc].", 1)
|
||||
message_admins("\blue [key_name_admin(usr)] has spawned a filthy xeno at [spawn_here.loc].", 1)
|
||||
|
||||
|
||||
//If a guy was gibbed and you want to revive him, this is a good way to do so.
|
||||
//Works much like entering the game with a new character. Doesn't retain mind. /N
|
||||
/client/proc/respawn_character()
|
||||
set category = "Special Verbs"
|
||||
set name = "Respawn Character"
|
||||
set desc = "Re-spawn a person that has been gibbed/deleted. They must be a ghost for this to work."
|
||||
if(!src.authenticated || !src.holder)
|
||||
src << "Only administrators may use this command."
|
||||
return
|
||||
var/input = input(usr, "Please specify which key/client will be respawned. That person will not retain their traitor/other status when respawned.", "What?", "")
|
||||
if(!input)
|
||||
return
|
||||
|
||||
var/GKEY = input
|
||||
var/mob/dead/observer/GDEL //to properly delete the mob later on.
|
||||
for(var/mob/dead/observer/G in world)
|
||||
if(G.key==input)
|
||||
GDEL = G
|
||||
else
|
||||
alert("There is no such key in the game or the person is not currently a ghost. Aborting command.")
|
||||
return
|
||||
|
||||
var/spawn_here = pick(latejoin)//"JoinLate" is a landmark which is deleted on round start. So, latejoin has to be used instead.
|
||||
var/mob/living/carbon/human/new_character = new(src)
|
||||
new_character.loc = spawn_here
|
||||
// preferences.copy_to(new_character)
|
||||
new_character.dna.ready_dna(new_character)
|
||||
new_character.Equip_Rank("Assistant", joined_late=1)
|
||||
message_admins("\blue [key_name_admin(usr)] has respawned [GKEY] at [new_character.loc].", 1) //Here so it doesn't null name if an admin re-spawns themselves.
|
||||
new_character.key = GKEY
|
||||
del(GDEL)
|
||||
|
||||
/client/proc/cmd_admin_add_freeform_ai_law()
|
||||
set category = "Fun"
|
||||
|
||||
Reference in New Issue
Block a user