mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-14 20:23:26 +00:00
Merge pull request #3604 from CHOMPStation2/upstream-merge-12122
[MIRROR] [MIRROR] Adds caseless BB rounds for common gun types
This commit is contained in:
@@ -29,6 +29,12 @@
|
|||||||
projectile_type = /obj/item/projectile/bullet/pistol/strong
|
projectile_type = /obj/item/projectile/bullet/pistol/strong
|
||||||
matter = list(MAT_STEEL = 210)
|
matter = list(MAT_STEEL = 210)
|
||||||
|
|
||||||
|
/obj/item/ammo_casing/a357/bb
|
||||||
|
desc = "A .357 BB."
|
||||||
|
projectile_type = /obj/item/projectile/bullet/bb
|
||||||
|
matter = list(MAT_PLASTIC = 20)
|
||||||
|
caseless = TRUE
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* .38
|
* .38
|
||||||
*/
|
*/
|
||||||
@@ -51,6 +57,12 @@
|
|||||||
projectile_type = /obj/item/projectile/ion/small
|
projectile_type = /obj/item/projectile/ion/small
|
||||||
matter = list(MAT_STEEL = 130, MAT_URANIUM = 100)
|
matter = list(MAT_STEEL = 130, MAT_URANIUM = 100)
|
||||||
|
|
||||||
|
/obj/item/ammo_casing/a38/bb
|
||||||
|
desc = "A .38 BB."
|
||||||
|
projectile_type = /obj/item/projectile/bullet/bb
|
||||||
|
matter = list(MAT_PLASTIC = 20)
|
||||||
|
caseless = TRUE
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* .44
|
* .44
|
||||||
*/
|
*/
|
||||||
@@ -72,6 +84,12 @@
|
|||||||
projectile_type = /obj/item/projectile/bullet/rifle/a44rifle
|
projectile_type = /obj/item/projectile/bullet/rifle/a44rifle
|
||||||
matter = list(MAT_STEEL = 210)
|
matter = list(MAT_STEEL = 210)
|
||||||
|
|
||||||
|
/obj/item/ammo_casing/a44/bb
|
||||||
|
desc = "A .44 BB."
|
||||||
|
projectile_type = /obj/item/projectile/bullet/bb
|
||||||
|
matter = list(MAT_PLASTIC = 20)
|
||||||
|
caseless = TRUE
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* .75 (aka Gyrojet Rockets, aka admin abuse)
|
* .75 (aka Gyrojet Rockets, aka admin abuse)
|
||||||
*/
|
*/
|
||||||
@@ -101,7 +119,6 @@
|
|||||||
desc = "A 9mm hollow-point bullet casing."
|
desc = "A 9mm hollow-point bullet casing."
|
||||||
projectile_type = /obj/item/projectile/bullet/pistol/hp
|
projectile_type = /obj/item/projectile/bullet/pistol/hp
|
||||||
|
|
||||||
|
|
||||||
/obj/item/ammo_casing/a9mm/flash
|
/obj/item/ammo_casing/a9mm/flash
|
||||||
desc = "A 9mm flash shell casing."
|
desc = "A 9mm flash shell casing."
|
||||||
icon_state = "r-casing"
|
icon_state = "r-casing"
|
||||||
@@ -117,6 +134,12 @@
|
|||||||
icon_state = "r-casing"
|
icon_state = "r-casing"
|
||||||
projectile_type = /obj/item/projectile/bullet/practice
|
projectile_type = /obj/item/projectile/bullet/practice
|
||||||
|
|
||||||
|
/obj/item/ammo_casing/a9mm/bb
|
||||||
|
desc = "A 9mm BB."
|
||||||
|
projectile_type = /obj/item/projectile/bullet/bb
|
||||||
|
matter = list(MAT_PLASTIC = 20)
|
||||||
|
caseless = TRUE
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* .45
|
* .45
|
||||||
*/
|
*/
|
||||||
@@ -163,6 +186,12 @@
|
|||||||
projectile_type = /obj/item/projectile/bullet/pistol/medium/hp
|
projectile_type = /obj/item/projectile/bullet/pistol/medium/hp
|
||||||
matter = list(MAT_STEEL = 60, MAT_PLASTIC = 15)
|
matter = list(MAT_STEEL = 60, MAT_PLASTIC = 15)
|
||||||
|
|
||||||
|
/obj/item/ammo_casing/a45/bb
|
||||||
|
desc = "A .45 BB."
|
||||||
|
projectile_type = /obj/item/projectile/bullet/bb
|
||||||
|
matter = list(MAT_PLASTIC = 20)
|
||||||
|
caseless = TRUE
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 10mm
|
* 10mm
|
||||||
*/
|
*/
|
||||||
@@ -180,6 +209,12 @@
|
|||||||
icon_state = "empcasing"
|
icon_state = "empcasing"
|
||||||
matter = list(MAT_STEEL = 130, MAT_URANIUM = 100)
|
matter = list(MAT_STEEL = 130, MAT_URANIUM = 100)
|
||||||
|
|
||||||
|
/obj/item/ammo_casing/a10mm/bb
|
||||||
|
desc = "A 10mm BB."
|
||||||
|
projectile_type = /obj/item/projectile/bullet/bb
|
||||||
|
matter = list(MAT_PLASTIC = 20)
|
||||||
|
caseless = TRUE
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 12g (aka shotgun ammo)
|
* 12g (aka shotgun ammo)
|
||||||
*/
|
*/
|
||||||
@@ -256,6 +291,11 @@
|
|||||||
projectile_type = /obj/item/projectile/scatter/flechette
|
projectile_type = /obj/item/projectile/scatter/flechette
|
||||||
matter = list(MAT_STEEL = 360, MAT_PLASTEEL = 100)
|
matter = list(MAT_STEEL = 360, MAT_PLASTEEL = 100)
|
||||||
|
|
||||||
|
/obj/item/ammo_casing/a12g/bb
|
||||||
|
desc = "A shotgun BB shell."
|
||||||
|
projectile_type = /obj/item/projectile/bullet/pellet/shotgun/bb // Shotgun
|
||||||
|
matter = list(MAT_PLASTIC = 120) // 6 pellets
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 7.62mm
|
* 7.62mm
|
||||||
*/
|
*/
|
||||||
@@ -291,6 +331,12 @@
|
|||||||
desc = "A 7.62mm hunting bullet casing."
|
desc = "A 7.62mm hunting bullet casing."
|
||||||
projectile_type = /obj/item/projectile/bullet/rifle/a762/hunter
|
projectile_type = /obj/item/projectile/bullet/rifle/a762/hunter
|
||||||
|
|
||||||
|
/obj/item/ammo_casing/a762/bb
|
||||||
|
desc = "A 7.62mm BB."
|
||||||
|
projectile_type = /obj/item/projectile/bullet/bb
|
||||||
|
matter = list(MAT_PLASTIC = 20)
|
||||||
|
caseless = TRUE
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 14.5mm (anti-materiel rifle round)
|
* 14.5mm (anti-materiel rifle round)
|
||||||
*/
|
*/
|
||||||
@@ -345,6 +391,12 @@
|
|||||||
desc = "A 5.45mm hunting bullet casing."
|
desc = "A 5.45mm hunting bullet casing."
|
||||||
projectile_type = /obj/item/projectile/bullet/rifle/a545/hunter
|
projectile_type = /obj/item/projectile/bullet/rifle/a545/hunter
|
||||||
|
|
||||||
|
/obj/item/ammo_casing/a545/bb
|
||||||
|
desc = "A 5.45mm BB."
|
||||||
|
projectile_type = /obj/item/projectile/bullet/bb
|
||||||
|
matter = list(MAT_PLASTIC = 20)
|
||||||
|
caseless = TRUE
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 5mm Caseless
|
* 5mm Caseless
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -480,7 +480,7 @@
|
|||||||
P.dispersion = disp
|
P.dispersion = disp
|
||||||
|
|
||||||
P.shot_from = src.name
|
P.shot_from = src.name
|
||||||
P.silenced = silenced
|
P.silenced |= silenced // A silent bullet (e.g., BBs) can be fired quietly from any gun.
|
||||||
|
|
||||||
P.old_style_target(target)
|
P.old_style_target(target)
|
||||||
P.fire()
|
P.fire()
|
||||||
|
|||||||
@@ -84,8 +84,8 @@
|
|||||||
//Misc/Polaris variables
|
//Misc/Polaris variables
|
||||||
|
|
||||||
var/def_zone = "" //Aiming at
|
var/def_zone = "" //Aiming at
|
||||||
var/mob/firer = null//Who shot it
|
var/mob/firer = null //Who shot it
|
||||||
var/silenced = 0 //Attack message
|
var/silenced = FALSE //Attack message
|
||||||
var/shot_from = "" // name of the object which shot us
|
var/shot_from = "" // name of the object which shot us
|
||||||
|
|
||||||
var/accuracy = 0
|
var/accuracy = 0
|
||||||
@@ -756,7 +756,7 @@
|
|||||||
/obj/item/projectile/proc/launch_from_gun(atom/target, target_zone, mob/user, params, angle_override, forced_spread, obj/item/weapon/gun/launcher)
|
/obj/item/projectile/proc/launch_from_gun(atom/target, target_zone, mob/user, params, angle_override, forced_spread, obj/item/weapon/gun/launcher)
|
||||||
|
|
||||||
shot_from = launcher.name
|
shot_from = launcher.name
|
||||||
silenced = launcher.silenced
|
silenced |= launcher.silenced // Silent bullets (e.g., BBs) are always silent
|
||||||
if(user)
|
if(user)
|
||||||
firer = user
|
firer = user
|
||||||
|
|
||||||
|
|||||||
@@ -325,3 +325,23 @@
|
|||||||
/obj/item/projectile/bullet/blank/cap/process()
|
/obj/item/projectile/bullet/blank/cap/process()
|
||||||
loc = null
|
loc = null
|
||||||
qdel(src)
|
qdel(src)
|
||||||
|
|
||||||
|
/* BB Rounds */
|
||||||
|
/obj/item/projectile/bullet/bb // Generic single BB
|
||||||
|
name = "BB"
|
||||||
|
damage = 0
|
||||||
|
agony = 0
|
||||||
|
embed_chance = 0
|
||||||
|
sharp = FALSE
|
||||||
|
silenced = TRUE
|
||||||
|
|
||||||
|
/obj/item/projectile/bullet/pellet/shotgun/bb // Shotgun
|
||||||
|
name = "BB"
|
||||||
|
damage = 0
|
||||||
|
agony = 0
|
||||||
|
embed_chance = 0
|
||||||
|
sharp = FALSE
|
||||||
|
pellets = 6
|
||||||
|
range_step = 1
|
||||||
|
spread_step = 10
|
||||||
|
silenced = TRUE
|
||||||
Reference in New Issue
Block a user