Garry's Mod

Garry's Mod

Not enough ratings
Configurable Randomizer
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Fun, Scenic
File Size
Posted
Updated
203.433 KB
26 May @ 2:13am
28 May @ 4:32pm
5 Change Notes ( view )

Subscribe to download
Configurable Randomizer

Description
Commisioned Mod


This mod is a Paid Commission Commissioned by Kiok.

Dragonred (me): Coding, Making the Addon | Testing | Screenshots + videos ( bad quality due to my Monitor + Steam workshop compressing them too much )

Kiok: Commissioning the Mod | Idea | Testing in Multiplayer

OBS: More Features were Added to the Extra Settings: [ Base Relationship With Players on Squad ] and [ Make NPCS Friendly towards RNG npcs of the same Squad ] After the creation of the Showcase Video, Thus why they do not show in the video.

The purpose of these 2 new Settings:
[ Base Relationship With Players on Squad ]: That Randomized Enemies will be hostile towards the Player based on their squad Even if the Original Replaced Enemy was set to be Friendly ( Comes disabled by Default, Also Disabled by HL2 Preset, Activating this will make the Resting Zombies in Ravenholm hostile, along with the Antlions at the Beach, so Beware. )

[ Make NPCS Friendly towards RNG npcs of the same Squad ]: Prevents NPCS who were replaced from In-Fighting among other NPCS of the same Squad of the Original NPC, comes Active by default and Activated by HL2 Preset aswell.

About the Mod


This mods allow you to make Randomized runs for Gmod maps or even Player Spawned NPCS in sandbox, with Highly configurable systems, you can edit many things such as :

  • the % Chance of each individual NPC to be chosen and the % Chance of which weapon they'll get

  • Ban NPCs and Weapons from being chosen as a probability

  • Ban a certain NPC class from being able to have their Class or Weapon randomized or make a Map ban Class or Weapon changes aswell

  • use a Seed system which generates an unique Pattern of RNG for each map based on the seed inserted At the cost of ignoring the % Chances of NPCs & Weapon, this Pattern will define what NPCs will spawn in a Pattern and which weapon they'll posses based on your settings

and etc etc etc... You'll find many more settings in the Extra Settings and any Commissions Kiok might make in the future to Add more content or Approved Commisioned ideas by others.

The mod works with Any gamemode and it's Settings can be Edited at Any Time.

How to Use the Mod and Edit Settings


by using the console Command dragon_rng_openmenu you can Open the Randomizer Settings Panel.

There you can choose to Toggle the Mod in the extra Settings if you wish to deactivate the mod's functionabilty without having to disable/uninstall it.

You can ONLY Use the command if you are a Super-Admin or Host of the Server.

The mod will always give a Remind through the Text Chat for Super Admins or Host whenever a level is Loaded to avoid confusion, and of course, you can bind a key to quickly open the menu by using the command format = bind 'key' dragon_rng_openmenu

Main Setting Options Explained


Here's a quick explanation about the main most important settings:

  • Ban from RNG: Removes the NPC/Weapon from being a Possibility when the RNG system triggers, meaning they will NOT be a selectable choice for possibilities.

  • Chance %: Defines the Chance in Percentage of the NPC or Weapon being chosen, the Value can be from 0 to 999, Note that setting an item to Maximum Chance does NOT mean it will be the ONLY weapon chosen, since the Algorithm i used for the function makes sure that every single item's chance is taken into Account.

  • Limit: Defines how many Times the NPC or Weapon can be Selected as a Possibility, Meaning if you set a Limit of 2 on a Metro-Police, if they are Chosen by the RNG 2 times, they will NOT be able to be selected anymore until the Limit is changed to Higher or 0. Value can be from 0 to 999

  • Block Class Changes: Makes the NPC/Nextbot immune to Class Randomizations from the Mod, Meaning once they spawn their class will NOT be randomized in any way, meaning they won't be de-spawned aswell.

  • Block Weapon Changes: Makes the NPC/Nextbot immune to Weapon Randomizations from the Mod, making so their current weapon will not be randomized.

Player Inputed Seed System


The Mod comes with a built-in Seed based generation system, which you can use by inserting a custom Seed in the 'Seed' Tab, After inserting a Seed that is higher than 0, All generations of Randomness will be based on the Seed used.

They Way it works is by turning the Seed insert + the Map's unique Name into a Linear Congruential Seed, meaning each map will have their own pattern based on the seed being used,which allows you to play a whole campaign of maps with just 1 Seed and each map of the campaign will have a determined Pattern

However, the Seed is also Affected by: Blacklisted items ( npcs and weapons ) and which NPCs the server has Active. so the Seed can generate a whole different pattern based on these conditions, so if you want to share a seed with someone make sure they also meet the same conditions as yours.

Saving and Loading Presets System


This system allows you to make custom presets and save them for whenever you wanna load them later, will not conflict with the server even if the preset contains NPCs that are currently not available in the server.

Keep Previous Settings


A Toggable system ( In the Extra Settings Tab ) that maintains the previous settings the server previously had before being closed down or level-changed.

HL2 Campaign Preset


Found in the Extra Settings tab, a button that allows you to use a Preset that will automatically block and change BlackList settings of certain Maps and NPCs to avoid Soft-Locks while playing through the HL2 Campaign, be it Singleplayer or Coop.

You can still Edit and change the settings the Preset applies, but it's just a quick way to guarantee the Server to be able to run the Main HL2 campaign without problems.

Patreon


VIP-Supporters members of my patreon can DM me to tell me a custom Preset they'd like for their Patreon Button in the 'Patrons' Window to have, along with what the Preset would do ( could be something the mod already does or something completely new ), they could also recommend mods from the workshop would contain Clickable buttons which would redirect to the Mod's steam page for easy download.

You can see a quick-easy Example by clicking on Blargh's Button in the Patrons list

If you wish to Support me or are interested in this little bonus consider checking out my Patreon, i have Mods planned in the future which will be Exclusive to Patreon members:

My Patreon:
patreon.com/dragon_red_dnp

3 Comments
Electric Kool-Aid 29 May @ 11:22am 
This is such a great concept for an addon but holy fuck trying to use this thing is like trying to operate uncle Joe's plane from the 1920s.

Nothing but errors galore, even opening up the menu via console command gives me an error.

Putting in a number value in "setting limits & chance of all" seems to only apply to some npcs

Hitting all the ban/unban all buttons does nothing visual but seems to work?

Starting a map with this thing on with more then 20 custom npcs on your pc will shit itself

The customization settings are great but damn, you need to attend Garry's College to know what even does what

The thing that really bothers me is the lack of feedback the addon has. I have no idea if the changes I'm making are working or not. It would be nice if there were descriptors for the options and having text prints such as "setting" is OFF or ON or at 90%. I like this addon but I really don't want to waste more hours of my life restarting the game seeing if my changes applied or not
Blargh Hurek 28 May @ 8:29pm 
Scariest thing that could happen here is seeing a combination of poison zombies teaming up with the enemies. But love the idea of fighting something random that you will not expect! No more fighting just combines 24/7 xD.
AngelFragrance 28 May @ 7:26pm 
good :D