Page 1 of 2

All Clear Message (mini addon) (R3.5: Corner Completionist)

PostPosted: Wed May 17, 2017 2:49 pm
by Spaceman333
Simple tiny addon I made for myself.
Displays a "All Clear" message when all monsters are dead.

Image

If you enjoy playing to get 100% monster kills, you may find this handy.
If new monsters appear via scripting or otherwise, the message will vanish and come back again when those are dead too.

AllClearMessage_S_Completionist_RightCorner.pk3

Spoiler: Completionist V2

AllClearMessage_S.pk3

AllClearMessage.pk3


Change Log:
24.06.2017 - Upgraded Completionist version. Now it appears in the top right corner and also displays a golden All OK when all 3 objectives are done.
18.06.2017 - Updated the Anon's Contribution edtion with new download links. Check out those rad webms below! (+ fixed issue with PB)
23.05.2017 - Added _S_Completionist version. Same as _S version, but this messages about Kills, Items and Secrets!
22.05.2017 - Added _S version. This one includes a tiny subtle beep beep sound for extra feedback and polish, otherwise its the same as its original soundless cousin.

____________________________________________________________

NEW: Big Font & Record Scratch/Mute Music Edition
An Anonymous user on /vr/ contributed their own specialized version of the mod, suitable for high resolutions!

WebM Previews:
https://s1.webmshare.com/yYj3B.webm
https://s1.webmshare.com/5xJAK.webm
https://s1.webmshare.com/vg0W0.webm
https://s1.webmshare.com/OyL4W.webm
https://s1.webmshare.com/QPGJr.webm
https://s1.webmshare.com/JGL47.webm

Download Links:
http://www.mediafire.com/file/xnhjm2xh1 ... _HLM_S.pk3
http://www.mediafire.com/file/yl9x6qsso ... ge_HLM.pk3
The former is just the allclear message with the recordscratch+droning, the latter also has the scoreboard music from Hotline Miami 1 (as D_DM2TTL) and 2 (as D_DM2INT), plus some other track from 2 (as D_READ_M).

http://s000.tinyupload.com/index.php?fi ... 3610446632 (old)

Features:
*Uses Big Font (Excellent for higher resolutions)
*Features a sound effect and music switch effect
(sort of like a computerized record scratch that stops the music and makes the atmosphere feel calm after the last kill)
*Will not display the message on maps with 0 monsters
____________________________________________________________

If you want to make your own versions of this mod and share it with others, I can post it on the first post too. Post it in this thread and I'll put it up.

Re: All Clear Message (mini addon)

PostPosted: Sat May 20, 2017 4:31 pm
by Armaetus
This is a pretty neat yet small mod.

Re: All Clear Message (mini addon)

PostPosted: Sat May 20, 2017 5:06 pm
by Enjay
What does it do on maps that restock the enemies via ACS?

Re: All Clear Message (mini addon)

PostPosted: Sat May 20, 2017 5:21 pm
by Mikk-
If new monsters appear via scripting or otherwise, the message will vanish and come back again when those are dead too.

Re: All Clear Message (mini addon)

PostPosted: Sat May 20, 2017 5:21 pm
by Enjay
Thanks. I'm having major reading comprehension failings today for some reason. :?

Re: All Clear Message (mini addon) (+extra version)

PostPosted: Sun May 21, 2017 5:45 am
by Spaceman333
Thank you, glad to see others are enjoy it too. :)

UPDATE:
Added a new extra tweaked version by Anonymous from /vr/, featuring a big font and sounds.See the first post for details.
I appreciate their contribution and if anyone else wants to make an enhanced version of this mod and share it, I can add it to the OP too.

UPDATE 2:
Inspired by the Anon's tweak, I updated the original mod with a tiny beep sound effect. It still uses the small font and doesn't cancel the music.

Re: All Clear Message (mini addon) (R2: Now with beep)

PostPosted: Mon May 22, 2017 8:34 pm
by Hexereticdoom
Heh, this is a pretty nice addon! Good job man! :thumb:

One suggestion BTW: would it be possible to extend the functionality with items and secrets? That is, for showing 'ALL ITEMS COLLECTED UP' and/or 'ALL SECRETS DISCOVERED' or similar, like the defeating enemies action... If so, this addon would rock! :yup:

Re: All Clear Message (mini addon) (R2: Now with beep)

PostPosted: Mon May 22, 2017 9:04 pm
by Gollgagh
Hexereticdoom wrote:One suggestion BTW: would it be possible to extend the functionality with items and secrets? That is, for showing 'ALL ITEMS COLLECTED UP' and/or 'ALL SECRETS DISCOVERED' or similar, like the defeating enemies action... If so, this addon would rock! :yup:


Should be, it's a simple variable check:
Code: Select allExpand view
if(GetLevelInfo (LEVELINFO_KILLED_MONSTERS) == GetLevelInfo (LEVELINFO_TOTAL_MONSTERS))

Re: All Clear Message (mini addon) (R2: Now with beep)

PostPosted: Tue May 23, 2017 5:28 am
by Spaceman333
Hexereticdoom wrote:Heh, this is a pretty nice addon! Good job man! :thumb:

One suggestion BTW: would it be possible to extend the functionality with items and secrets? That is, for showing 'ALL ITEMS COLLECTED UP' and/or 'ALL SECRETS DISCOVERED' or similar, like the defeating enemies action... If so, this addon would rock! :yup:


Eh why not, its easy enough. GetLevelInfo has these:
LEVELINFO_FOUND_SECRETS / LEVELINFO_TOTAL_SECRETS
LEVELINFO_FOUND_ITEMS / LEVELINFO_TOTAL_ITEMS

I have two things I'm a bit puzzled with and could use some advice on.
1. To keep the script performance conscious, should I change the while loop's Delay(1) to Delay(35)? Would that be a good idea?
2. How should I place and style the 3 messages on the screen? I'm thinking either just placing them top middle in 3 rows, or have a single row, but 3 columns?

Re: All Clear Message (mini addon) (R2: Now with beep)

PostPosted: Tue May 23, 2017 11:26 am
by Gollgagh
Code: Select allExpand view
script "AllClear" ENTER
{
   str string[8] = {"",               "-All Items-", "-All Secrets-",
                "-All Secrets/Items-", "-All Kills-", "-All Kills/Items-",
                "-All Kills/Secrets-", "-All Clear-"};
   int flags = 0;
   
   while(TRUE){
      if(GetLevelInfo(LEVELINFO_KILLED_MONSTERS) == GetLevelInfo(LEVELINFO_TOTAL_MONSTERS)){
         flags |= 4;
      } else {
         flags &= 3;
      }
      if(GetLevelInfo(LEVELINFO_FOUND_SECRETS)   == GetLevelInfo(LEVELINFO_TOTAL_SECRETS)){
         flags |= 2;
      } else {
         flags &= 5;
      }
      if(GetLevelInfo(LEVELINFO_FOUND_ITEMS)     == GetLevelInfo(LEVELINFO_TOTAL_ITEMS)){
         flags |= 1;
      } else {
         flags &= 6;
      }

      if(flags){
         HudMessage(s:string[flags]; HUDMSG_TYPEON, 0, CR_GREEN, 0.5, 0.02, 1.0, 0.02, 1.0);
      }
      Delay(35);
   }
}

Re: All Clear Message (mini addon) (R2: Now with beep)

PostPosted: Tue May 23, 2017 11:47 am
by Spaceman333
*Finishes making the new version*
*Tests it out thoroughly*
*So proud with my own amateur code work*
*Comes to the thread to release it*
*Sees Gollgagh's optimized and flexible sublime code work*

Ah man. This is akward.
I really like what you did there, that kind of code work is way beyond my ability, yet at the same time I feel torn as I already finished and fine-tuned the completionist version. Forgive me man. :oops:

UPDATE 3: Added completionist version that gives individual messages for 100% Kills, 100% Items and 100% Secrets. Uses the Beep version as a base.

Image

Re: All Clear Message (mini addon) (R3: Completionist!)

PostPosted: Tue May 23, 2017 12:02 pm
by Gollgagh
No problem man, that's what you get with a freshly graduated, unemployed computer science student living in his mom's attic: code wankery. :P

Re: All Clear Message (mini addon) (R3: Completionist!)

PostPosted: Tue May 23, 2017 12:34 pm
by Spaceman333
Gollgagh wrote:No problem man, that's what you get with a freshly graduated, unemployed computer science student living in his mom's attic: code wankery. :P


That feels relieving to hear. :)
I always want to recognize effort when its given like that, so even though it didn't get included, I still appreciate the gesture. Thank you.

Re: All Clear Message (mini addon) (R3: Completionist!)

PostPosted: Tue May 23, 2017 1:03 pm
by Hexereticdoom
Woah ha ha, fantástico, très bien, splendid work! :wub:

Thanks both for your effort @Spaceman333 and @Gollgagh! :cheers: :thumb:

Re: All Clear Message (mini addon) (R3: Completionist!)

PostPosted: Wed May 24, 2017 5:34 pm
by Spaceman333
Hexereticdoom wrote:Woah ha ha, fantástico, très bien, splendid work! :wub:

Thanks both for your effort @Spaceman333 and @Gollgagh! :cheers: :thumb:


Thank you, I'm glad you like it! :D