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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Braindamage speech proc change. #36490

Open
wants to merge 4 commits into
base: Bleeding-Edge
Choose a base branch
from

Conversation

Eneocho
Copy link
Collaborator

@Eneocho Eneocho commented May 12, 2024

What this does

Changes the braindamage speech proc so it replaces a lot more words than before with their braindamaged counterpart. Also makes it so a lot of the words used in the forced braindamage lines are also spelled that way if said normally. Ex: Singularity becomes Scrungularity when spoken regularly because the forced braindamage line says scrungularity, and this is consistent with it.
It will also make it so 70% of the time, words that have two identical letters together like "look, wood, sleep, etc" lose one of those letters, becoming "lok, wod, slep, etc" (that's what the regex check is for). This is a sentence-wide check, so if one word gets the double letters removed, then all of them get them removed. There's also an independent 40% chance to replace any one word in a sentence with "um" or a variant.
Finally, it reduces the forced screaming and forced stutter chance a bit, since this felt better with those reduced odds.

This is by no means a comprehensive list. Please suggest more syllable swaps to add (general "he" -> "eh" rules rather than specific words) if you happen to think of one, or point at ones that should be removed if you think one they're too on the nose or don't fit.

Why it's good

Expands the braindamage speech a bunch, making braindamage speech have an effect on more than just some very specific words.
Tested pretty thoroughly and nothing seemed to break, so tested I guess.
馃啈

  • rscadd: Expands the braindamage speech, adding a good amount of extra words and syllables that will be replaced with their dumb counterpart. Braindamaged players might also find themselves forgetting a word once in a while.
  • tweak: Reduces the forced screaming chance and forced stutter chance when talking while braindamaged by 15 and 5 percent respectively, since those values felt better with this change.

@Eneocho Eneocho added Content Adds something. Neat! Tweak I changed the thermostat from 70 degrees to 69 degrees. Fluff 馃Ц How uselessly cute. labels May 12, 2024
@Eneocho Eneocho added the 100% tested I promise I tested it every possible way / HAHA HE PROMISED HE TESTED IT AND DIDN'T label May 12, 2024
@boy2mantwicethefam
Copy link
Contributor

I don't think running every brain damage message through at least 50 replacetexts is a good execution

@Eneocho
Copy link
Collaborator Author

Eneocho commented May 12, 2024

I don't think running every brain damage message through at least 50 replacetexts is a good execution

I'll look into how to improve it, I have an idea based on catbeast code. I'm way out of my field here so it might take a while.

@west3436
Copy link
Collaborator

I think this is extra annoying from a gameplay perspective, but from a coding perspective please use some associative lists.

Comment on lines +379 to +409
message = replacetext(message, "stop", "sotp")
message = replacetext(message, "retarded", "rarted")
message = replacetext(message, "george", "[pick("joerge", "george", "gorge", "gdoruge")]")
message = replacetext(message, "melon", "[pick("mellens", "melons", "mwrlins")]")
message = replacetext(message, "oxygen", "oxigen")
message = replacetext(message, "evolve", "evoluate")
message = replacetext(message, "unrealistic", "unralistic")
message = replacetext(message, "round", "rouns")
message = replacetext(message, "roles", "rolls")
message = replacetext(message, "worst", "wurst")
message = replacetext(message, "worse", "wurse")
message = replacetext(message, "vegan", "vegana")
message = replacetext(message, "boob", "bobs")
message = replacetext(message, "grief", "griff")
message = replacetext(message, "space", "spess")
message = replacetext(message, "carp", "crap")
message = replacetext(message, "reason", "raisin")
if(prob(50))
message = replacetext(message, "engineer", "engiener")
message = replacetext(message, "pinpointer", "pin pointner")
message = replacetext(message, "singularity", "scrungulartiy")
message = replacetext(message, "based", "BASTE")
message = replacetext(message, "hos", "HITLER")
message = replacetext(message, "like", "liek")
message = replacetext(message, "damage", "damag")
message = replacetext(message, "millenial", "milenian")
message = replacetext(message, "telekinesis", "telikesis")
message = replacetext(message, "hulk", "halk")
message = replacetext(message, "epilepsy", "eppilapse")
message = replacetext(message, "shotgun", "shotgum it duntt mis")
message = replacetext(message, "suspicious", "sus")
message = replacetext(message, "among us", "amogus")
Copy link
Collaborator

Choose a reason for hiding this comment

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

My brother in Christ; please use an associative list here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
100% tested I promise I tested it every possible way / HAHA HE PROMISED HE TESTED IT AND DIDN'T Content Adds something. Neat! Fluff 馃Ц How uselessly cute. Tweak I changed the thermostat from 70 degrees to 69 degrees.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants