mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Donk Co. Toys
This commit is contained in:
@@ -246,3 +246,39 @@
|
||||
magazine_icondata_keys[M.type] = icon_keys
|
||||
magazine_icondata_states[M.type] = ammo_states
|
||||
|
||||
/*
|
||||
* Ammo Boxes
|
||||
*/
|
||||
|
||||
/obj/item/ammo_magazine/ammo_box
|
||||
name = "ammo box"
|
||||
desc = "A box that holds some kind of ammo."
|
||||
icon = 'icons/obj/ammo_boxes.dmi'
|
||||
icon_state = "pistol"
|
||||
slot_flags = null //You can't fit a box on your belt
|
||||
item_state = "paper"
|
||||
matter = null
|
||||
throwforce = 3
|
||||
throw_speed = 5
|
||||
throw_range = 12
|
||||
preserve_item = 1
|
||||
caliber = ".357"
|
||||
drop_sound = 'sound/items/drop/matchbox.ogg'
|
||||
pickup_sound = 'sound/items/pickup/matchbox.ogg'
|
||||
|
||||
/obj/item/ammo_magazine/ammo_box/AltClick(mob/user)
|
||||
if(can_remove_ammo)
|
||||
if(isliving(user) && Adjacent(user))
|
||||
if(stored_ammo.len)
|
||||
var/obj/item/ammo_casing/C = stored_ammo[stored_ammo.len]
|
||||
stored_ammo-=C
|
||||
user.put_in_hands(C)
|
||||
user.visible_message("\The [user] removes \a [C] from [src].", "<span class='notice'>You remove \a [C] from [src].</span>")
|
||||
update_icon()
|
||||
return
|
||||
..()
|
||||
|
||||
/obj/item/ammo_magazine/ammo_box/examine(mob/user)
|
||||
. = ..()
|
||||
|
||||
. += to_chat(usr, "<span class='notice'>Alt-click to extract contents</span>")
|
||||
58
code/modules/projectiles/ammunition/ammo_boxes.dm
Normal file
58
code/modules/projectiles/ammunition/ammo_boxes.dm
Normal file
@@ -0,0 +1,58 @@
|
||||
/************************************************************************/
|
||||
/*
|
||||
# An explaination of the naming format for guns and ammo:
|
||||
#
|
||||
# a = Ammo, as in individual rounds of ammunition.
|
||||
# b = Box, intended to have ammo taken out one at a time by hand.
|
||||
# c = Clips, intended to reload magazines or guns quickly.
|
||||
# m = Magazine, intended to hold rounds of ammo.
|
||||
# s = Speedloaders, intended to reload guns quickly.
|
||||
#
|
||||
# Use this format, followed by the caliber. For example, a shotgun's caliber
|
||||
# variable is "12g" as a result. Ergo, a shotgun round's path would have "a12g",
|
||||
# or a magazine with shotgun shells would be "m12g" instead. To avoid confusion
|
||||
# for developers and in-game admins spawning these items, stick to this format.
|
||||
# Likewise, when creating new rounds, the caliber variable should match whatever
|
||||
# the name says.
|
||||
#
|
||||
# This comment is copied in rounds.dm and magazines.dm as well.
|
||||
#
|
||||
# Also, to remove bullets from ammo boxes, use Alt-Click on the box.
|
||||
*/
|
||||
/************************************************************************/
|
||||
|
||||
/*
|
||||
* Foam
|
||||
*/
|
||||
|
||||
/obj/item/ammo_magazine/ammo_box/foam
|
||||
name = "\improper Donk-Soft ammo box"
|
||||
desc = "Contains Donk-Soft foam darts. It's Donk or Don't! Ages 8 and up."
|
||||
icon = 'icons/obj/gun_toy.dmi'
|
||||
icon_state = "foambox"
|
||||
caliber = "foam"
|
||||
ammo_type = /obj/item/ammo_casing/afoam_dart
|
||||
matter = list(MAT_PLASTIC = 1800)
|
||||
max_ammo = 30
|
||||
multiple_sprites = null
|
||||
|
||||
/obj/item/ammo_magazine/ammo_box/foam/riot
|
||||
name = "\improper Donk-Soft riot ammo box"
|
||||
desc = "Contains Donk-Soft riot darts. It's Donk or Don't! Ages 18 and up."
|
||||
icon_state = "foambox_riot"
|
||||
matter = list(MAT_STEEL = 5040, MAT_PLASTIC = 1800)
|
||||
|
||||
/*
|
||||
* Cap
|
||||
*/
|
||||
|
||||
/obj/item/ammo_magazine/ammo_box/cap
|
||||
name = "\improper AlliCo SNAP! Caps"
|
||||
desc = "A box of spare caps for capguns. Ages 8 and up."
|
||||
icon = 'icons/obj/gun_toy.dmi'
|
||||
icon_state = "capbox"
|
||||
caliber = "caps"
|
||||
ammo_type = /obj/item/ammo_casing/cap
|
||||
matter = list(MAT_STEEL = 2040)
|
||||
max_ammo = 24
|
||||
multiple_sprites = null
|
||||
@@ -22,7 +22,42 @@
|
||||
*/
|
||||
/************************************************************************/
|
||||
|
||||
///////// Foam /////////
|
||||
|
||||
/obj/item/ammo_magazine/mfoam_dart/pistol
|
||||
name = "\improper Donk-Soft pistol magazine"
|
||||
icon = 'icons/obj/gun_toy.dmi'
|
||||
icon_state = "toy"
|
||||
mag_type = MAGAZINE
|
||||
ammo_type = /obj/item/ammo_casing/afoam_dart
|
||||
matter = list(MAT_PLASTIC = 250)
|
||||
caliber = "foam"
|
||||
max_ammo = 9
|
||||
multiple_sprites = 1
|
||||
|
||||
/obj/item/ammo_magazine/mfoam_dart/pistol/riot
|
||||
ammo_type = /obj/item/ammo_casing/afoam_dart/riot
|
||||
|
||||
/obj/item/ammo_magazine/mfoam_dart/pistol/empty
|
||||
initial_ammo = 0
|
||||
|
||||
/obj/item/ammo_magazine/mfoam_dart/smg
|
||||
name = "\improper Donk-Soft smg magazine"
|
||||
icon = 'icons/obj/gun_toy.dmi'
|
||||
icon_state = "toysmg"
|
||||
mag_type = MAGAZINE
|
||||
ammo_type = /obj/item/ammo_casing/afoam_dart
|
||||
matter = list(MAT_PLASTIC = 250)
|
||||
caliber = "foam"
|
||||
max_ammo = 20
|
||||
multiple_sprites = 1
|
||||
|
||||
/obj/item/ammo_magazine/mfoam_dart/smg/riot
|
||||
ammo_type = /obj/item/ammo_casing/afoam_dart/riot
|
||||
matter = list(MAT_PLASTIC = 1260, MAT_PLASTIC = 250)
|
||||
|
||||
/obj/item/ammo_magazine/mfoam_dart/smg/empty
|
||||
initial_ammo = 0
|
||||
|
||||
///////// .357 /////////
|
||||
|
||||
|
||||
@@ -19,6 +19,26 @@
|
||||
*/
|
||||
/************************************************************************/
|
||||
|
||||
/*
|
||||
* Foam
|
||||
*/
|
||||
|
||||
/obj/item/ammo_casing/afoam_dart
|
||||
name = "foam dart"
|
||||
desc = "It's Donk or Don't! Ages 8 and up."
|
||||
projectile_type = /obj/item/projectile/bullet/foam_dart
|
||||
matter = list(MAT_PLASTIC = 60)
|
||||
caliber = "foam"
|
||||
icon = 'icons/obj/gun_toy.dmi'
|
||||
icon_state = "foamdart"
|
||||
caseless = 1
|
||||
|
||||
/obj/item/ammo_casing/afoam_dart/riot
|
||||
name = "riot foam dart"
|
||||
desc = "Whose smart idea was it to use toys as crowd control? Ages 18 and up."
|
||||
matter = list(MAT_STEEL = 210, MAT_PLASTIC = 60)
|
||||
icon_state = "foamdart_riot"
|
||||
|
||||
/*
|
||||
* .357
|
||||
*/
|
||||
@@ -427,12 +447,13 @@
|
||||
|
||||
/obj/item/ammo_casing/cap
|
||||
name = "cap"
|
||||
desc = "A cap for children toys."
|
||||
desc = "A cap for children toys. Ages 8 and up."
|
||||
caliber = "caps"
|
||||
icon_state = "r-casing"
|
||||
color = "#FF0000"
|
||||
projectile_type = /obj/item/projectile/bullet/pistol/cap
|
||||
icon = 'icons/obj/gun_toy.dmi'
|
||||
icon_state = "cap"
|
||||
projectile_type = /obj/item/projectile/bullet/cap
|
||||
matter = list(MAT_STEEL = 85)
|
||||
caseless = 1
|
||||
|
||||
/obj/item/ammo_casing/spent // For simple hostile mobs only, so they don't cough up usable bullets when firing. This is for literally nothing else.
|
||||
icon_state = "s-casing-spent"
|
||||
|
||||
@@ -261,41 +261,6 @@
|
||||
accuracy = 0
|
||||
scoped_accuracy = 20
|
||||
|
||||
////////Laser Tag////////////////////
|
||||
|
||||
/obj/item/weapon/gun/energy/lasertag
|
||||
name = "laser tag gun"
|
||||
item_state = "laser"
|
||||
desc = "Standard issue weapon of the Imperial Guard"
|
||||
origin_tech = list(TECH_COMBAT = 1, TECH_MAGNET = 2)
|
||||
matter = list(MAT_STEEL = 2000)
|
||||
projectile_type = /obj/item/projectile/beam/lasertag/blue
|
||||
cell_type = /obj/item/weapon/cell/device/weapon/recharge
|
||||
battery_lock = 1
|
||||
var/required_vest
|
||||
|
||||
/obj/item/weapon/gun/energy/lasertag/special_check(var/mob/living/carbon/human/M)
|
||||
if(ishuman(M))
|
||||
if(!istype(M.wear_suit, required_vest))
|
||||
to_chat(M, "<span class='warning'>You need to be wearing your laser tag vest!</span>")
|
||||
return 0
|
||||
return ..()
|
||||
|
||||
/obj/item/weapon/gun/energy/lasertag/blue
|
||||
icon_state = "bluetag"
|
||||
item_state = "bluetag"
|
||||
projectile_type = /obj/item/projectile/beam/lasertag/blue
|
||||
required_vest = /obj/item/clothing/suit/bluetag
|
||||
|
||||
/obj/item/weapon/gun/energy/lasertag/red
|
||||
icon_state = "redtag"
|
||||
item_state = "redtag"
|
||||
projectile_type = /obj/item/projectile/beam/lasertag/red
|
||||
required_vest = /obj/item/clothing/suit/redtag
|
||||
|
||||
/obj/item/weapon/gun/energy/lasertag/omni
|
||||
projectile_type = /obj/item/projectile/beam/lasertag/omni
|
||||
|
||||
// Laser scattergun, proof of concept.
|
||||
|
||||
/obj/item/weapon/gun/energy/lasershotgun
|
||||
|
||||
@@ -149,18 +149,6 @@
|
||||
flick("deckard-reload",src)
|
||||
..()
|
||||
|
||||
/obj/item/weapon/gun/projectile/revolver/capgun
|
||||
name = "cap gun"
|
||||
desc = "Looks almost like the real thing! Ages 8 and up."
|
||||
icon_state = "revolver"
|
||||
item_state = "revolver"
|
||||
caliber = "caps"
|
||||
origin_tech = list(TECH_COMBAT = 1, TECH_MATERIAL = 1)
|
||||
handle_casings = CYCLE_CASINGS
|
||||
max_shells = 7
|
||||
ammo_type = /obj/item/ammo_casing/cap
|
||||
projectile_type = /obj/item/projectile/bullet/pistol/strong
|
||||
|
||||
/obj/item/weapon/gun/projectile/revolver/judge
|
||||
name = "\"The Judge\""
|
||||
desc = "A revolving hand-shotgun by Jindal Arms that packs the power of a 12 guage in the palm of your hand (if you don't break your wrist). Uses 12g rounds."
|
||||
|
||||
251
code/modules/projectiles/guns/toy.dm
Normal file
251
code/modules/projectiles/guns/toy.dm
Normal file
@@ -0,0 +1,251 @@
|
||||
/* Toys Guns!
|
||||
*
|
||||
* Contains:
|
||||
* Cap Gun
|
||||
* Shotgun
|
||||
* Pistol
|
||||
* N99 Pistol
|
||||
* Levergun
|
||||
* Revolver
|
||||
* Big Iron
|
||||
* Crossbow
|
||||
* Crossbow (Halloween)
|
||||
* Sawn Off
|
||||
* SMG
|
||||
* Laser Tag
|
||||
*/
|
||||
|
||||
/*
|
||||
* Cap Gun
|
||||
*/
|
||||
/obj/item/weapon/gun/projectile/revolver/capgun
|
||||
name = "cap gun"
|
||||
desc = "Looks almost like the real thing! Ages 8 and up."
|
||||
icon = 'icons/obj/gun_toy.dmi'
|
||||
icon_state = "cap_gun"
|
||||
item_state = "revolver"
|
||||
caliber = "caps"
|
||||
origin_tech = list(TECH_COMBAT = 1, TECH_MATERIAL = 1)
|
||||
ammo_type = /obj/item/ammo_casing/cap
|
||||
projectile_type = /obj/item/projectile/bullet/cap
|
||||
matter = list(MAT_STEEL = 1000)
|
||||
handle_casings = null
|
||||
recoil = 1 //it's a toy
|
||||
|
||||
/*
|
||||
* Shotgun
|
||||
*/
|
||||
/obj/item/weapon/gun/projectile/shotgun/pump/toy
|
||||
name = "\improper Donk-Soft shotgun"
|
||||
desc = "Donk-Soft foam shotgun! It's Donk or Don't! Ages 8 and up."
|
||||
icon = 'icons/obj/gun_toy.dmi'
|
||||
icon_state = "shotgun"
|
||||
item_state = "shotgun"
|
||||
max_shells = 6
|
||||
w_class = ITEMSIZE_LARGE
|
||||
force = 2
|
||||
slot_flags = null
|
||||
caliber = "foam"
|
||||
origin_tech = list(TECH_COMBAT = 1, TECH_MATERIAL = 1)
|
||||
load_method = SINGLE_CASING
|
||||
ammo_type = /obj/item/ammo_casing/afoam_dart
|
||||
projectile_type = /obj/item/projectile/bullet/foam_dart
|
||||
matter = list(MAT_PLASTIC = 2000)
|
||||
handle_casings = null
|
||||
recoil = null //it's a toy
|
||||
|
||||
/*
|
||||
* Pistol
|
||||
*/
|
||||
/obj/item/weapon/gun/projectile/pistol/toy
|
||||
name = "\improper Donk-Soft pistol"
|
||||
desc = "Donk-Soft foam pistol! It's Donk or Don't! Ages 8 and up."
|
||||
icon = 'icons/obj/gun_toy.dmi'
|
||||
icon_state = "pistol"
|
||||
item_state = "gun"
|
||||
magazine_type = /obj/item/ammo_magazine/mfoam_dart/pistol
|
||||
allowed_magazines = list(/obj/item/ammo_magazine/mfoam_dart/pistol)
|
||||
projectile_type = /obj/item/projectile/bullet/foam_dart
|
||||
caliber = "foam"
|
||||
origin_tech = list(TECH_COMBAT = 1, TECH_MATERIAL = 1)
|
||||
load_method = MAGAZINE
|
||||
matter = list(MAT_PLASTIC = 1000)
|
||||
recoil = null //it's a toy
|
||||
|
||||
/obj/item/weapon/gun/projectile/pistol/toy/update_icon()
|
||||
if(ammo_magazine)
|
||||
icon_state = initial(icon_state)
|
||||
else
|
||||
icon_state = "[initial(icon_state)]-e"
|
||||
|
||||
/*
|
||||
* N99 Pistol
|
||||
*/
|
||||
/obj/item/weapon/gun/projectile/pistol/toy/n99
|
||||
name = "\improper Donk-Soft commemorative pistol"
|
||||
desc = "A special made Donk-Soft pistol to promote 'Radius: Legend of the Demon Core', a popular post-apocolyptic TV series."
|
||||
icon_state = "n99"
|
||||
item_state = "gun"
|
||||
|
||||
/obj/item/weapon/gun/projectile/pistol/toy/n99/update_icon()
|
||||
if(ammo_magazine)
|
||||
icon_state = initial(icon_state)
|
||||
else
|
||||
icon_state = "[initial(icon_state)]-e"
|
||||
|
||||
/*
|
||||
* Levergun
|
||||
*/
|
||||
/obj/item/weapon/gun/projectile/shotgun/pump/toy/levergun
|
||||
name = "\improper Donk-Soft levergun"
|
||||
desc = "Donk-Soft foam levergun! Time to cowboy up! Ages 8 and up."
|
||||
icon_state = "leveraction"
|
||||
item_state = "leveraction"
|
||||
max_shells = 5
|
||||
pump_animation = "leveraction-cycling"
|
||||
|
||||
/*
|
||||
* Revolver
|
||||
*/
|
||||
/obj/item/weapon/gun/projectile/revolver/toy
|
||||
name = "\improper Donk-Soft revolver"
|
||||
desc = "Donk-Soft foam revolver! Time to cowboy up! Ages 8 and up."
|
||||
icon = 'icons/obj/gun_toy.dmi'
|
||||
icon_state = "revolver"
|
||||
item_state = "revolver"
|
||||
caliber = "foam"
|
||||
ammo_type = /obj/item/ammo_casing/afoam_dart
|
||||
projectile_type = /obj/item/projectile/bullet/foam_dart
|
||||
origin_tech = list(TECH_COMBAT = 1, TECH_MATERIAL = 1)
|
||||
load_method = SINGLE_CASING
|
||||
max_shells = 6
|
||||
matter = list(MAT_PLASTIC = 1000)
|
||||
handle_casings = null
|
||||
recoil = null //it's a toy
|
||||
|
||||
/*
|
||||
* Big Iron
|
||||
*/
|
||||
/obj/item/weapon/gun/projectile/revolver/toy/big_iron
|
||||
name = "\improper Donk-Soft big iron"
|
||||
desc = "A special made Donk-Soft pistol to promote 'A Fistful of Phoron', a popular frontier novel series."
|
||||
icon_state = "big_iron"
|
||||
item_state = "revolver"
|
||||
|
||||
/*
|
||||
* Crossbow
|
||||
*/
|
||||
/obj/item/weapon/gun/projectile/revolver/toy/crossbow
|
||||
name = "\improper Donk-Soft crossbow"
|
||||
desc = "Donk-Soft foam crossbow! It's Donk or Don't! Ages 8 and up."
|
||||
icon = 'icons/obj/gun_toy.dmi'
|
||||
icon_state = "foamcrossbow"
|
||||
item_state = "foamcrossbow"
|
||||
max_shells = 5
|
||||
|
||||
/*
|
||||
* Crossbow (Halloween)
|
||||
*/
|
||||
/obj/item/weapon/gun/projectile/revolver/toy/crossbow/halloween
|
||||
name = "\improper Donk-Soft special edition crossbow"
|
||||
desc = "A special edition Donk-Soft crossbow! Made special for your Halloween cosplay. It's Donk or Don't! Ages 8 and up."
|
||||
icon = 'icons/obj/gun_toy.dmi'
|
||||
icon_state = "foamcrossbow_halloween"
|
||||
item_state = "foamcrossbow_halloween"
|
||||
max_shells = 5
|
||||
|
||||
/*
|
||||
* Sawn Off
|
||||
*/
|
||||
/obj/item/weapon/gun/projectile/revolver/toy/sawnoff //revolver code just because it's easier
|
||||
name = "\improper Donk-Soft sawn off shotgun"
|
||||
desc = "Donk-Soft foam sawn off! It's Donk or Don't! Ages 8 and up."
|
||||
icon = 'icons/obj/gun_toy.dmi'
|
||||
icon_state = "sawnshotgun"
|
||||
item_state = "dshotgun"
|
||||
max_shells = 2
|
||||
w_class = ITEMSIZE_NORMAL
|
||||
matter = list(MAT_PLASTIC = 1500)
|
||||
|
||||
/*
|
||||
* SMG
|
||||
*/
|
||||
/obj/item/weapon/gun/projectile/automatic/toy
|
||||
name = "\improper Donk-Soft SMG"
|
||||
desc = "Donk-Soft foam SMG! It's Donk or Don't! Ages 8 and up."
|
||||
icon = 'icons/obj/gun_toy.dmi'
|
||||
icon_state = "smg"
|
||||
caliber = "foam"
|
||||
w_class = ITEMSIZE_NORMAL
|
||||
load_method = MAGAZINE
|
||||
origin_tech = list(TECH_COMBAT = 1, TECH_MATERIAL = 1)
|
||||
slot_flags = SLOT_BELT
|
||||
magazine_type = /obj/item/ammo_magazine/mfoam_dart/smg
|
||||
allowed_magazines = list(/obj/item/ammo_magazine/mfoam_dart/smg)
|
||||
projectile_type = /obj/item/projectile/bullet/foam_dart
|
||||
matter = list(MAT_PLASTIC = 1500)
|
||||
recoil = null //it's a toy
|
||||
|
||||
firemodes = list(
|
||||
list(mode_name="semiauto", burst=1, fire_delay=0, move_delay=null, burst_accuracy=null, dispersion=null),
|
||||
list(mode_name="3-round bursts", burst=3, fire_delay=null, move_delay=2, burst_accuracy=list(0,-2,-2), dispersion=null)
|
||||
)
|
||||
|
||||
/obj/item/weapon/gun/projectile/automatic/toy/riot
|
||||
magazine_type = /obj/item/ammo_magazine/mfoam_dart/smg/riot
|
||||
|
||||
/obj/item/weapon/gun/projectile/automatic/toy/update_icon()
|
||||
if(ammo_magazine)
|
||||
icon_state = initial(icon_state)
|
||||
else
|
||||
icon_state = "[initial(icon_state)]-e"
|
||||
|
||||
/*
|
||||
* Laser Tag
|
||||
*/
|
||||
/obj/item/weapon/gun/energy/lasertag
|
||||
name = "laser tag gun"
|
||||
desc = "Standard issue weapon of the Imperial Guard"
|
||||
icon = 'icons/obj/gun_toy.dmi'
|
||||
item_state = "omnitag"
|
||||
item_state = "retro"
|
||||
origin_tech = list(TECH_COMBAT = 1, TECH_MAGNET = 2)
|
||||
matter = list(MAT_STEEL = 2000)
|
||||
projectile_type = /obj/item/projectile/beam/lasertag/blue
|
||||
cell_type = /obj/item/weapon/cell/device/weapon/recharge
|
||||
battery_lock = 1
|
||||
var/required_vest
|
||||
|
||||
/obj/item/weapon/gun/energy/lasertag/special_check(var/mob/living/carbon/human/M)
|
||||
if(ishuman(M))
|
||||
if(!istype(M.wear_suit, required_vest))
|
||||
to_chat(M, "<span class='warning'>You need to be wearing your laser tag vest!</span>")
|
||||
return 0
|
||||
return ..()
|
||||
|
||||
/obj/item/weapon/gun/energy/lasertag/blue
|
||||
icon_state = "bluetag"
|
||||
item_state = "bluetag"
|
||||
projectile_type = /obj/item/projectile/beam/lasertag/blue
|
||||
required_vest = /obj/item/clothing/suit/bluetag
|
||||
|
||||
/obj/item/weapon/gun/energy/lasertag/blue/sub
|
||||
name = "Brigader Sidearm"
|
||||
desc = "A laser tag replica of the standard issue weapon for the Spacer Union Brigade from the hit series Spacer Trail (Blue Team)."
|
||||
icon_state = "bluetwo"
|
||||
item_state = "retro"
|
||||
|
||||
/obj/item/weapon/gun/energy/lasertag/red
|
||||
icon_state = "redtag"
|
||||
item_state = "redtag"
|
||||
projectile_type = /obj/item/projectile/beam/lasertag/red
|
||||
required_vest = /obj/item/clothing/suit/redtag
|
||||
|
||||
/obj/item/weapon/gun/energy/lasertag/red/dom
|
||||
name = "Mu'tu'bi sidearm"
|
||||
desc = "A laser tag replica of the Mu'tu'bi sidearm from the hit series Spacer Trail (Red Team)."
|
||||
icon_state = "redtwo"
|
||||
item_state = "retro"
|
||||
|
||||
/obj/item/weapon/gun/energy/lasertag/omni
|
||||
projectile_type = /obj/item/projectile/beam/lasertag/omni
|
||||
@@ -322,10 +322,6 @@
|
||||
embed_chance = 0
|
||||
sharp = FALSE
|
||||
|
||||
/obj/item/projectile/bullet/blank/cap/process()
|
||||
loc = null
|
||||
qdel(src)
|
||||
|
||||
/* BB Rounds */
|
||||
/obj/item/projectile/bullet/bb // Generic single BB
|
||||
name = "BB"
|
||||
@@ -344,4 +340,54 @@
|
||||
pellets = 6
|
||||
range_step = 1
|
||||
spread_step = 10
|
||||
silenced = TRUE
|
||||
silenced = TRUE
|
||||
|
||||
/* toy projectiles */
|
||||
/obj/item/projectile/bullet/cap
|
||||
name = "cap"
|
||||
desc = "SNAP!"
|
||||
damage = 0 // It's a damn toy.
|
||||
embed_chance = 0
|
||||
nodamage = TRUE
|
||||
sharp = FALSE
|
||||
damage_type = HALLOSS
|
||||
impact_effect_type = null
|
||||
fire_sound = 'sound/effects/snap.ogg'
|
||||
combustion = FALSE
|
||||
|
||||
/obj/item/projectile/bullet/cap/process()
|
||||
loc = null
|
||||
qdel(src)
|
||||
|
||||
/obj/item/projectile/bullet/foam_dart
|
||||
name = "foam dart"
|
||||
desc = "I hope you're wearing eye protection."
|
||||
damage = 0 // It's a damn toy.
|
||||
embed_chance = 0
|
||||
nodamage = TRUE
|
||||
sharp = FALSE
|
||||
damage_type = HALLOSS
|
||||
impact_effect_type = null
|
||||
fire_sound = 'sound/items/syringeproj.ogg'
|
||||
combustion = FALSE
|
||||
icon = 'icons/obj/gun_toy.dmi'
|
||||
icon_state = "foamdart_proj"
|
||||
range = 15
|
||||
|
||||
/obj/item/projectile/bullet/foam_dart/on_impact(var/atom/A)
|
||||
. = ..()
|
||||
var/turf/T = get_turf(loc)
|
||||
if(istype(T))
|
||||
new /obj/item/ammo_casing/afoam_dart(get_turf(loc))
|
||||
|
||||
/obj/item/projectile/bullet/foam_dart/on_range(var/atom/A)
|
||||
. = ..()
|
||||
var/turf/T = get_turf(loc)
|
||||
if(istype(T))
|
||||
new /obj/item/ammo_casing/afoam_dart(get_turf(loc))
|
||||
|
||||
/obj/item/projectile/bullet/foam_dart/riot
|
||||
name = "riot foam dart"
|
||||
desc = "Whose smart idea was it to use toys as crowd control? Ages 18 and up."
|
||||
agony = 50
|
||||
icon_state = "foamdart_riot_proj"
|
||||
Reference in New Issue
Block a user