Skip to content

Commit

Permalink
ChaosMod: Update meme texts for effects
Browse files Browse the repository at this point in the history
  • Loading branch information
pongo1231 committed Feb 6, 2025
1 parent 1107981 commit 5a388f1
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 55 deletions.
64 changes: 32 additions & 32 deletions ChaosMod/Effects/db/Misc/MiscNewsTeam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,35 +23,34 @@ CHAOS_VAR int lastPositionGoal = 0;
CHAOS_VAR int scaleForm = 0;
CHAOS_VAR Vector3 targetCoords;

struct TextPair
{
const std::string_view Title;
const std::string_view Subtitle;

TextPair(std::string_view title, std::string_view subtitle) : Title(title), Subtitle(subtitle)
{
}
};
CHAOS_VAR const std::vector<TextPair> ms_TextPairs = {
{ "Chaos Mod Player Trying To Survive", "\"He won't survive\", Mod Contributors Say" },
{ "Crazy Lunatic Going On A Rampage", "This Report Was Brought To You By eCola" },
{ "The Aftermath Of An Experiment Gone Wrong", "THE NEXT HEADLINE WILL TOTALLY SHOCK YOU!" },
{ "Wow Look At This", "Crazy Ain't It?" },
{ "An Example Of Our Average Law-Abiding Citizen", "\"Video Games cause violence\" Officials Say" },
{ "Holy Shit Wow Omg", "LULW WTFFF xDDDDDDDD" },
{ "What Bad RNG Looks Like", "Researchers Estimate The Chances Being Close To Millions To One" },
{ "A Speedrunner In Action", "Criticizers Claim Mods Might Be At Play" },
{ "An Ongoing Riot All Over San Andreas",
"A War Ensued Between The So Claimed \"Bus Bois\" And \"Scooter Brothers\"" },
{ "Hey You're On Camera", "Come On Do Something Cool!" },
{ "Look Up And Smile", "It's The LSPD" },
{ "This Is A Nice Scaleform", "Wow Is This Self-Aware?" },
{ "This Is Why We Can't Have Nice Things", "SMH" },
{ "IS THAT A SUPRA???", ":o" },
{ "Don't Mind Us", "Just Getting Some Footage For The Trailer Of Expanded & Enhanced 2" },
{ "HMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM",
"HMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM" },
{ "Just Imagine All The Stuff I Could Put In Here", "Oh Wait..." },
CHAOS_VAR const std::vector<std::string_view> ms_Titles = {
"",
"Chaos Mod player trying to survive",
"A speedrunner in action",
"Meow",
"This is you in 10 years",
"Very bleak yes",
"Just your average sunday in Ohio",
"Nothing ever happens",
"We got this before GTA 6",
"What do you even want me to say to this?",
"This is Neoliberalism",
"Topical reference",
"Something is happening",
"Look at this occurance",
"This is gaming",
"New news",
"eCola or Sprunk?",
"\"He won't survive\", Mod Contributors say",
"Criticizers claim mods might be at play",
"Very bleak yes",
"Nothing ever happens",
"Look at this occurance",
"eCola or Sprunk?",
"Unbelievable",
"Woof",
"I love cats",
"New research indicates deers are cows",
};

static void OnStart()
Expand Down Expand Up @@ -104,10 +103,11 @@ static void OnStart()
while (!HAS_SCALEFORM_MOVIE_LOADED(scaleForm))
WAIT(0);

const auto &chosenTextPair = ms_TextPairs[g_Random.GetRandomInt(0, ms_TextPairs.size() - 1)];
BEGIN_SCALEFORM_MOVIE_METHOD(scaleForm, "SET_TEXT");
SCALEFORM_MOVIE_METHOD_ADD_PARAM_PLAYER_NAME_STRING(chosenTextPair.Title.data());
SCALEFORM_MOVIE_METHOD_ADD_PARAM_PLAYER_NAME_STRING(chosenTextPair.Subtitle.data());
SCALEFORM_MOVIE_METHOD_ADD_PARAM_PLAYER_NAME_STRING(
ms_Titles[g_RandomNoDeterm.GetRandomInt(0, ms_Titles.size() - 1)].data());
SCALEFORM_MOVIE_METHOD_ADD_PARAM_PLAYER_NAME_STRING(
ms_Titles[g_RandomNoDeterm.GetRandomInt(0, ms_Titles.size() - 1)].data());

END_SCALEFORM_MOVIE_METHOD();
}
Expand Down
53 changes: 31 additions & 22 deletions ChaosMod/Effects/db/Misc/MiscNothing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,44 @@

#include "Effects/Register/RegisterEffect.h"

CHAOS_VAR const std::array options = { "Nothing",
"All Peds Are Peds",
"Teleport To Current Location",
"Expanded & Enhanced",
"Spawn Air",
"Destroy All Destroyed Vehicles",
"Kill All Dead Peds",
"+0 Wanted Stars",
"Jesus Watches Over You",
"Set Time To Current Time",
"Set Player Into Current Vehicle",
"All Cops Are Cops",
"Aim to Point Gun",
"Give Everyone A Nose",
"Teleport Player A Few Millimeters",
"Flying Birds",
"Teleport All Elephants To Player",
"PC Experience",
"All Enemies Attack Player",
"No Crash",
" " };
CHAOS_VAR const std::array options = {
"Nothing",
"All Peds Are Peds",
"Teleport To Current Location",
"Expanded & Enhanced",
"Spawn Air",
"Destroy All Destroyed Vehicles",
"Kill All Dead Peds",
"+0 Wanted Stars",
"Jesus Watches Over You",
"Set Time To Current Time",
"Set Player Into Current Vehicle",
"All Cops Are Cops",
"Aim to Point Gun",
"Give Everyone A Nose",
"Teleport Player A Few Millimeters",
"Flying Birds",
"Teleport All Elephants To Player",
"PC Experience",
"All Enemies Attack Player",
"No Crash",
" ",
"Delay GTA 6",
"Run Game",
"Make Player Ugly",
"Make Player Beautiful",
"Teleport To Parallel Universe",
};

static void OnStart()
{
const auto &effectOverride = options[g_Random.GetRandomInt(0, options.size() - 1)];

CurrentEffect::OverrideEffectName(effectOverride);

WAIT(25000);
while (CurrentEffect::GetEffectCompletionPercentage() < 0.5f)
WAIT(0);
;
}

// clang-format off
Expand Down
4 changes: 3 additions & 1 deletion ChaosMod/Effects/db/Player/PlayerHacking.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ CHAOS_VAR const char *WIN_PHRASES[] = {
"Kernel bitrate overclocked!",
"[ Hacking skill raised by 1 ]",
"Ah ah ah, you didn't say the magic word!",
"I frequent r/ProgrammerHumor.",
"Nice",
"Sorry, were you busy doing something?",
"Now back to your favorite game",
};

enum class TimerAction
Expand Down

0 comments on commit 5a388f1

Please sign in to comment.