[PORT] Paintball guns!!! (#22406)

* paintball guns

* paintball
This commit is contained in:
ktlwjec
2024-08-07 00:11:19 +01:00
committed by GitHub
parent c2ab647490
commit 6f8ed5e339
7 changed files with 133 additions and 1 deletions

View File

@@ -2847,6 +2847,23 @@
crate_name = "mech pilot's suit crate"
crate_type = /obj/structure/closet/crate/wooden
/datum/supply_pack/costumes_toys/paintball
name = "Mixed Paintball Supply Crate"
desc = "Contains four paintball guns and extra ammo."
cost = 2500
contraband = TRUE
contains = list(/obj/item/gun/ballistic/automatic/toy/paintball/blue,
/obj/item/gun/ballistic/automatic/toy/paintball/blue,
/obj/item/gun/ballistic/automatic/toy/paintball,
/obj/item/gun/ballistic/automatic/toy/paintball,
/obj/item/ammo_box/magazine/toy/paintball,
/obj/item/ammo_box/magazine/toy/paintball,
/obj/item/ammo_box/magazine/toy/paintball,
/obj/item/ammo_box/magazine/toy/paintball/blue,
/obj/item/ammo_box/magazine/toy/paintball/blue,
/obj/item/ammo_box/magazine/toy/paintball/blue)
crate_name = "mixed paintball supply crate"
/datum/supply_pack/costumes_toys/costume_original
name = "Original Costume Crate"
desc = "Reenact Shakespearean plays with this assortment of outfits. Contains eight different costumes!"
@@ -2867,6 +2884,25 @@
crate_name = "original costume crate"
crate_type = /obj/structure/closet/crate/wooden
/datum/supply_pack/costumes_toys/paintball_ammo
name = "Paintball Ammo Crate"
desc = "Plenty of paintball ammo in a variety of colors."
cost = 700
contraband = TRUE
contains = list(/obj/item/ammo_box/magazine/toy/paintball,
/obj/item/ammo_box/magazine/toy/paintball,
/obj/item/ammo_box/magazine/toy/paintball,
/obj/item/ammo_box/magazine/toy/paintball/blue,
/obj/item/ammo_box/magazine/toy/paintball/blue,
/obj/item/ammo_box/magazine/toy/paintball/blue,
/obj/item/ammo_box/magazine/toy/paintball/pink,
/obj/item/ammo_box/magazine/toy/paintball/pink,
/obj/item/ammo_box/magazine/toy/paintball/purple,
/obj/item/ammo_box/magazine/toy/paintball/purple,
/obj/item/ammo_box/magazine/toy/paintball/orange,
/obj/item/ammo_box/magazine/toy/paintball/orange)
crate_name = "paintball ammo crate"
/datum/supply_pack/costumes_toys/costume
name = "Standard Costume Crate"
desc = "Supply the station's entertainers with the equipment of their trade with these Nanotrasen-approved costumes! Contains a full clown and mime outfit, along with a bike horn and a bottle of nothing."

View File

@@ -81,3 +81,83 @@
/obj/item/ammo_box/magazine/toy/smgm45/hugbox
hugbox = TRUE
//paintballs
/obj/item/ammo_box/magazine/toy/paintball
name = "paintball ammo cartridge (red)"
ammo_type = /obj/item/ammo_casing/paintball
icon_state = "paintballmag"
max_ammo = 20
/obj/item/ammo_box/magazine/toy/paintball/blue
name = "paintball ammo cartridge (blue)"
ammo_type = /obj/item/ammo_casing/paintball/blue
/obj/item/ammo_box/magazine/toy/paintball/pink
name = "paintball ammo cartridge (pink)"
ammo_type = /obj/item/ammo_casing/paintball/pink
/obj/item/ammo_box/magazine/toy/paintball/purple
name = "paintball ammo cartridge (purple)"
ammo_type = /obj/item/ammo_casing/paintball/purple
/obj/item/ammo_box/magazine/toy/paintball/orange
name = "paintball ammo cartridge (orange)"
ammo_type = /obj/item/ammo_casing/paintball/orange
/obj/item/ammo_casing/paintball
name = "paintball"
icon_state = "paintball"
desc = "A red coloured plastic ball filled with paint."
color = "#C73232"
projectile_type = /obj/projectile/bullet/paintball
/obj/item/ammo_casing/paintball/blue
desc = "A blue coloured plastic ball filled with paint."
color = "#5998FF"
projectile_type = /obj/projectile/bullet/paintball/blue
/obj/item/ammo_casing/paintball/pink
desc = "A pink coloured plastic ball filled with paint."
color = "#FF69DA"
projectile_type = /obj/projectile/bullet/paintball/pink
/obj/item/ammo_casing/paintball/purple
desc = "A purple coloured plastic ball filled with paint."
color = "#910AFF"
projectile_type = /obj/projectile/bullet/paintball/purple
/obj/item/ammo_casing/paintball/orange
desc = "An orange coloured plastic ball filled with paint."
color = "#FF9326"
projectile_type = /obj/projectile/bullet/paintball/orange
/obj/projectile/bullet/paintball
damage = 0
icon = 'icons/obj/ammo.dmi'
icon_state = "paintball-live"
color = "#C73232"
/obj/projectile/bullet/paintball/blue
color = "#5998FF"
/obj/projectile/bullet/paintball/pink
color = "#FF69DA"
/obj/projectile/bullet/paintball/purple
color = "#910AFF"
/obj/projectile/bullet/paintball/orange
color = "#FF9326"
/obj/projectile/bullet/paintball/on_hit(atom/target, blocked = FALSE)
if(iscarbon(target))
var/mob/living/carbon/human/H = target
var/image/paintoverlay = image('icons/effects/paintball.dmi')
paintoverlay.color = color
paintoverlay.icon_state = pick("1","2","3","4","5","6","7")
H.overlays += paintoverlay
to_chat(H, span_warning("You feel a sharp sting."))
H.adjustStaminaLoss(5)
else if(isturf(target))
target.color = color //paints walls that it hits with paint

View File

@@ -140,3 +140,19 @@
/obj/item/gun/ballistic/automatic/c20r/toy/unrestricted/hugbox
desc = "A bullpup two-round burst toy SMG, designated 'C-20r'. Ages 8 and up. This one feels noticably less fun..."
mag_type = /obj/item/ammo_box/magazine/toy/smgm45/hugbox
//paintballs
/obj/item/gun/ballistic/automatic/toy/paintball
name = "red paintball gun"
desc = "An entry level paintball gun. This one comes in red."
icon_state = "paintball"
mag_type = /obj/item/ammo_box/magazine/toy/paintball
mag_display = TRUE
fire_sound = 'sound/weapons/paintball.ogg'
burst_size = 2
clumsy_check = FALSE
/obj/item/gun/ballistic/automatic/toy/paintball/blue
name = "blue paintball gun"
icon_state = "paintball-blue"
desc = "An entry level paintball gun. This one comes in blue."

BIN
icons/effects/paintball.dmi Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 37 KiB

BIN
sound/weapons/paintball.ogg Normal file

Binary file not shown.