Garry's Mod

Garry's Mod

362 ratings
NPC Realistic Height Randomizer
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: NPC
Addon Tags: Fun, Roleplay, Realism
File Size
Posted
6.289 KB
3 Jun, 2022 @ 6:47am
1 Change Note ( view )

Subscribe to download
NPC Realistic Height Randomizer

Description


BEFORE I GET STARTED, IF YOU LIKE THIS ADDON AND/OR MY ADDONS, PLEASE CONSIDER DONATING. I'M JUST A TEEN WANTING TO MAKE MONEY. THANKS!! :)

[www.paypal.com]

Ever hate how short the NPCS are in the game? Now that's no more.

HELLO! What is this addon?
Hi, this addon is exactly what you just read. NPC Realistic Height Randomizer or NPC RHR for short, is an addon that simulates Real-life based Human heights for NPCs and SNPCs. This addon works by checking if an NPC or SNPC has a hull type that of a Human.

A hull type is basically a body type, for example, a headcrab does not have a body type of a human but a citizen, metrocop, zombies, or a combine soldier has. This method is universal and thats why it works for SNPCS too. However this method is not reliable, since there are also NPCs from HL2 that have a human body type that should not have. This includes the camera npc, dropship npc, turret npc, etc... But I coded it in a way they dont get scaled too, so dont worry about it.

This works by scaling the model corresponding to real measurements such as Inches, feet, Centimeters. As you read the section below, you will know how we can convert model scaling to real measurements.

Okay, How do you know this is 'realistic'?
According to the Valve wiki, the Player in most source games is exactly 72 units or 54 inches/4.5 Feet or 4.6 Feet/137.16 cm tall. And almost all Human-type NPCs are the same height as the player. So common sense, we do the math here. All model is exactly scaled to 1 or just default scale.

An example:
Player = 4.5 Feet(4'5 ft) 4.5 * 1.33(Scale Model Multiplier) = 6 Feet(6ft)

This is of course if we assume almost all Human-type NPCs are the same height as the player. However there are exceptions:

In this image, female citizens do not have the same height as the male npcs or the normal ones. Therefore, height calculations will be inaccurate. Otherwise, if the NPC is the same height as the player then the measurements would be correct.

NPCs spawned will have a random height that is based on the average height of humans, which is 5'6ft. But everyone also knows there are short and tall people, so I coded it in a way that there are random chances of someone being tall, average, or short when spawned.


Screenshots





Last image, i dont wanna hear complains about how they are too tall, youre literally 4ft6 so what do you have to complain. Also take notes of inaccuracy here, woman is "6ft" and the man is also 6ft. You will see this type of inaccuracy because their models need to be exactly the same as the player or almost.

Okay but theyre too tall, how can i be tall too?
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2728389308
Just use this addon.

Console commands
Commands
Description
kn_realistic_height_randomizer
Enables/Disables the addon as a whole. USE 1 to enable it, 0 to disable it. Almost every command needs this on except for kn_realistic_height_randomizer_debug
kn_realistic_height_randomizer_special_characters
Enables/Disables the height randomizer for characters like Alyx, Barny, Breen, Odell, Mossman, Father grigori, etc...USE 1 to enable it, 0 to disable it.
kn_realistic_height_average_multiplier
The multiplier for height randomization which is used for calculating the average height. You can use this command to raise the value up, which will make people taller by average or raise the value down to make people shorter. Default by 1.
kn_realistic_height_short_multiplier
The multiplier for height randomization which is used for calculating the short height. You can use this command to raise the value up, which will make people taller when short people are spawned or raise the value down to make people even shorter. Default by 1.
kn_realistic_height_tall_multiplier
The multiplier for height randomization which is used for calculating the tall height. You can use this command to raise the value up, which will make people that are taller to be even more taller or raise the value down to make taller people less taller. Default by 1.
kn_realistic_height_randomizer_debug
The debug command to view model and real measurement info about the npc. Note that npc must be of Human type like citizens. Use 1 to enable the command, 0 to disable it.


[www.paypal.com]
i want money

Questions
Works with VJ Base or x?
- Depends if the SNPCs have a body or hull type of a human. If not this would not work. I tested it and it works.
They are too tall, fix it.
- Again, no. The player is like 4foot6. If thats not short then check your eyes again. Just use this addon https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2728389308

tags; gmod realism, realism, immersion, snpc, npc, hl2, vjbase, vj, randomizer, source, gm_, roblox, anime, pm
112 Comments
JayHog1992 21 Jun @ 1:53pm 
Not a good addon when playing campaign games because lots of scripts break because they're too fat to fit through.
Mr. Companion Cube 24 Feb @ 3:22pm 
so know i can have children security guards and scientists and evil children HECU
boo 26 Dec, 2024 @ 2:16pm 
why is the player always danny diveto
Male_02 15 Dec, 2024 @ 5:26pm 
i think they might be a bit too big\tall to call this ''realistic''
射灯ταυ♿ 19 Oct, 2024 @ 5:32am 
POV : Player is a child:ccskull:
boo 16 Oct, 2024 @ 7:16pm 
why is everybody 6ft5
Mr_4nice 18 Sep, 2024 @ 7:12am 
For me when the npc with random high dies it returns to regular height
RadRick 21 Aug, 2024 @ 8:44pm 
Wow so realistic nice
Scout (Jeremy) 9 Aug, 2024 @ 4:46pm 
POV: when the player is a child
Cleano. 8 Aug, 2024 @ 6:22pm 
makes you look like a gnome to the other NPCS, 10/10