Garry's Mod

Garry's Mod

367 个评价
NPC Realistic Height Randomizer
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: NPC
插件标签: 快乐, 角色扮演, 写实
文件大小
发表于
6.289 KB
2022 年 6 月 3 日 上午 6:47
1 项改动说明 ( 查看 )

订阅以下载
NPC Realistic Height Randomizer

描述


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://psteamcommunity.yuanyoumao.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://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2728389308

tags; gmod realism, realism, immersion, snpc, npc, hl2, vjbase, vj, randomizer, source, gm_, roblox, anime, pm
115 条留言
Destruction 9 月 14 日 下午 12:07 
forgot to mention this in my comment, but "they" refers to Valve.
Destruction 9 月 14 日 下午 12:07 
@andrew
because they used different size scales for the maps and characters.
While 16 HU = 1ft for maps and props, characters operate at 12HU = 1ft. Since HU are the universal measurement of Source, that places characters as being 25% smaller in each dimension than they should reasonably be.
andrew 9 月 14 日 上午 7:03 
so why is gordon 4' 6
JayHog1992 6 月 21 日 下午 1:53 
Not a good addon when playing campaign games because lots of scripts break because they're too fat to fit through.
Mr. Companion Cube 2 月 24 日 下午 3:22 
so know i can have children security guards and scientists and evil children HECU
boo 2024 年 12 月 26 日 下午 2:16 
why is the player always danny diveto
Male_02 2024 年 12 月 15 日 下午 5:26 
i think they might be a bit too big\tall to call this ''realistic''
3V3RN1GHT 2024 年 10 月 19 日 上午 5:32 
POV : Player is a child:ccskull:
boo 2024 年 10 月 16 日 下午 7:16 
why is everybody 6ft5
Mr_4nice 2024 年 9 月 18 日 上午 7:12 
For me when the npc with random high dies it returns to regular height