Lasertag and practice beams won't explode tanks anymore.
This commit is contained in:
Chinsky
2012-11-18 11:24:17 +04:00
parent ffe541adec
commit 684679cefb
7 changed files with 21 additions and 22 deletions

View File

@@ -820,14 +820,14 @@ Auto Patrol: []"},
projectile = /obj/item/projectile/energy/electrode projectile = /obj/item/projectile/energy/electrode
else if(lasercolor == "b") else if(lasercolor == "b")
if (src.emagged == 2) if (src.emagged == 2)
projectile = /obj/item/projectile/beam/omnitag projectile = /obj/item/projectile/beam/lastertag/omni
else else
projectile = /obj/item/projectile/beam/bluetag projectile = /obj/item/projectile/beam/lastertag/blue
else if(lasercolor == "r") else if(lasercolor == "r")
if (src.emagged == 2) if (src.emagged == 2)
projectile = /obj/item/projectile/beam/omnitag projectile = /obj/item/projectile/beam/lastertag/omni
else else
projectile = /obj/item/projectile/beam/redtag projectile = /obj/item/projectile/beam/lastertag/red
if (!( istype(U, /turf) )) if (!( istype(U, /turf) ))
return return
@@ -1011,7 +1011,7 @@ Auto Patrol: []"},
/obj/machinery/bot/ed209/bullet_act(var/obj/item/projectile/Proj) /obj/machinery/bot/ed209/bullet_act(var/obj/item/projectile/Proj)
if((src.lasercolor == "b") && (src.disabled == 0)) if((src.lasercolor == "b") && (src.disabled == 0))
if(istype(Proj, /obj/item/projectile/beam/redtag)) if(istype(Proj, /obj/item/projectile/beam/lastertag/red))
src.disabled = 1 src.disabled = 1
del (Proj) del (Proj)
sleep(100) sleep(100)
@@ -1019,7 +1019,7 @@ Auto Patrol: []"},
else else
..() ..()
else if((src.lasercolor == "r") && (src.disabled == 0)) else if((src.lasercolor == "r") && (src.disabled == 0))
if(istype(Proj, /obj/item/projectile/beam/bluetag)) if(istype(Proj, /obj/item/projectile/beam/lastertag/blue))
src.disabled = 1 src.disabled = 1
del (Proj) del (Proj)
sleep(100) sleep(100)

View File

@@ -76,8 +76,8 @@
// All energy-based weapons are applicable // All energy-based weapons are applicable
switch(E.type) switch(E.type)
if(/obj/item/weapon/gun/energy/laser/bluetag) if(/obj/item/weapon/gun/energy/laser/bluetag)
projectile = /obj/item/projectile/beam/bluetag projectile = /obj/item/projectile/beam/lastertag/blue
eprojectile = /obj/item/projectile/beam/omnitag//This bolt will stun ERRYONE with a vest eprojectile = /obj/item/projectile/beam/lastertag/omni//This bolt will stun ERRYONE with a vest
iconholder = null iconholder = null
reqpower = 100 reqpower = 100
lasercolor = "b" lasercolor = "b"
@@ -90,8 +90,8 @@
shot_delay = 30 shot_delay = 30
if(/obj/item/weapon/gun/energy/laser/redtag) if(/obj/item/weapon/gun/energy/laser/redtag)
projectile = /obj/item/projectile/beam/redtag projectile = /obj/item/projectile/beam/lastertag/red
eprojectile = /obj/item/projectile/beam/omnitag eprojectile = /obj/item/projectile/beam/lastertag/omni
iconholder = null iconholder = null
reqpower = 100 reqpower = 100
lasercolor = "r" lasercolor = "r"
@@ -375,13 +375,13 @@ Status: []<BR>"},
if (src.health <= 0) if (src.health <= 0)
src.die() // the death process :( src.die() // the death process :(
if((src.lasercolor == "b") && (src.disabled == 0)) if((src.lasercolor == "b") && (src.disabled == 0))
if(istype(Proj, /obj/item/projectile/beam/redtag)) if(istype(Proj, /obj/item/projectile/beam/lastertag/red))
src.disabled = 1 src.disabled = 1
del (Proj) del (Proj)
sleep(100) sleep(100)
src.disabled = 0 src.disabled = 0
if((src.lasercolor == "r") && (src.disabled == 0)) if((src.lasercolor == "r") && (src.disabled == 0))
if(istype(Proj, /obj/item/projectile/beam/bluetag)) if(istype(Proj, /obj/item/projectile/beam/lastertag/blue))
src.disabled = 1 src.disabled = 1
del (Proj) del (Proj)
sleep(100) sleep(100)

View File

@@ -221,9 +221,9 @@
if(4) if(4)
A = new /obj/item/projectile/change( loc ) A = new /obj/item/projectile/change( loc )
if(5) if(5)
A = new /obj/item/projectile/beam/bluetag( loc ) A = new /obj/item/projectile/beam/lastertag/blue( loc )
if(6) if(6)
A = new /obj/item/projectile/beam/redtag( loc ) A = new /obj/item/projectile/beam/lastertag/red( loc )
A.original = target.loc A.original = target.loc
use_power(500) use_power(500)
else else

View File

@@ -90,7 +90,7 @@ obj/item/weapon/gun/energy/laser/retro
name = "laser tag gun" name = "laser tag gun"
icon_state = "bluetag" icon_state = "bluetag"
desc = "Standard issue weapon of the Imperial Guard" desc = "Standard issue weapon of the Imperial Guard"
projectile_type = "/obj/item/projectile/beam/bluetag" projectile_type = "/obj/item/projectile/beam/lastertag/blue"
origin_tech = "combat=1;magnets=2" origin_tech = "combat=1;magnets=2"
clumsy_check = 0 clumsy_check = 0
var/charge_tick = 0 var/charge_tick = 0
@@ -127,7 +127,7 @@ obj/item/weapon/gun/energy/laser/retro
name = "laser tag gun" name = "laser tag gun"
icon_state = "redtag" icon_state = "redtag"
desc = "Standard issue weapon of the Imperial Guard" desc = "Standard issue weapon of the Imperial Guard"
projectile_type = "/obj/item/projectile/beam/redtag" projectile_type = "/obj/item/projectile/beam/lastertag/red"
origin_tech = "combat=1;magnets=2" origin_tech = "combat=1;magnets=2"
clumsy_check = 0 clumsy_check = 0
var/charge_tick = 0 var/charge_tick = 0

View File

@@ -111,7 +111,7 @@ var/list/beam_master = list()
/obj/item/projectile/beam/bluetag /obj/item/projectile/beam/lastertag/blue
name = "lasertag beam" name = "lasertag beam"
icon_state = "bluelaser" icon_state = "bluelaser"
pass_flags = PASSTABLE | PASSGLASS | PASSGRILLE pass_flags = PASSTABLE | PASSGLASS | PASSGRILLE
@@ -126,7 +126,7 @@ var/list/beam_master = list()
M.Weaken(5) M.Weaken(5)
return 1 return 1
/obj/item/projectile/beam/redtag /obj/item/projectile/beam/lastertag/red
name = "lasertag beam" name = "lasertag beam"
icon_state = "laser" icon_state = "laser"
pass_flags = PASSTABLE | PASSGLASS | PASSGRILLE pass_flags = PASSTABLE | PASSGLASS | PASSGRILLE
@@ -141,7 +141,7 @@ var/list/beam_master = list()
M.Weaken(5) M.Weaken(5)
return 1 return 1
/obj/item/projectile/beam/omnitag//A laser tag bolt that stuns EVERYONE /obj/item/projectile/beam/lastertag/omni//A laser tag bolt that stuns EVERYONE
name = "lasertag beam" name = "lasertag beam"
icon_state = "omnilaser" icon_state = "omnilaser"
pass_flags = PASSTABLE | PASSGLASS | PASSGRILLE pass_flags = PASSTABLE | PASSGLASS | PASSGRILLE

View File

@@ -145,7 +145,8 @@
bullet_act(var/obj/item/projectile/Proj) bullet_act(var/obj/item/projectile/Proj)
if(istype(Proj ,/obj/item/projectile/beam)||istype(Proj,/obj/item/projectile/bullet)) if(istype(Proj ,/obj/item/projectile/beam)||istype(Proj,/obj/item/projectile/bullet))
explode() if(!istype(Proj ,/obj/item/projectile/beam/lastertag) && !istype(Proj ,/obj/item/projectile/beam/practice) )
explode()
blob_act() blob_act()
explode() explode()

View File

@@ -153,8 +153,6 @@
if(istype(P,/obj/item/projectile/beam)) src.Artifact_Activate() if(istype(P,/obj/item/projectile/beam)) src.Artifact_Activate()
else if(istype(P,/obj/item/projectile/ion)) src.Artifact_Activate() else if(istype(P,/obj/item/projectile/ion)) src.Artifact_Activate()
else if(istype(P,/obj/item/projectile/energy)) src.Artifact_Activate() else if(istype(P,/obj/item/projectile/energy)) src.Artifact_Activate()
else if(istype(P,/obj/item/projectile/beam/bluetag)) src.Artifact_Activate()
else if(istype(P,/obj/item/projectile/beam/redtag)) src.Artifact_Activate()
if (my_effect.trigger == "heat") if (my_effect.trigger == "heat")
if(istype(P,/obj/item/projectile/temp)) src.Artifact_Activate() if(istype(P,/obj/item/projectile/temp)) src.Artifact_Activate()