Skip to content

Commit

Permalink
only SMGs have autofire for now, fire rate increased to 100% of burst
Browse files Browse the repository at this point in the history
  • Loading branch information
Zonespace27 committed Aug 5, 2023
1 parent c30502a commit 350704e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
10 changes: 5 additions & 5 deletions code/modules/projectiles/guns/rifles.dm
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
flags_gun_features = GUN_AUTO_EJECTOR|GUN_CAN_POINTBLANK|GUN_AMMO_COUNTER
starting_attachment_types = list(/obj/item/attachable/attached_gun/grenade, /obj/item/attachable/stock/rifle/collapsible)
map_specific_decoration = TRUE
start_automatic = TRUE
//start_automatic = TRUE

/obj/item/weapon/gun/rifle/m41a/set_gun_attachment_offsets()
attachable_offset = list("muzzle_x" = 32, "muzzle_y" = 18,"rail_x" = 12, "rail_y" = 23, "under_x" = 24, "under_y" = 13, "stock_x" = 24, "stock_y" = 13)
Expand Down Expand Up @@ -150,7 +150,7 @@
/obj/item/attachable/attached_gun/flamer/advanced,
)
start_semiauto = FALSE
start_automatic = TRUE
//start_automatic = TRUE
autofire_slow_mult = 1.1

/obj/item/weapon/gun/rifle/nsg23/Initialize(mapload, spawn_empty)
Expand Down Expand Up @@ -386,7 +386,7 @@

flags_gun_features = GUN_AUTO_EJECTOR|GUN_CAN_POINTBLANK|GUN_AMMO_COUNTER
starting_attachment_types = list(/obj/item/attachable/attached_gun/grenade/mk1, /obj/item/attachable/stock/rifle/collapsible)
start_automatic = TRUE
//start_automatic = TRUE

/obj/item/weapon/gun/rifle/m41aMK1/set_gun_attachment_offsets()
attachable_offset = list("muzzle_x" = 32, "muzzle_y" = 18,"rail_x" = 12, "rail_y" = 23, "under_x" = 23, "under_y" = 13, "stock_x" = 24, "stock_y" = 14)
Expand Down Expand Up @@ -727,7 +727,7 @@
)

flags_gun_features = GUN_AUTO_EJECTOR|GUN_CAN_POINTBLANK
start_automatic = TRUE
//start_automatic = TRUE



Expand Down Expand Up @@ -1306,7 +1306,7 @@

flags_gun_features = GUN_AUTO_EJECTOR|GUN_CAN_POINTBLANK|GUN_AMMO_COUNTER
flags_equip_slot = SLOT_BACK
start_automatic = TRUE
//start_automatic = TRUE

/obj/item/weapon/gun/rifle/type71/set_gun_attachment_offsets()
attachable_offset = list("muzzle_x" = 32, "muzzle_y" = 18,"rail_x" = 18, "rail_y" = 23, "under_x" = 20, "under_y" = 13, "stock_x" = 24, "stock_y" = 13)
Expand Down
4 changes: 1 addition & 3 deletions code/modules/projectiles/guns/smgs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
flags_gun_features = GUN_AUTO_EJECTOR|GUN_CAN_POINTBLANK
gun_category = GUN_CATEGORY_SMG
start_automatic = TRUE
automatic_delay_mult = 1

/obj/item/weapon/gun/smg/Initialize(mapload, spawn_empty)
. = ..()
Expand Down Expand Up @@ -71,7 +72,6 @@
flags_gun_features = GUN_AUTO_EJECTOR|GUN_CAN_POINTBLANK|GUN_AMMO_COUNTER
starting_attachment_types = list(/obj/item/attachable/stock/smg/collapsible)
map_specific_decoration = TRUE
start_automatic = TRUE

/obj/item/weapon/gun/smg/m39/set_gun_attachment_offsets()
attachable_offset = list("muzzle_x" = 30, "muzzle_y" = 20,"rail_x" = 14, "rail_y" = 22, "under_x" = 21, "under_y" = 16, "stock_x" = 24, "stock_y" = 15)
Expand Down Expand Up @@ -367,7 +367,6 @@
)
wield_delay = WIELD_DELAY_NONE
aim_slowdown = SLOWDOWN_ADS_NONE
start_automatic = TRUE

/obj/item/weapon/gun/smg/mac15/set_gun_attachment_offsets()
attachable_offset = list("muzzle_x" = 32, "muzzle_y" = 20,"rail_x" = 16, "rail_y" = 22, "under_x" = 22, "under_y" = 16, "stock_x" = 22, "stock_y" = 16)
Expand Down Expand Up @@ -416,7 +415,6 @@
)
wield_delay = WIELD_DELAY_MIN
aim_slowdown = SLOWDOWN_ADS_QUICK
start_automatic = TRUE
var/jammed = FALSE

/obj/item/weapon/gun/smg/uzi/set_gun_attachment_offsets()
Expand Down

0 comments on commit 350704e

Please sign in to comment.