Adds a Collection of Spent Ballistic Casings With Random Rotation and Offsets (#26958)

* Update trash.dm

* Creation

* Update ussp.dmm

* Update trash.dm

* Update code/game/objects/items/trash.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Signed-off-by: CRUNCH <143041327+Fordoxia@users.noreply.github.com>

* Update trash_spawners.dm

---------

Signed-off-by: CRUNCH <143041327+Fordoxia@users.noreply.github.com>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
This commit is contained in:
CRUNCH
2024-10-22 10:24:40 +01:00
committed by GitHub
parent 2049cf06c3
commit 6106bafc21
3 changed files with 93 additions and 60 deletions
+61 -8
View File
@@ -17,6 +17,9 @@
return TRUE
return ..()
/obj/item/trash/attack(mob/M as mob, mob/living/user as mob)
return
/obj/item/trash/raisins
name = "4no raisins"
icon_state= "4no_raisins"
@@ -117,12 +120,6 @@
name = "bread tube"
icon_state = "tastybread"
/obj/item/trash/spentcasing
icon = 'icons/obj/ammo.dmi'
name = "bullet casing"
desc = "A spent bullet casing. Smells like cordite."
icon_state = "gshell"
/obj/item/trash/tapetrash
name = "old duct tape"
icon_state = "tape"
@@ -134,5 +131,61 @@
icon_state = "popsicle_stick_s"
desc = "Still tastes sweet."
/obj/item/trash/attack(mob/M as mob, mob/living/user as mob)
return
// Ammo casings
/obj/item/trash/spentcasing
icon = 'icons/obj/ammo.dmi'
name = "arbitrary spent casing item"
desc = "If you can see this and didn't spawn it, make an issue report on GitHub."
icon_state = "gshell"
/obj/item/trash/spentcasing/Initialize(mapload)
. = ..()
pixel_x = rand(-10, 10)
pixel_y = rand(-10, 10)
transform = turn(transform, rand(0, 360))
/obj/item/trash/spentcasing/shotgun
name = "spent buckshot shell"
desc = "A spent shotgun shell. It smells like cordite."
icon_state = "gshell"
/obj/item/trash/spentcasing/shotgun/rubbershot
name = "spent rubbershot shell"
desc = "A spent shotgun shell. It smells like cordite and singed rubber."
icon_state = "cshell"
/obj/item/trash/spentcasing/shotgun/beanbag
name = "spent beanbag shell"
icon_state = "bshell"
/obj/item/trash/spentcasing/shotgun/slug
name = "spent slug shell"
icon_state = "blshell"
/obj/item/trash/spentcasing/shotgun/dragonsbreath
name = "spent dragonsbreath shell"
desc = "A spent shotgun shell. It smells like cordite, burnt plastic, and a hint of petroleum."
icon_state = "ishell"
/obj/item/trash/spentcasing/shotgun/stun
name = "spent stun shell"
icon_state = "stunshell"
/obj/item/trash/spentcasing/bullet
name = "spent bullet casing"
desc = "A spent bullet casing. It smells of brass and cordite."
icon_state = "s-casing"
/obj/item/trash/spentcasing/bullet/medium
name = "spent large bullet casing"
desc = "A spent high-caliber bullet casing. It smells of brass and cordite."
icon_state = "762-casing"
/obj/item/trash/spentcasing/bullet/large
name = "spent .50 BMG bullet casing"
desc = "A spent .50 BMG bullet casing. It smells of brass and cordite."
icon_state = ".50"
/obj/item/trash/spentcasing/bullet/lasershot
desc = "A spent IK-series single-use lasershot cell. It smells of burnt plastic with a metallic-chemical undertone."
icon_state = "lasercasing"