Skip to content

Commit

Permalink
yea
Browse files Browse the repository at this point in the history
  • Loading branch information
FalloutFalcon committed Oct 10, 2024
1 parent 8c5662e commit 0634151
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 23 deletions.
6 changes: 5 additions & 1 deletion code/modules/projectiles/guns/ballistic.dm
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#define EMPTY_GUN_HELPER(gun_type) \
#define NO_MAG_GUN_HELPER(gun_type) \
/obj/item/gun/ballistic/##gun_type/no_mag { \
default_ammo_type = FALSE; \
}
#define EMPTY_GUN_HELPER(gun_type) \
/obj/item/gun/ballistic/##gun_type/no_mag { \
spawn_no_ammo = TRUE; \
}

///Subtype for any kind of ballistic gun
///This has a shitload of vars on it, and I'm sorry for that, but it does make making new subtypes really easy
Expand Down
8 changes: 4 additions & 4 deletions code/modules/projectiles/guns/ballistic/pistol.dm
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@
eject_sound = 'sound/weapons/gun/pistol/candor_unload.ogg'
eject_empty_sound = 'sound/weapons/gun/pistol/candor_unload.ogg'

EMPTY_GUN_HELPER(automatic/pistol/candor)
NO_MAG_GUN_HELPER(automatic/pistol/candor)

/obj/item/gun/ballistic/automatic/pistol/candor/factory //also give this to the srm, their candors should probably look factory fresh from how well taken care of they are
desc = "A classic semi-automatic handgun, widely popular throughout the Frontier. An engraving on the slide marks it as a product of 'Hunter's Pride Arms and Ammunition'. This example has been kept in especially good shape, and may as well be fresh out of the workshop. Chambered in .45."
item_state = "hp_generic_fresh"

EMPTY_GUN_HELPER(automatic/pistol/candor/factory)
NO_MAG_GUN_HELPER(automatic/pistol/candor/factory)

/obj/item/gun/ballistic/automatic/pistol/candor/factory/update_overlays()
. = ..()
Expand Down Expand Up @@ -128,7 +128,7 @@ EMPTY_GUN_HELPER(automatic/pistol/candor/factory)
lock_back_sound = 'sound/weapons/gun/pistol/lock_small.ogg'
bolt_drop_sound = 'sound/weapons/gun/pistol/drop_small.ogg'

EMPTY_GUN_HELPER(automatic/pistol/commander)
NO_MAG_GUN_HELPER(automatic/pistol/commander)

/obj/item/gun/ballistic/automatic/pistol/commander/inteq
name = "\improper Commissioner"
Expand All @@ -141,7 +141,7 @@ EMPTY_GUN_HELPER(automatic/pistol/commander)
item_state = "commander-inteq"
manufacturer = MANUFACTURER_INTEQ

EMPTY_GUN_HELPER(automatic/pistol/commander/inteq)
NO_MAG_GUN_HELPER(automatic/pistol/commander/inteq)

/obj/item/gun/ballistic/automatic/pistol/commissar
name = "\improper Commissar"
Expand Down
2 changes: 1 addition & 1 deletion code/modules/projectiles/guns/ballistic/revolver.dm
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@
recoil = 0 //weaker than normal revolver, no recoil
fire_delay = 0.2 SECONDS

EMPTY_GUN_HELPER(revolver/detective)
NO_MAG_GUN_HELPER(revolver/detective)

/obj/item/gun/ballistic/revolver/detective/ComponentInitialize()
. = ..()
Expand Down
2 changes: 1 addition & 1 deletion code/modules/projectiles/guns/ballistic/shotgun.dm
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
)
manufacturer = MANUFACTURER_INTEQ

EMPTY_GUN_HELPER(shotgun/automatic/bulldog/inteq)
NO_MAG_GUN_HELPER(shotgun/automatic/bulldog/inteq)


/////////////////////////////
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
fire_select_icon_state_prefix = "clip_"
adjust_fire_select_icon_state_on_safety = TRUE

EMPTY_GUN_HELPER(automatic/smg/cm5)
NO_MAG_GUN_HELPER(automatic/smg/cm5)

/obj/item/ammo_box/magazine/cm5_9mm
name = "CM-5 magazine (9mm)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
spread_unwielded = 9
recoil_unwielded = 2

EMPTY_GUN_HELPER(automatic/pistol/ringneck)
NO_MAG_GUN_HELPER(automatic/pistol/ringneck)

/obj/item/gun/ballistic/automatic/pistol/ringneck/indie
name = "Ringneck-76"
Expand All @@ -77,7 +77,7 @@ EMPTY_GUN_HELPER(automatic/pistol/ringneck)
spread_unwielded = 7
recoil_unwielded = 3

EMPTY_GUN_HELPER(automatic/pistol/ringneck/indie)
NO_MAG_GUN_HELPER(automatic/pistol/ringneck/indie)


/obj/item/ammo_box/magazine/m10mm_ringneck
Expand Down Expand Up @@ -149,7 +149,7 @@ EMPTY_GUN_HELPER(automatic/pistol/ringneck/indie)
)
)

EMPTY_GUN_HELPER(automatic/pistol/asp)
NO_MAG_GUN_HELPER(automatic/pistol/asp)

/obj/item/ammo_box/magazine/m57_39_asp
name = "Asp magazine (5.7x39mm)"
Expand Down Expand Up @@ -282,7 +282,7 @@ EMPTY_GUN_HELPER(automatic/pistol/asp)
gun_firemodes = list(FIREMODE_SEMIAUTO, FIREMODE_BURST)
default_firemode = FIREMODE_SEMIAUTO

EMPTY_GUN_HELPER(automatic/pistol/rattlesnake)
NO_MAG_GUN_HELPER(automatic/pistol/rattlesnake)

/obj/item/gun/ballistic/automatic/pistol/rattlesnake/inteq
name = "MP-84m Kingsnake"
Expand Down Expand Up @@ -359,7 +359,7 @@ EMPTY_GUN_HELPER(automatic/pistol/rattlesnake)
spread_unwielded = 0
wield_slowdown = 0

EMPTY_GUN_HELPER(automatic/pistol/himehabu)
NO_MAG_GUN_HELPER(automatic/pistol/himehabu)

/obj/item/ammo_box/magazine/m22lr_himehabu
name = "pistol magazine (.22 LR)"
Expand Down Expand Up @@ -423,15 +423,15 @@ EMPTY_GUN_HELPER(automatic/pistol/himehabu)
)
)

EMPTY_GUN_HELPER(automatic/smg/cobra)
NO_MAG_GUN_HELPER(automatic/smg/cobra)

/obj/item/gun/ballistic/automatic/smg/cobra/indie
name = "Cobra-20"
desc = "An older model of submachine gun manufactured by Scarborough Arms and marketed to mercenaries, law enforcement, and independent militia. Only became popular after the end of the ICW. Chambered in .45."
icon_state = "cobra20"
item_state = "cobra20"

EMPTY_GUN_HELPER(automatic/smg/cobra/indie)
NO_MAG_GUN_HELPER(automatic/smg/cobra/indie)


/obj/item/ammo_box/magazine/m45_cobra
Expand Down Expand Up @@ -519,7 +519,7 @@ EMPTY_GUN_HELPER(automatic/smg/cobra/indie)
default_attachments = list(/obj/item/attachment/foldable_stock/sidewinder)


EMPTY_GUN_HELPER(automatic/smg/sidewinder)
NO_MAG_GUN_HELPER(automatic/smg/sidewinder)

/obj/item/ammo_box/magazine/m57_39_sidewinder
name = "Sidewinder magazine (5.7x39mm)"
Expand Down Expand Up @@ -589,7 +589,7 @@ EMPTY_GUN_HELPER(automatic/smg/sidewinder)
)
)

EMPTY_GUN_HELPER(automatic/marksman/boomslang)
NO_MAG_GUN_HELPER(automatic/marksman/boomslang)

/obj/item/gun/ballistic/automatic/marksman/boomslang/indie
name = "Boomslang-90"
Expand All @@ -601,7 +601,7 @@ EMPTY_GUN_HELPER(automatic/marksman/boomslang)
zoom_amt = 3 //Long range, enough to see in front of you, but no tiles behind you.
zoom_out_amt = 0

EMPTY_GUN_HELPER(automatic/marksman/boomslang/indie)
NO_MAG_GUN_HELPER(automatic/marksman/boomslang/indie)

/obj/item/ammo_box/magazine/boomslang
name = "\improper Boomslang Magazine (6.5x57mm CLIP)"
Expand Down Expand Up @@ -668,7 +668,7 @@ EMPTY_GUN_HELPER(automatic/marksman/boomslang/indie)
valid_attachments = list()
slot_available = list()

EMPTY_GUN_HELPER(automatic/marksman/taipan)
NO_MAG_GUN_HELPER(automatic/marksman/taipan)


//########### RIFLES ###########//
Expand Down Expand Up @@ -741,7 +741,7 @@ EMPTY_GUN_HELPER(automatic/marksman/taipan)
)
)

EMPTY_GUN_HELPER(automatic/assault/hydra)
NO_MAG_GUN_HELPER(automatic/assault/hydra)

//we hard code "hydra", why? because if not, i would need to duplicate the extended/short magazine sprites like 3 fucking times for every variant with a different icon state. this eases the spriting burden
/obj/item/gun/ballistic/automatic/assault/hydra/update_overlays()
Expand Down Expand Up @@ -831,7 +831,7 @@ EMPTY_GUN_HELPER(automatic/assault/hydra)
zoomable = TRUE
default_ammo_type = /obj/item/ammo_box/magazine/m556_42_hydra/small

EMPTY_GUN_HELPER(automatic/assault/hydra/dmr)
NO_MAG_GUN_HELPER(automatic/assault/hydra/dmr)

/obj/item/gun/ballistic/automatic/assault/hydra/underbarrel_gl
name = "SMR-80 \"Hydra\""
Expand Down Expand Up @@ -1006,7 +1006,7 @@ EMPTY_GUN_HELPER(automatic/assault/hydra/dmr)
)
)

EMPTY_GUN_HELPER(shotgun/automatic/bulldog)
NO_MAG_GUN_HELPER(shotgun/automatic/bulldog)

/obj/item/ammo_box/magazine/m12g_bulldog
name = "shotgun box magazine (12g buckshot)"
Expand Down Expand Up @@ -1050,7 +1050,7 @@ EMPTY_GUN_HELPER(shotgun/automatic/bulldog)
ammo_type = /obj/item/ammo_casing/shotgun/meteorslug


EMPTY_GUN_HELPER(shotgun/bulldog)
NO_MAG_GUN_HELPER(shotgun/bulldog)


/obj/item/gun/ballistic/rocketlauncher/mako
Expand Down

0 comments on commit 0634151

Please sign in to comment.