Files
Yogstation/code/modules/projectiles/attachments/grips.dm
ynot01 240bb4c06f Firearms rework again [Modular Attachments] (#16028)
* initial modular attachment commit

* fix bitflags

* Update code/modules/projectiles/gun.dm

Co-authored-by: tattax <71668564+tattax@users.noreply.github.com>

* Update code/modules/projectiles/attachments/laser_sight.dm

Co-authored-by: tattax <71668564+tattax@users.noreply.github.com>

* Update code/modules/projectiles/attachments/_attachment.dm

Co-authored-by: tattax <71668564+tattax@users.noreply.github.com>

* Update code/datums/action.dm

Co-authored-by: tattax <71668564+tattax@users.noreply.github.com>

* Update code/datums/action.dm

Co-authored-by: tattax <71668564+tattax@users.noreply.github.com>

* Update code/datums/action.dm

Co-authored-by: tattax <71668564+tattax@users.noreply.github.com>

* Update code/datums/action.dm

Co-authored-by: tattax <71668564+tattax@users.noreply.github.com>

* Update code/modules/projectiles/attachments/_attachment.dm

Co-authored-by: tattax <71668564+tattax@users.noreply.github.com>

* Update code/modules/projectiles/attachments/_attachment.dm

Co-authored-by: tattax <71668564+tattax@users.noreply.github.com>

* use better names

* fix tatax breaking my pr

Co-authored-by: tattax <71668564+tattax@users.noreply.github.com>
2022-10-08 15:03:11 +01:00

21 lines
517 B
Plaintext

/// Base grip
/obj/item/attachment/grip
name = "grip"
desc = "It's a grip."
attachment_type = TYPE_FOREGRIP
var/steady = 0
/obj/item/attachment/grip/on_attach(obj/item/gun/G, mob/user = null)
. = ..()
G.recoil -= steady
/obj/item/attachment/grip/on_detach(obj/item/gun/G, mob/living/user = null)
. = ..()
G.recoil += steady
/obj/item/attachment/grip/vertical
name = "vertical grip"
desc = "A tactile grip that increases the control and steadiness of your weapon."
icon_state = "vert_grip"
steady = 0.5