mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
* 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>
21 lines
517 B
Plaintext
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
|