Ports the scope component from TG and new scope eyes (#24288)

* Ports the scope component from TG.

* scope eyes

* now in scope

* fixes lwap canceling other scopes

* Update code/datums/components/scope.dm

Co-authored-by: Charlie Nolan <funnyman3595@gmail.com>

* c-c-c-changes

* Apply suggestions from code review

Co-authored-by: Farie82 <farie82@users.noreply.github.com>

* Update scope.dm

* moves it off the gun

* Update code/datums/components/scope.dm

Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
Signed-off-by: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com>

* fixes stealth conflict

* do_after_once

---------

Signed-off-by: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com>
Co-authored-by: Charlie Nolan <funnyman3595@gmail.com>
Co-authored-by: Farie82 <farie82@users.noreply.github.com>
Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
This commit is contained in:
Qwertytoforty
2024-05-14 09:26:04 +00:00
committed by GitHub
co-authored by Charlie Nolan Farie82 Burzah
parent 23f393af72
commit f105159acb
19 changed files with 380 additions and 157 deletions
@@ -141,6 +141,9 @@
/obj/item/autosurgeon/organ/syndicate/xray_eyes
starting_organ = /obj/item/organ/internal/eyes/cybernetic/xray/hardened
/obj/item/autosurgeon/organ/syndicate/scope_eyes
starting_organ = /obj/item/organ/internal/eyes/cybernetic/scope/hardened
/obj/item/autosurgeon/organ/syndicate/anti_stam
starting_organ = /obj/item/organ/internal/cyberimp/brain/anti_stam/hardened
+32
View File
@@ -167,6 +167,38 @@
emp_proof = TRUE
origin_tech = "materials=6;programming=5;biotech=6;magnets=6;syndicate=3"
/obj/item/organ/internal/eyes/cybernetic/scope
name = "\improper Kaleido Optics eyes"
desc = "These cybernetic eye implants will let you zoom in on far away objects. Many users find it disorienting, and find it hard to interact with things near them when active."
eye_color = "#6f00ff"
flash_protect = FLASH_PROTECTION_EXTRA_SENSITIVE
origin_tech = "materials=5;programming=4;biotech=4;magnets=4"
var/scope_range = 0.8 //Only used in initialize. Greatly nerfed zoom range, since you are not taking the time zoom delay the lwap has.
var/active = FALSE
/obj/item/organ/internal/eyes/cybernetic/scope/Initialize(mapload)
. = ..()
AddComponent(/datum/component/scope, range_modifier = scope_range, item_action_type = /datum/action/item_action/organ_action/toggle, allow_middle_click = TRUE)
/obj/item/organ/internal/eyes/cybernetic/scope/insert(mob/living/carbon/human/M, special)
. = ..()
flash_protect = FLASH_PROTECTION_NONE //Resets it to none, so we can just flip to inital each time it is used.
/obj/item/organ/internal/eyes/cybernetic/scope/ui_action_click(mob/user, actiontype)
active = !active
if(active)
flash_protect = initial(flash_protect)
else
flash_protect = FLASH_PROTECTION_NONE
/obj/item/organ/internal/eyes/cybernetic/scope/hardened
name = "\improper Hardened Kaleido Optics eyes"
desc = "These cybernetic eye implants will let you zoom in on far away objects. Many users find it disorienting, and find it hard to interact with things near them when active. This pair has been hardened for special operations personnel, and has enhanced zoom functionality."
flash_protect = FLASH_PROTECTION_SENSITIVE
origin_tech = "materials=6;programming=5;biotech=6;magnets=6;syndicate=3"
scope_range = 1.25
emp_proof = TRUE
/obj/item/organ/internal/eyes/cybernetic/flashlight
name = "flashlight eyes"
desc = "It's two flashlights rigged together with some wire. Why would you put these in someone's head?"