Garry's Mod

Garry's Mod

217 个评价
Playermodel Health Scaling
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 游戏模式
插件标签: 快乐, 写实
文件大小
发表于
更新日期
5.737 KB
2019 年 12 月 8 日 上午 10:16
2020 年 3 月 7 日 上午 11:06
4 项改动说明 ( 查看 )

订阅以下载
Playermodel Health Scaling

描述
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
热门讨论 查看全部(2)
1
2021 年 12 月 11 日 上午 2:44
Does this work with pac
SaltSage
0
2019 年 12 月 14 日 上午 3:13
置顶: Update: 14 Dec
Fakas
31 条留言
White Pharoah Vrilionaire 2024 年 11 月 25 日 下午 3: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
White Pharoah Vrilionaire 2024 年 11 月 25 日 下午 3: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 2024 年 11 月 3 日 上午 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  [作者] 2023 年 4 月 4 日 上午 9:26 
Sorry, I don't have access to a machine that can actually run the game right now - mine died :(
Jenno 2023 年 3 月 30 日 下午 11:07 
Can you do one for speed scaling? I'm making a deathmatch modpack and it would really add some interesting balance.
Fakas  [作者] 2023 年 3 月 27 日 上午 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 2023 年 3 月 14 日 上午 9:25 
There is no phs_playermodel_health.txt. in data. Do I manually create it myself?
Fakas  [作者] 2021 年 12 月 11 日 上午 2:55 
See the description - the way the config file works is explained.
Caesan Non-Combatant 2021 年 12 月 11 日 上午 2:52 
sad thought it was automatic
Fakas  [作者] 2021 年 12 月 11 日 上午 2:43 
It'll be whatever you configure it as.