Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 29dc4a2

Browse files
authored
Gives the Vatra M38 a 10% chance to spawn in as a silver plated version (#22632)
* think itll work? * he doesnt exist
1 parent 2cd3407 commit 29dc4a2

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

code/modules/projectiles/guns/ballistic/pistol.dm

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
GLOBAL_VAR_INIT(does_howard_exist, FALSE)
2+
13
/obj/item/gun/ballistic/automatic/pistol
24
name = "stechkin pistol"
35
desc = "A small, easily concealable 10mm handgun. Has a threaded barrel for suppressors."
@@ -130,6 +132,23 @@
130132
/obj/item/gun/ballistic/automatic/pistol/v38/less_lethal
131133
starting_mag_type = /obj/item/ammo_box/magazine/v38/rubber
132134

135+
/obj/item/gun/ballistic/automatic/pistol/v38/less_lethal/Initialize(mapload)
136+
if(GLOB.does_howard_exist || prob(90))
137+
return ..()
138+
GLOB.does_howard_exist = TRUE
139+
new/obj/item/gun/ballistic/automatic/pistol/v38/less_lethal/howard(loc)
140+
qdel(src)
141+
142+
/obj/item/gun/ballistic/automatic/pistol/v38/less_lethal/howard
143+
name = "\improper Vatra M38 \"Hauard\" Pistol"
144+
icon_state = "v38s"
145+
desc = "A moderately-sized, silver-plated handgun that loads irregular .38 special magazines. Commonly found among Serbian police forces. Its serial number is scratched out and replaced with \"Hauard\"."
146+
147+
/obj/item/gun/ballistic/automatic/pistol/v38/less_lethal/howard/Destroy()
148+
GLOB.does_howard_exist = FALSE //not anymore, goodbye!
149+
..()
150+
151+
133152
/obj/item/gun/ballistic/automatic/pistol/boltpistol
134153
name = "Imperial Bolt Pistol"
135154
desc = "A smaller, sidearm variant of the Bolter. Typically blows people into chunks with every shot. Fires .75 caliber rounds."

icons/obj/guns/projectile.dmi

-2.23 KB
Binary file not shown.

0 commit comments

Comments
 (0)