Garry's Mod

Garry's Mod

217 betyg
Playermodel Health Scaling
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Content Type: Addon
Addon Type: Gamemode
Addon Tags: Fun, Realism
Filstorlek
Lades upp
Uppdaterades
5.737 KB
8 dec, 2019 @ 10:16
7 mar, 2020 @ 11:06
4 ändringsnotiser ( visa )

Abonnera för att ladda ner
Playermodel Health Scaling

Beskrivning
THIS ADDON IS OLD AND NO LONGER SUPPORTED, LOOK AT https://psteamcommunity.yuanyoumao.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
Populära diskussioner Visa alla (2)
1
11 dec, 2021 @ 2:44
Does this work with pac
SaltSage
0
14 dec, 2019 @ 3:13
KLISTRAD: Update: 14 Dec
Fakas
31 kommentarer
Weischreiner 25 nov, 2024 @ 15:22 
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 @ 15:08 
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:44 
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
Fakas  [skapare] 4 apr, 2023 @ 9:26 
Sorry, I don't have access to a machine that can actually run the game right now - mine died :(
Jenno 30 mar, 2023 @ 23:07 
Can you do one for speed scaling? I'm making a deathmatch modpack and it would really add some interesting balance.
Fakas  [skapare] 27 mar, 2023 @ 9:46 
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:25 
There is no phs_playermodel_health.txt. in data. Do I manually create it myself?
Fakas  [skapare] 11 dec, 2021 @ 2:55 
See the description - the way the config file works is explained.
Caesan Non-Combatant 11 dec, 2021 @ 2:52 
sad thought it was automatic
Fakas  [skapare] 11 dec, 2021 @ 2:43 
It'll be whatever you configure it as.