-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2936141
commit 5ad4dd8
Showing
28 changed files
with
2,113 additions
and
2,065 deletions.
There are no files selected for viewing
472 changes: 0 additions & 472 deletions
472
code/modules/antagonists/traitor/affiliates/cybersun.dm
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
code/modules/antagonists/traitor/affiliates/items/cybersun/invasive_beacon.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/obj/item/invasive_beacon | ||
name = "Invasive Beacon" | ||
desc = "Сложное черное устройство. На боку едва заметная надпись \"Cybersun Industries\"." | ||
icon = 'icons/obj/affiliates.dmi' | ||
icon_state = "invasive_beacon" | ||
item_state = "beacon" | ||
lefthand_file = 'icons/obj/affiliates_l.dmi' | ||
righthand_file = 'icons/obj/affiliates_r.dmi' | ||
origin_tech = "programming=6;magnets=3;syndicate=1" | ||
w_class = WEIGHT_CLASS_TINY | ||
|
||
/obj/item/invasive_beacon/attack(mob/living/target, mob/living/user, def_zone) | ||
return | ||
|
||
/obj/item/invasive_beacon/afterattack(atom/target, mob/user, proximity, params) | ||
var/obj/mecha/mecha = target | ||
var/obj/spacepod/pod = target | ||
|
||
if(istype(mecha)) | ||
do_sparks(5, 1, mecha) | ||
mecha.dna = null | ||
mecha.operation_req_access = list() | ||
mecha.internals_req_access = list() | ||
|
||
user.visible_message(span_warning("[user] hacked [mecha] using [src]."), span_info("You hacked [mecha] using [src].")) | ||
|
||
if(mecha.occupant) | ||
to_chat(mecha.occupant, span_danger("You were thrown out of [mecha].")) | ||
|
||
mecha.occupant.forceMove(get_turf(mecha)) | ||
mecha.occupant.Knockdown(6 SECONDS) | ||
mecha.occupant.electrocute_act(30, mecha) | ||
mecha.occupant.throw_at(pick(orange(2))) | ||
mecha.occupant = null | ||
|
||
else if(istype(pod)) | ||
do_sparks(5, 1, pod) | ||
pod.unlocked = TRUE | ||
|
||
user.visible_message(span_warning("[user] hacked [pod] using [src]."), span_info("You hacked [pod] using [src].")) | ||
|
||
if(pod.pilot) // It is not ejecting passangers | ||
to_chat(pod.pilot, span_danger("You were thrown out of [pod].")) | ||
|
||
pod.eject_pilot() | ||
pod.pilot.Knockdown(6 SECONDS) | ||
pod.pilot.electrocute_act(30, pod) | ||
pod.pilot.throw_at(pick(orange(2))) | ||
else | ||
user.balloon_alert(user, "Невозможно взломать") | ||
return |
Oops, something went wrong.