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

Silicon Medical and Security HUDs! #4525

Merged
merged 5 commits into from Sep 8, 2014
Merged

Silicon Medical and Security HUDs! #4525

merged 5 commits into from Sep 8, 2014

Conversation

GunHog
Copy link
Contributor

@GunHog GunHog commented Aug 22, 2014

  • The AI can now access both Security and Medical HUDs via a new button
    on its UI. The Medical HUD requires that the person's suit sensors be set either vitals or vitals + GPS mode. The AI's Security HUD only detects jobs.
  • Cyborg HUD modules have been removed in favor of an inbuilt command,
    to make it less of a hassle to access them.
  • HUD code has been given its own file such that it can be used by any
    mob. In addition, HUD users are placed into a list instead of searching
    for only humans and checking them for a HUD item. This is to make it
    easier to expand.
  • Security HUD messages can now be received by any mob using a SecHUD. The icon is now a set of handcuffs.

New AI button and Sec HUD message:
screenshot 2014-08-21 23 03 01

HUD button for Borgies!
screenshot 2014-09-02 18 39 26

I plan to expand the HUD broadcast feature to Medibots as part of another PR, as bot code is outside the scope of this one.

- The AI can now access both Security and Medical HUDs via a new button
on its UI. The Medical HUD is exactly equal to all others. The AI's
Security HUD cannot detect implants.

- Cyborg HUD modules have been removed in favor of an inbuilt command,
to make it less of a hassle to access them.

- HUD code has been given its own file such that it can be used by any
mob. In addition, HUD users are placed into a list instead of searching
for only humans and checking them for a HUD item. This is to make it
easier to expand.

- Security HUD messages can now be received by any mob using a SecHUD.
@Alek2ander
Copy link
Contributor

What if the medical HUD only worked to the extent of the person's sensors (nothing/alive or dead icon/healthbar)
So much fun comes from the AI being unable to see why exactly one is on the floor (resting? stunned? crit? dead?)

@theOperand
Copy link
Contributor

I agree with Alek as far as medihuds are concerned. AI not being able to
tell why somebody is on the floor makes things interesting.
Op 22-aug.-2014 09:05 schreef "Alek2ander" notifications@github.com:

What if the medical HUD only worked to the extent of the person's sensors
(nothing/alive or dead icon/healthbar)
So much fun comes from the AI being unable to see why exactly one is on
the floor (resting? stunned? crit? dead?)


Reply to this email directly or view it on GitHub
#4525 (comment)
.

@cedarbridge
Copy link

I'd be more inclined to agree if the AI had examine() or something similar, but the AI having to play guessing games with things it should normally be able to just see (bodily harm is usually pretty visible) is kinda silly.

if("Sensor Augmentation")
if(isAI(usr))
var/mob/living/silicon/ai/AI = usr
AI.sensor_mode()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is sensor_mode() not a Silicon proc? because if it is, there's no need to individually typecast for AI and Borgs.

Makes the sensor augmentation check for silicon instead of one for both
the AI and Borgs, since they are not actually different procs.

Reverts an accidental removal of the borg camera function, thinking it
came from NT's code.
- AI Medical HUDs require that the person's suit sensors be enabled (any
active mode) in order to view status data.

- AI Security HUDs display only the person's job as given by their ID,
no security status or implant detection.
@GunHog
Copy link
Contributor Author

GunHog commented Aug 22, 2014

As required, the AI's HUD is nerfed such that the Medical version requires that suit sensors must be EDIT: in vitals or vitals + tracking mode in order to view patient data. The Security version displays only the job given by the worn ID, no implants or wanted status.

@GunHog
Copy link
Contributor Author

GunHog commented Aug 25, 2014

May I have a review for this? I dislike the restrictions for the AI's HUDs, but other than that, it should be good to go. There are changes in here I need as a part of another PR.

T = get_turf(eye)
else
T = get_turf(M)
for(var/mob/living/carbon/human/patient in range(T))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use range, it would be faster to loop through the mob list and then compare the distance with get_dist().

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the distance to check, use the client's view range.

- Both HUD procs broken in to several smaller procs.
- Added defines so the arguments to process_data_hud() are clear.
- Several other tweaks to data_huds.dm
- Made the sensor mode defines match the data hud ones.
- Gave borgies a HUD button for sensor modes instead a verb, to be in
line with the AI.
@GunHog
Copy link
Contributor Author

GunHog commented Sep 2, 2014

I hope this is a bit more satisfactory. I would like to make one important change though. I wish to make it such that the AI's Security HUD has Warrant Status. The whole point of the AI's HUDs is to consolidate data found on the suit sensors and security database. Its use is terribly limited without it, and does nothing to reduce the need of having a security records console window open when playing as the AI.

I hereby request permission to give the AI's Security HUD Warrant Status data.

@Aranclanos
Copy link
Contributor

No, sorry.

Cheridan added a commit that referenced this pull request Sep 8, 2014
Silicon Medical and Security HUDs!
@Cheridan Cheridan merged commit 7750a2b into tgstation:master Sep 8, 2014
@GunHog GunHog deleted the HUDS_For_All branch September 8, 2014 16:18
GoryMoon pushed a commit to Ravenholdt/hdstation that referenced this pull request Oct 25, 2020
Silicon Medical and Security HUDs!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants