TF2 Millionaire Quiz in VScript

Channel:
Subscribers:
332
Published on ● Video Link: https://www.youtube.com/watch?v=fvepJuHDlOU



Team Fortress 2
Game:
Duration: 2:58
1,349 views
49


Quiz_millionaire has been one of my favorite community-made TF2 maps for the longest time, and I've played it quite a lot in the past. I remember feeling so ecstatic when I first managed to beat the map :D. After playing for so long however, you simply start to memorize not just all 187 of the questions themselves but also the exact letters before you even get to see the answers lol. I got the idea to expand the map with more features (more about them below) using a SourceMod plugin, which i had already finished a while ago, but with the recent introduction of VScript in TF2 I've decided to port the plugin over.

Each question consists of three entities - one logic_relay which handles map logic and two game_text entities each showing the question and answers, and occasionally an extra logic_relay for every 16 questions as the logic_case entity (the one responsible for randomly choosing questions) can only support up to 16 outputs. While this system can be optimized to use less entities, you are still effectively limited to 2048 of them in total (including the rest of the logic entities which manage things like difficulty, and other miscellaneous entities as well). What I've done is I've decompiled the map, removed all but 4 questions in each category (easy, medium, hard and very hard), one for each letter from A to D. These questions then act as placeholders and the script replaces them. The rest of the map remains untouched.

Finally, the interesting part - here's what VScript can do easier than map logic (if at all):
- Support for more questions (I've made 84 so far but I'm always adding more!)
- Questions are now stored in text/script files, no need to decompile the map to Hammer!
- Supports questions with more than 3 wrong answers, which will get picked at random with a random order. Same question, more variety - no more memorizing choices!

Source code: https://github.com/brokenphilip/millionaire

In the meantime, give the original creator some love and play the map here: https://steamcommunity.com/sharedfiles/filedetails/?id=656539932







Tags:
Team Fortress 2
quiz_millionaire
Who Wants to Be a Millionaire
Programming
Scripting
VScript



Other Statistics

Team Fortress 2 Statistics For brokenphilip

At present, brokenphilip has 6,011 views spread across 19 videos for Team Fortress 2, with his channel publishing less than an hour of Team Fortress 2 content. This makes up 9.73% of the content that brokenphilip has uploaded to YouTube.