Garry's Mod

Garry's Mod

216 ratings
Playermodel Health Scaling
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Gamemode
Addon Tags: Fun, Realism
File Size
Posted
Updated
5.737 KB
8 Dec, 2019 @ 10:16am
7 Mar, 2020 @ 11:06am
4 Change Notes ( view )

Subscribe to download
Playermodel Health Scaling

Description
THIS ADDON IS OLD AND NO LONGER SUPPORTED, LOOK AT https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2921044110 FOR AN ALTERNATIVE.



Scale players' health based on their playermodels, useful for balancing playermodels that lack crit boxes or are small (or large!)

Designed for TTT and also tested in Sandbox.

If you're using LibertyForce's Enhanced Playermodel Selector (which you should), you may want to disable instant changes (it's under the server tab in settings), as PHS will only set your health on spawn by default, so you'll need to respawn with your new playermodel for it to take effect.

ConVars:
phs_enable 1/0 - Enable the addon.
phs_debug 1/0 - Enable debug messages in the console.
phs_health_modifier - Global health modifier, 100 is standard.

Console commands:
phs_rescale - Perform health scaling on all living players with their current playermodels.
phs_restart - Reload the playermodel health file and reinitialise PHS.

The playermodel health file consists of playermodel paths and health values on the next line. Example:
models/doge_player/doge_player.mdl
75
models/skullkid/skullkid.mdl
60
models/player/hagrid.mdl
125
models/nia/sans_pm.mdl
60
models/player/red.mdl
80
models/luria/sonic_adventure/sonic.mdl
70
models/luria/sonic_adventure/tails.mdl
70

Example file here: https://github.com/Fakas/playermodel_health_scaling/blob/master/example_phs_playermodel_health.txt

PHS looks for the file at GarrysMod/garrysmod/data/phs_playermodel_health.txt.
Carriage returns aren't supported, newlines at the end or start of the file will probably break it.

https://github.com/Fakas/playermodel_health_scaling
Popular Discussions View All (2)
1
11 Dec, 2021 @ 2:44am
Does this work with pac
SaltSage
0
14 Dec, 2019 @ 3:13am
PINNED: Update: 14 Dec
Jack Black
31 Comments
weischreiner 25 Nov, 2024 @ 3:22pm 
Also to get the file right click on the playermodel in the PM menu and choose copy to clipboard, it'll give you the path
weischreiner 25 Nov, 2024 @ 3:08pm 
For those who this doesn't work for, the config file will not generate until you launch a map with the mod installed, might be the problem for you
Kay-O1423-De 3 Nov, 2024 @ 4:44am 
i cant find it but there is something that makes your pm more realistic like health , view and speed and also if your very small you can go inside little objects and i can remember the thumbnail of it but i cant remember the name so i need abit of help finding that
Jack Black  [author] 4 Apr, 2023 @ 9:26am 
Sorry, I don't have access to a machine that can actually run the game right now - mine died :(
Jenno 30 Mar, 2023 @ 11:07pm 
Can you do one for speed scaling? I'm making a deathmatch modpack and it would really add some interesting balance.
Jack Black  [author] 27 Mar, 2023 @ 9:46am 
That's right. It'll probably still work, but be warned that I haven't touched this addon in years, and I'm not really in a position to fix it if it doesn't.
Jamesinator 14 Mar, 2023 @ 9:25am 
There is no phs_playermodel_health.txt. in data. Do I manually create it myself?
Jack Black  [author] 11 Dec, 2021 @ 2:55am 
See the description - the way the config file works is explained.
Caesan Non-Combatant 11 Dec, 2021 @ 2:52am 
sad thought it was automatic
Jack Black  [author] 11 Dec, 2021 @ 2:43am 
It'll be whatever you configure it as.