Files
CHOMPStation2/code/modules/mob/login.dm
mport2004@gmail.com ed93b992c4 H/E pipes once again do H/E things
Missed a line on the flashes, they will once again stun cyborgs
Few adminverbs changed by request of the heads
Roburgers will only provide 2 nanites down from 10
The random round spawn code now checks jobbans
Players with a Cyborg jobban cannot become a cyborg normally

Re added the old power armor typepaths as there seem to be a few of them in the .dmm and the thing's autocorrect/remove items seems to just fuck up the rest of the map when used.  I have no idea where they are located and don't like leaving errors in the code, so if someone could remove them and the old typepaths it would be great.


git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2024 316c924e-a436-60f5-8080-3fe189b3f50e
2011-08-19 06:11:28 +00:00

49 lines
3.1 KiB
Plaintext

/mob/Login()
log_access("Login: [key_name(src)] from [src.client.address ? src.client.address : "localhost"]")
src.lastKnownIP = src.client.address
src.computer_id = src.client.computer_id
if (config.log_access)
for (var/mob/M in world)
if(M == src)
continue
if(M.client && M.client.address == src.client.address)
log_access("Notice: [key_name(src)] has same IP address as [key_name(M)]")
message_admins("<font color='red'><B>Notice: </B><font color='blue'><A href='?src=\ref[usr];priv_msg=\ref[src]'>[key_name_admin(src)]</A> has the same IP address as <A href='?src=\ref[usr];priv_msg=\ref[M]'>[key_name_admin(M)]</A></font>", 1)
else if (M.lastKnownIP && M.lastKnownIP == src.client.address && M.ckey != src.ckey && M.key)
log_access("Notice: [key_name(src)] has same IP address as [key_name(M)] did ([key_name(M)] is no longer logged in).")
message_admins("<font color='red'><B>Notice: </B><font color='blue'><A href='?src=\ref[usr];priv_msg=\ref[src]'>[key_name_admin(src)]</A> has the same IP address as [key_name_admin(M)] did ([key_name_admin(M)] is no longer logged in).</font>", 1)
if(M.client && M.client.computer_id == src.client.computer_id)
log_access("Notice: [key_name(src)] has same computer ID as [key_name(M)]")
message_admins("<font color='red'><B>Notice: </B><font color='blue'><A href='?src=\ref[usr];priv_msg=\ref[src]'>[key_name_admin(src)]</A> has the same <font color='red'><B>computer ID</B><font color='blue'> as <A href='?src=\ref[usr];priv_msg=\ref[M]'>[key_name_admin(M)]</A></font>", 1)
spawn() alert("You have logged in already with another key this round, please log out of this one NOW or risk being banned!")
else if (M.computer_id && M.computer_id == src.client.computer_id && M.ckey != src.ckey && M.key)
log_access("Notice: [key_name(src)] has same computer ID as [key_name(M)] did ([key_name(M)] is no longer logged in).")
message_admins("<font color='red'><B>Notice: </B><font color='blue'><A href='?src=\ref[usr];priv_msg=\ref[src]'>[key_name_admin(src)]</A> has the same <font color='red'><B>computer ID</B><font color='blue'> as [key_name_admin(M)] did ([key_name_admin(M)] is no longer logged in).</font>", 1)
spawn() alert("You have logged in already with another key this round, please log out of this one NOW or risk being banned!")
if(!src.dna) src.dna = new /datum/dna(null)
//src.client.screen -= main_hud1.contents
world.update_status()
//if (!src.hud_used)
// src.hud_used = main_hud1
if (!src.hud_used)
src.hud_used = new/obj/hud( src )
else
del(src.hud_used)
src.hud_used = new/obj/hud( src )
src.next_move = 1
src.sight |= SEE_SELF
src.logged_in = 1
if(istype (src, /mob/living))
if(ticker)
if(ticker.mode)
if(ticker.mode.name == "revolution")
if ((src.mind in ticker.mode:revolutionaries) || (src.mind in ticker.mode:head_revolutionaries))
ticker.mode:update_rev_icons_added(src.mind)
if(ticker.mode.name == "cult")
if (src.mind in ticker.mode:cult)
ticker.mode:update_cult_icons_added(src.mind)
..()