Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote Monitoring Cameras #7296

Draft
wants to merge 25 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
7d4b749
start
realforest2001 Oct 9, 2024
e4aed9a
responder faction
realforest2001 Oct 9, 2024
b407044
working, mostly
realforest2001 Oct 9, 2024
8cf14ce
implement
realforest2001 Oct 9, 2024
f63523c
Merge branch 'master' into spycameras
realforest2001 Oct 9, 2024
6ccf38f
langchat test
realforest2001 Oct 9, 2024
1a463f5
Emergency Revert
realforest2001 Oct 9, 2024
7635947
langchat and proper move restrict
realforest2001 Oct 9, 2024
567b73d
Merge remote-tracking branch 'cmss13-devs/master' into project/fax_re…
realforest2001 Oct 24, 2024
591c20a
bonk
realforest2001 Oct 25, 2024
ca8fee0
cooldown
realforest2001 Oct 25, 2024
1950876
Merge remote-tracking branch 'cmss13-devs/master' into project/fax_re…
realforest2001 Oct 26, 2024
a0c69f6
Merge remote-tracking branch 'cmss13-devs/master' into project/fax_re…
realforest2001 Oct 29, 2024
fa25c23
Merge remote-tracking branch 'cmss13-devs/master' into project/fax_re…
realforest2001 Nov 16, 2024
4187747
Merge remote-tracking branch 'cmss13-devs/master' into project/fax_re…
realforest2001 Nov 20, 2024
d63290e
Fixup maps in TGM format
realforest2001 Nov 20, 2024
085e84a
Merge remote-tracking branch 'cmss13-devs/master' into project/fax_re…
realforest2001 Nov 24, 2024
8324720
Merge remote-tracking branch 'cmss13-devs/master' into project/fax_re…
realforest2001 Nov 25, 2024
ae07b5b
Fixup maps in TGM format
realforest2001 Nov 25, 2024
d2a4d99
Merge remote-tracking branch 'cmss13-devs/master' into project/fax_re…
realforest2001 Nov 30, 2024
31864d7
Merge remote-tracking branch 'cmss13-devs/master' into project/fax_re…
realforest2001 Dec 5, 2024
77e03ca
Merge remote-tracking branch 'cmss13-devs/master' into project/fax_re…
realforest2001 Dec 9, 2024
3218cb5
Fixup maps in TGM format
realforest2001 Dec 9, 2024
76dbdc3
Merge remote-tracking branch 'cmss13-devs/master' into project/fax_re…
realforest2001 Dec 11, 2024
8e32a82
Fixup maps in TGM format
realforest2001 Dec 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions code/__DEFINES/mob_hud.dm
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
#define XENO_HOSTILE_SLOW "13" // xeno-inflicted slow. used by a bunch of MOBA xenos stuff
#define XENO_HOSTILE_TAG "14" // dancer prae 'tag'
#define XENO_HOSTILE_FREEZE "15" // Any xeno-inflifcted root
#define XENO_EXECUTE "28" // Execute thershold, vampire

#define HEALTH_HUD_XENO "16" // health HUD for xenos
#define PLASMA_HUD "17" // indicates the plasma level of xenos.
#define PHEROMONE_HUD "18" // indicates which pheromone is active on a xeno.
Expand All @@ -27,7 +25,9 @@
#define HUNTER_CLAN "25" //Displays a colored icon to represent ingame Hunter Clans
#define HUNTER_HUD "26" //Displays various statuses on mobs for Hunters to identify targets
#define HOLOCARD_HUD "27" //Displays the holocards set by medical personnel
#define XENO_EXECUTE "28" // Execute thershold, vampire
#define NEW_PLAYER_HUD "29" //Makes it easy to see new players.
#define SPYCAM_HUD "30" //Remote control spy cameras.

//data HUD (medhud, sechud) defines
#define MOB_HUD_SECURITY_BASIC 1
Expand All @@ -49,6 +49,7 @@
#define MOB_HUD_HUNTER_CLAN 17
#define MOB_HUD_EXECUTE 18
#define MOB_HUD_NEW_PLAYER 19
#define MOB_HUD_SPYCAMS 20

//for SL/FTL/LZ targeting on locator huds
#define TRACKER_SL "track_sl"
Expand Down
8 changes: 7 additions & 1 deletion code/__DEFINES/mode.dm
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,10 @@ DEFINE_BITFIELD(whitelist_status, list(
#define FACTION_YAUTJA "Yautja"
#define FACTION_ZOMBIE "Zombie"
#define FACTION_MONKEY "Monkey" // Nanu
#define FACTION_FAX "Fax Responder"

#define FACTION_LIST_MARINE list(FACTION_MARINE)
#define FACTION_LIST_HUMANOID list(FACTION_MARINE, FACTION_PMC, FACTION_WY, FACTION_WY_DEATHSQUAD, FACTION_CLF, FACTION_CONTRACTOR, FACTION_MARSHAL, FACTION_UPP, FACTION_FREELANCER, FACTION_SURVIVOR, FACTION_NEUTRAL, FACTION_COLONIST, FACTION_MERCENARY, FACTION_DUTCH, FACTION_HEFA, FACTION_GLADIATOR, FACTION_PIRATE, FACTION_PIZZA, FACTION_SOUTO, FACTION_YAUTJA, FACTION_ZOMBIE, FACTION_TWE)
#define FACTION_LIST_HUMANOID list(FACTION_MARINE, FACTION_PMC, FACTION_WY, FACTION_WY_DEATHSQUAD, FACTION_CLF, FACTION_CONTRACTOR, FACTION_MARSHAL, FACTION_UPP, FACTION_FREELANCER, FACTION_SURVIVOR, FACTION_NEUTRAL, FACTION_COLONIST, FACTION_MERCENARY, FACTION_DUTCH, FACTION_HEFA, FACTION_GLADIATOR, FACTION_PIRATE, FACTION_PIZZA, FACTION_SOUTO, FACTION_YAUTJA, FACTION_ZOMBIE, FACTION_TWE, FACTION_FAX)
#define FACTION_LIST_ERT_OTHER list(FACTION_HEFA, FACTION_GLADIATOR, FACTION_PIRATE, FACTION_PIZZA, FACTION_SOUTO)
#define FACTION_LIST_ERT_ALL list(FACTION_PMC, FACTION_WY_DEATHSQUAD, FACTION_WY, FACTION_CLF, FACTION_CONTRACTOR, FACTION_UPP, FACTION_FREELANCER, FACTION_MERCENARY, FACTION_DUTCH, FACTION_HEFA, FACTION_GLADIATOR, FACTION_PIRATE, FACTION_PIZZA, FACTION_SOUTO, FACTION_MARSHAL, FACTION_TWE)
#define FACTION_LIST_WY list(FACTION_PMC, FACTION_WY_DEATHSQUAD, FACTION_WY)
Expand All @@ -296,6 +297,11 @@ DEFINE_BITFIELD(whitelist_status, list(
#define FACTION_LIST_MARINE_UPP list(FACTION_MARINE, FACTION_UPP)
#define FACTION_LIST_MARINE_TWE list(FACTION_MARINE, FACTION_TWE)
#define FACTION_LIST_YAUTJA list(FACTION_YAUTJA)
#define FACTION_LIST_COLONY list(FACTION_SURVIVOR, FACTION_COLONIST)
#define FACTION_LIST_NEUTRAL list(FACTION_NEUTRAL)

/// The list of factions loosely allied with the USCM
#define FACTION_LIST_MARINE_FAXES list(FACTION_MARINE, FACTION_WY, FACTION_MARSHAL, FACTION_TWE)

// Xenomorphs
#define FACTION_PREDALIEN "Predalien"
Expand Down
2 changes: 2 additions & 0 deletions code/__DEFINES/typecheck/mobs_generic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@
#define isnewplayer(A) (istype(A, /mob/new_player))
#define isHellhound(A) (istype(A, /mob/living/carbon/xenomorph/hellhound))
#define isaghost(A) (copytext(A.key, 1, 2) == "@")

#define ishologram(A) (istype(A, /mob/hologram))
1 change: 1 addition & 0 deletions code/_globalvars/lists/mapping_globals.dm
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ GLOBAL_LIST_EMPTY(zombie_landmarks)

GLOBAL_LIST_EMPTY(newplayer_start)
GLOBAL_LIST_EMPTY_TYPED(observer_starts, /obj/effect/landmark/observer_start)
GLOBAL_LIST_EMPTY_TYPED(spycam_starts, /obj/effect/landmark/spycam_start)

GLOBAL_LIST_EMPTY(map_items)
GLOBAL_LIST_EMPTY(xeno_tunnels)
Expand Down
8 changes: 8 additions & 0 deletions code/datums/langchat/langchat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@

langchat_listeners = listeners
for(var/mob/M in langchat_listeners)
if(ishologram(M))
var/mob/hologram/holo = M
if(holo.linked_mob)
langchat_listeners += holo.linked_mob
if(langchat_client_enabled(M) && !M.ear_deaf && (skip_language_check || M.say_understands(src, language)))
M.client.images += langchat_image

Expand Down Expand Up @@ -160,6 +164,10 @@

langchat_listeners = listeners
for(var/mob/M in langchat_listeners)
if(ishologram(M))
var/mob/hologram/holo = M
if(holo.linked_mob)
langchat_listeners += holo.linked_mob
if(langchat_client_enabled(M) && !M.ear_deaf && M.say_understands(src, language))
M.client.images += langchat_image

Expand Down
4 changes: 4 additions & 0 deletions code/datums/mob_hud.dm
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ GLOBAL_LIST_INIT_TYPED(huds, /datum/mob_hud, list(
MOB_HUD_HUNTER_CLAN = new /datum/mob_hud/hunter_clan(),
MOB_HUD_EXECUTE = new /datum/mob_hud/execute_hud(),
MOB_HUD_NEW_PLAYER = new /datum/mob_hud/new_player(),
MOB_HUD_SPYCAMS = new /datum/mob_hud/spy_cams(),
))

/datum/mob_hud
Expand Down Expand Up @@ -219,6 +220,9 @@ GLOBAL_LIST_INIT_TYPED(huds, /datum/mob_hud, list(
/datum/mob_hud/faction/observer
hud_icons = list(FACTION_HUD, ORDER_HUD, HUNTER_CLAN, HOLOCARD_HUD)

/datum/mob_hud/spy_cams
hud_icons = list(SPYCAM_HUD)

///////// MOB PROCS //////////////////////////////:


Expand Down
5 changes: 5 additions & 0 deletions code/game/machinery/camera/camera.dm
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
var/autoname = FALSE
var/autonumber = 0 //camera number in area

var/list/owner_factions = FACTION_LIST_NEUTRAL

GLOBAL_LIST_EMPTY_TYPED(all_cameras, /obj/structure/machinery/camera)
/obj/structure/machinery/camera/Initialize(mapload, ...)
. = ..()
Expand Down Expand Up @@ -314,6 +316,9 @@ GLOBAL_LIST_EMPTY_TYPED(all_cameras, /obj/structure/machinery/camera)
linked_broadcasting = camera_item
c_tag = linked_broadcasting.get_broadcast_name()

/obj/structure/machinery/camera/overwatch
network = list(CAMERA_NET_OVERWATCH)

/obj/structure/machinery/camera/mortar
alpha = 0
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
Expand Down
4 changes: 4 additions & 0 deletions code/game/machinery/camera/presets.dm
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
icon = 'icons/obj/vehicles/interiors/general.dmi'
icon_state = "vehicle_camera"
network = list(CAMERA_NET_VEHICLE)
owner_factions = FACTION_LIST_HUMANOID

/obj/structure/machinery/camera/vehicle/toggle_cam_status(on = FALSE)
if(on)
Expand All @@ -85,6 +86,7 @@
/obj/structure/machinery/camera/autoname/almayer
name = "military-grade camera"
network = list(CAMERA_NET_ALMAYER)
owner_factions = FACTION_LIST_MARINE_WY

/obj/structure/machinery/camera/autoname/almayer/containment
name = "containment camera"
Expand All @@ -97,6 +99,7 @@

/obj/structure/machinery/camera/autoname/almayer/containment/hidden
network = list(CAMERA_NET_CONTAINMENT_HIDDEN)
owner_factions = FACTION_LIST_WY

/obj/structure/machinery/camera/autoname/almayer/containment/ares
name = "ares core camera"
Expand All @@ -118,6 +121,7 @@

colony_camera_mapload = FALSE
emp_proof = TRUE
owner_factions = FACTION_LIST_HUMANOID

/obj/structure/machinery/camera/autoname/lz_camera/ex_act()
return
Expand Down
Loading
Loading