Skip to content

Commit

Permalink
probably working bipod need to debug later
Browse files Browse the repository at this point in the history
  • Loading branch information
KoishiVibe committed Jun 16, 2024
1 parent 03aab63 commit d825fcd
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 10 deletions.
23 changes: 23 additions & 0 deletions code/modules/projectiles/gun_attachables.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3306,6 +3306,8 @@ Defined in conflicts.dm of the #defines folder.
recoil_mod = RECOIL_AMOUNT_TIER_5
burst_scatter_mod = 0
delay_mod = FIRE_DELAY_TIER_12
if(istype(G,/obj/item/weapon/gun/rifle/lmg))
delay_mod = 0
G.recalculate_attachment_bonuses()
G.stop_fire()
var/mob/living/user
Expand Down Expand Up @@ -3348,6 +3350,8 @@ Defined in conflicts.dm of the #defines folder.
burst_scatter_mod = -SCATTER_AMOUNT_TIER_8
if(istype(G,/obj/item/weapon/gun/rifle/sniper/M42A))
delay_mod = -FIRE_DELAY_TIER_7
else if(istype(G,/obj/item/weapon/gun/rifle/lmg)))
delay_mod = 0
else
delay_mod = -FIRE_DELAY_TIER_12
G.recalculate_attachment_bonuses()
Expand Down Expand Up @@ -3396,6 +3400,25 @@ Defined in conflicts.dm of the #defines folder.
return O2
return 0

/obj/item/attachable/bipod/integral
name = "integral bipod"
desc = "An integral bipod for the M41AE2 Heavy Pulse Rifle."
icon_state = "bipod"
attach_icon = "bipod_a"
slot = "under"
size_mod = 0
melee_mod = 0
flags_attach_features = ATTACH_ACTIVATION
attachment_action_type = /datum/action/item_action/toggle

/obj/item/attachable/bipod/integral/New()
..()

delay_mod = 0
wield_delay_mod = WIELD_DELAY_FAST
accuracy_mod = -HIT_ACCURACY_MULT_TIER_5
scatter_mod = SCATTER_AMOUNT_TIER_9
recoil_mod = RECOIL_AMOUNT_TIER_5

/obj/item/attachable/bipod/m60
name = "bipod"
Expand Down
16 changes: 6 additions & 10 deletions code/modules/projectiles/guns/rifles.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1230,21 +1230,17 @@
/obj/item/attachable/suppressor,
/obj/item/attachable/reddot,
/obj/item/attachable/reflex,
/obj/item/attachable/verticalgrip,
/obj/item/attachable/angledgrip,
/obj/item/attachable/flashlight/grip,
/obj/item/attachable/flashlight,
/obj/item/attachable/bipod,
/obj/item/attachable/bipod/integral
/obj/item/attachable/stock/rifle/collapsible
/obj/item/attachable/heavy_barrel,
/obj/item/attachable/compensator,
/obj/item/attachable/burstfire_assembly,
/obj/item/attachable/magnetic_harness,
)
starting_attachment_types = list(
/obj/item/attachable/bipod,
)
starting_attachment_types = list(/obj/item/attachable/bipod/integral, /obj/item/attachable/stock/rifle/collapsible)

flags_gun_features = GUN_CAN_POINTBLANK|GUN_AMMO_COUNTER|GUN_WIELDED_FIRING_ONLY
flags_gun_features = GUN_CAN_POINTBLANK|GUN_AMMO_COUNTER
gun_category = GUN_CATEGORY_HEAVY
start_automatic = TRUE

Expand All @@ -1254,14 +1250,14 @@

/obj/item/weapon/gun/rifle/lmg/set_gun_config_values()
..()
set_fire_delay(FIRE_DELAY_TIER_10)
set_fire_delay(FIRE_DELAY_TIER_11)
set_burst_amount(BURST_AMOUNT_TIER_4)
set_burst_delay(FIRE_DELAY_TIER_11)
fa_scatter_peak = FULL_AUTO_SCATTER_PEAK_TIER_3
fa_max_scatter = SCATTER_AMOUNT_TIER_4
accuracy_mult = BASE_ACCURACY_MULT
accuracy_mult_unwielded = BASE_ACCURACY_MULT - HIT_ACCURACY_MULT_TIER_10
scatter = SCATTER_AMOUNT_TIER_9
scatter = SCATTER_AMOUNT_TIER_8
burst_scatter_mult = SCATTER_AMOUNT_TIER_7
scatter_unwielded = SCATTER_AMOUNT_TIER_2
damage_mult = BASE_BULLET_DAMAGE_MULT
Expand Down

0 comments on commit d825fcd

Please sign in to comment.