Practice and Lasertag Logs

- Adds ability to turn off admin chat logging for specific projectiles.
- Turns off admin chat logging for practice laser and lasertag beams.
This commit is contained in:
DZD
2015-01-22 12:06:30 -05:00
parent 1ee0b012ea
commit add99533fc
2 changed files with 5 additions and 2 deletions
+3 -2
View File
@@ -58,6 +58,7 @@
var/range = 0
var/proj_hit = 0
var/chatlog_attacks = 1
proc/delete()
// Garbage collect the projectiles
@@ -126,7 +127,7 @@
if(istype(firer, /mob))
M.attack_log += "\[[time_stamp()]\] <b>[firer]/[firer.ckey]</b> shot <b>[M]/[M.ckey]</b> with a <b>[src.type]</b>"
firer.attack_log += "\[[time_stamp()]\] <b>[firer]/[firer.ckey]</b> shot <b>[M]/[M.ckey]</b> with a <b>[src.type]</b>"
if(M.ckey)
if(M.ckey && chatlog_attacks)
msg_admin_attack("[firer] ([firer.ckey]) shot [M] ([M.ckey]) with a [src] (<A HREF='?_src_=holder;adminplayerobservecoodjump=1;X=[firer.x];Y=[firer.y];Z=[firer.z]'>JMP</a>)") //BS12 EDIT ALG
if(!iscarbon(firer))
M.LAssailant = null
@@ -134,7 +135,7 @@
M.LAssailant = firer
else
M.attack_log += "\[[time_stamp()]\] <b>UNKNOWN SUBJECT (No longer exists)</b> shot <b>[M]/[M.ckey]</b> with a <b>[src]</b>"
if(M.ckey)
if(M.ckey && chatlog_attacks)
msg_admin_attack("UNKNOWN shot [M] ([M.ckey]) with a [src] (<A HREF='?_src_=holder;adminplayerobservecoodjump=1;X=[firer.x];Y=[firer.y];Z=[firer.z]'>JMP</a>)") //BS12 EDIT ALG
spawn(0)
@@ -17,6 +17,7 @@
damage_type = BURN
flag = "laser"
eyeblur = 2
chatlog_attacks = 0
/obj/item/projectile/beam/scatter
name = "laser pellet"
@@ -80,6 +81,7 @@
flag = "laser"
pass_flags = PASSTABLE | PASSGLASS | PASSGRILLE
var/suit_types = list(/obj/item/clothing/suit/redtag, /obj/item/clothing/suit/bluetag)
chatlog_attacks = 0
/obj/item/projectile/lasertag/on_hit(var/atom/target, var/blocked = 0)
if(istype(target, /mob/living/carbon/human))