Page 1 of 1

Integrated sec/medical HUD for the AI

Posted: Mon May 12, 2014 3:58 am
by paprika
when

Re: Integrated sec/medical HUD for the AI

Posted: Mon May 12, 2014 4:16 am
by Psyentific
paprika wrote:when
Give the AI pAI-like features/data resource. For Points, you can buy pre-set do-it-for-you Telecomms scripts, Med/Sechud overlays, always-open auto-refreshing crew monitoring console, a selectable list/window dedicated entirely to all the air alarms and APCs. You can buy flashlights on cameras (Flares instead?), or you can convert a camera to Motion/X-Ray for a fixed cost per camera.

Re: Integrated sec/medical HUD for the AI

Posted: Mon May 12, 2014 12:25 pm
by AseaHeru
Ah... The main features of the HUDS (being able to edit there files) will be useless for an AI.

It would, however, be nice if they could see the icons that their borgs can see.

Re: Integrated sec/medical HUD for the AI

Posted: Mon May 12, 2014 3:53 pm
by Remie Richards
Psyentific wrote:You can buy flashlights on cameras.
I'm fairly certain most, if not all cameras actually have lights on them, Unless I'm losing my mind here.

Edit: The Camera the AI is looking through can be toggled for lights, but it's only that camera, and only when the AI is in it.

Re: Integrated sec/medical HUD for the AI

Posted: Mon May 12, 2014 6:28 pm
by Psyentific
Remie Richards wrote:
Psyentific wrote:You can buy flashlights on cameras.
I'm fairly certain most, if not all cameras actually have lights on them, Unless I'm losing my mind here.

Edit: The Camera the AI is looking through can be toggled for lights, but it's only that camera, and only when the AI is in it.
That's terrible. I wanna see dim, emergency-red lighting on all cameras.

Re: Integrated sec/medical HUD for the AI

Posted: Mon May 12, 2014 8:00 pm
by Stickymayhem
Psyentific wrote:
Remie Richards wrote:
Psyentific wrote:You can buy flashlights on cameras.
I'm fairly certain most, if not all cameras actually have lights on them, Unless I'm losing my mind here.

Edit: The Camera the AI is looking through can be toggled for lights, but it's only that camera, and only when the AI is in it.
That's terrible. I wanna see dim, emergency-red lighting on all cameras.
But then I can't smash every bulb on the station in five minutes and be super spooky!

Re: Integrated sec/medical HUD for the AI

Posted: Tue May 13, 2014 5:32 am
by Gun Hog
I could MAYBE code this. If it is REALLY wanted, because this would not be easy for a coder of my limited experience. (In BYOND)

Re: Integrated sec/medical HUD for the AI

Posted: Tue May 13, 2014 5:36 am
by Neerti
Look at ody med HUDs. There might be a proc for it.

Re: Integrated sec/medical HUD for the AI

Posted: Tue May 13, 2014 6:01 am
by Gun Hog
Oddy Medhuds are nothing more than a snowflake pair of hudglasses that get placed on your face whenever you enter the mech. So...those are of no help :/

Re: Integrated sec/medical HUD for the AI

Posted: Tue May 13, 2014 7:19 am
by Neerti
>Mechs in charge of not being snowflake.

Re: Integrated sec/medical HUD for the AI

Posted: Thu May 15, 2014 12:09 am
by paprika
AI should be able to see who's set to arrest and people's ID icons at the very least.

If he can't see their health levels, whatever, that's not so much of a big deal to me since not being able to tell when humans are harmed is kind of a fun gameplay mechanic. You gotta look for blood and stuff through the cameras instead of just a health bar.

Re: Integrated sec/medical HUD for the AI

Posted: Thu May 15, 2014 4:01 pm
by Gun Hog
So I made a thing....
Screenshot 2014-05-15 10.56.20.png
Notes: It is based on the pAI version of SecHUDs, so no implant detection (which is a good thing). You must manually set someone to arrest, as AIs cannot examine. I figure simply making the Medical and SecHUDs part of "Silicon" instead of inside the pAI code itself is better, so both AIs and pAIs can run on the same proc without duplication. The example provided does NOT currently include this change, but if people actually want this, then I will code this to standard, to the best of my limited ability.

Re: Integrated sec/medical HUD for the AI

Posted: Thu May 15, 2014 4:03 pm
by Remie Richards
Gun Hog wrote:I figure simply making the Medical and SecHUDs part of "Silicon" instead of inside the pAI code itself is better, so both AIs and pAIs can run on the same proc without duplication. The example provided does NOT currently include this change, but if people actually want this, then I will code this to standard, to the best of my limited ability.
Yes. That is a REQUIRED change should this be wanted. Otherwise it's far too much code duplication.

Re: Integrated sec/medical HUD for the AI

Posted: Thu May 15, 2014 9:43 pm
by Gun Hog
Remie Richards wrote:
Gun Hog wrote:I figure simply making the Medical and SecHUDs part of "Silicon" instead of inside the pAI code itself is better, so both AIs and pAIs can run on the same proc without duplication. The example provided does NOT currently include this change, but if people actually want this, then I will code this to standard, to the best of my limited ability.
Yes. That is a REQUIRED change should this be wanted. Otherwise it's far too much code duplication.
I really like this idea, so I put a bit more work into it: Please see here!

Re: Integrated sec/medical HUD for the AI

Posted: Fri May 16, 2014 3:34 pm
by Remie Richards
Gun Hog wrote:
Remie Richards wrote:
Gun Hog wrote:I figure simply making the Medical and SecHUDs part of "Silicon" instead of inside the pAI code itself is better, so both AIs and pAIs can run on the same proc without duplication. The example provided does NOT currently include this change, but if people actually want this, then I will code this to standard, to the best of my limited ability.
Yes. That is a REQUIRED change should this be wanted. Otherwise it's far too much code duplication.
I really like this idea, so I put a bit more work into it: Please see here!

Code: Select all

       regular_hud_updates()
 		if (src.hud_mode == SEC_HUD)
 			src.securityHUD(src.eyeobj)
 		if (src.hud_mode == MED_HUD)
 			src.medicalHUD(src.eyeobj)
My only gripe is this, Shouldn't regular_hud_updates() be called BELOW the secHud() and medHud() Calls? because what's the point in updating the Hud, if the state of the hud may change right after the update?
Besides that, It looks nice.

Re: Integrated sec/medical HUD for the AI

Posted: Fri May 16, 2014 9:17 pm
by Gun Hog
Remie Richards wrote:
Gun Hog wrote:
Remie Richards wrote:
Gun Hog wrote:I figure simply making the Medical and SecHUDs part of "Silicon" instead of inside the pAI code itself is better, so both AIs and pAIs can run on the same proc without duplication. The example provided does NOT currently include this change, but if people actually want this, then I will code this to standard, to the best of my limited ability.
Yes. That is a REQUIRED change should this be wanted. Otherwise it's far too much code duplication.
I really like this idea, so I put a bit more work into it: Please see here!

Code: Select all

       regular_hud_updates()
 		if (src.hud_mode == SEC_HUD)
 			src.securityHUD(src.eyeobj)
 		if (src.hud_mode == MED_HUD)
 			src.medicalHUD(src.eyeobj)
My only gripe is this, Shouldn't regular_hud_updates() be called BELOW the secHud() and medHud() Calls? because what's the point in updating the Hud, if the state of the hud may change right after the update?
Besides that, It looks nice.
Because the regular_hud_updates() is one of deletion. It clears the hud of previously drawn elements, in preparation for the next. Here is a more polished version that I feel is perhaps ready for testing and putting up to PR. Let me know what you think! https://github.com/GunHog/-tg-station/c ... nsors_Beta

If you guys like the code here, I will put up a PR and poll in the Coding section! Just let me know!