Foam Lasertag Darts (#5847)
* Laser Tag Darts. Darts that are compatable with the laser tag system * Lastag Ammo Boxes. Autoylathe Update. * Final bug fixes.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
/obj/item/ammo_casing/caseless/foam_dart/tag
|
||||
name = "lastag foam dart"
|
||||
desc = "Foam darts fitted with special lights. Compatible with existing laser tag systems. Ages 8 and up."
|
||||
color = "#FF00FF"
|
||||
projectile_type = /obj/item/projectile/bullet/reusable/foam_dart/tag
|
||||
/obj/item/ammo_casing/caseless/foam_dart/tag/red
|
||||
name = "lastag red foam dart"
|
||||
color = "#FF0000"
|
||||
projectile_type = /obj/item/projectile/bullet/reusable/foam_dart/tag/red
|
||||
/obj/item/ammo_casing/caseless/foam_dart/tag/blue
|
||||
name = "lastag blue foam dart"
|
||||
color = "#0000FF"
|
||||
projectile_type = /obj/item/projectile/bullet/reusable/foam_dart/tag/blue
|
||||
@@ -0,0 +1,23 @@
|
||||
/obj/item/ammo_box/foambox/tag
|
||||
name = "ammo box (Lastag Foam Darts)"
|
||||
icon = 'icons/obj/guns/toy.dmi'
|
||||
icon_state = "foambox"
|
||||
ammo_type = /obj/item/ammo_casing/caseless/foam_dart/tag
|
||||
max_ammo = 40
|
||||
color = "#FF00FF"
|
||||
|
||||
/obj/item/ammo_box/foambox/tag/red
|
||||
name = "ammo box (Lastag Red Foam Darts)"
|
||||
icon = 'icons/obj/guns/toy.dmi'
|
||||
icon_state = "foambox"
|
||||
ammo_type = /obj/item/ammo_casing/caseless/foam_dart/tag/red
|
||||
max_ammo = 40
|
||||
color = "#FF0000"
|
||||
|
||||
/obj/item/ammo_box/foambox/tag/blue
|
||||
name = "ammo box (Lastag Blue Foam Darts)"
|
||||
icon = 'icons/obj/guns/toy.dmi'
|
||||
icon_state = "foambox"
|
||||
ammo_type = /obj/item/ammo_casing/caseless/foam_dart/tag/blue
|
||||
max_ammo = 40
|
||||
color = "#0000FF"
|
||||
@@ -0,0 +1,22 @@
|
||||
/obj/item/projectile/bullet/reusable/foam_dart/tag
|
||||
name = "lastag foam dart"
|
||||
var/suit_types = list(/obj/item/clothing/suit/redtag, /obj/item/clothing/suit/bluetag)
|
||||
|
||||
/obj/item/projectile/bullet/reusable/foam_dart/tag/on_hit(atom/target, blocked = FALSE)
|
||||
. = ..()
|
||||
if(ishuman(target))
|
||||
var/mob/living/carbon/human/M = target
|
||||
if(istype(M.wear_suit))
|
||||
if(M.wear_suit.type in suit_types)
|
||||
M.adjustStaminaLoss(24)
|
||||
|
||||
/obj/item/projectile/bullet/reusable/foam_dart/tag/red
|
||||
name = "lastag red foam dart"
|
||||
color = "#FF0000"
|
||||
suit_types = list(/obj/item/clothing/suit/bluetag)
|
||||
ammo_type = /obj/item/ammo_casing/caseless/foam_dart/tag/red
|
||||
/obj/item/projectile/bullet/reusable/foam_dart/tag/blue
|
||||
color = "#0000FF"
|
||||
name = "lastag blue foam dart"
|
||||
suit_types = list(/obj/item/clothing/suit/redtag)
|
||||
ammo_type = /obj/item/ammo_casing/caseless/foam_dart/tag/blue
|
||||
Reference in New Issue
Block a user