Garry's Mod

Garry's Mod

1,026 个评价
Regeneration Health and Armor (Server side)
2
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 建筑, 快乐, 风景
文件大小
发表于
更新日期
12.987 KB
2022 年 4 月 20 日 上午 11:59
2024 年 8 月 18 日 上午 2:48
28 项改动说明 ( 查看 )

订阅以下载
Regeneration Health and Armor (Server side)

描述
Description
This addon is a simple regeneration of health and armor
highly configurable and easily accessible through console
well suited for servers since all code is on the server side and not as related to the player

if you want change value on client side you need add - gafregen in console
example - gafregen gaf_armor_delay 3
only superadmin can change value

Console Commands

ARMOR
  • gaf_armor_delay - Delay between getting armor back
  • gaf_armor_hurtdelay - Number of seconds the regeneration starts after being hurt
  • gaf_armor - How much armor you get back after one regeneration cycle
  • gaf_armor_playermax - Take player max armor
  • gaf_armor_enable - Enable Regeneration
  • gaf_armor_adminonly - Regeneration Admin-Only
  • gaf_armor_maxarmor - The amount of armor that should regenerate


HEALTH
  • gaf_health_delay - Delay between getting armor back
  • gaf_health_hurtdelay - Number of seconds the regeneration starts after being hurt
  • gaf_health - How much health you get back after one regeneration cycle
  • gaf_health_playermax - Take player max health
  • gaf_health_enable - Enable Regeneration
  • gaf_health_adminonly - Regeneration Admin-Only
  • gaf_health_maxhealth - The amount of health that should regenerate

OTHER
  • reset - Reset delay

Credit
by GAF

Please report any bugs in the comments
104 条留言
ThePear 8 月 24 日 下午 3:43 
I woulder if necrosvideos using this mod on his videos, that's makes me wounder for the long time that which mode makes his health to regen itself faster than average regenarion speed?
Elliot-_- 4 月 14 日 下午 6:40 
I'm noticing an issue related to armor regen addons, my armor randomly drops to an insanely low negative digits whenever i'm taking a lot of damage
UglyFour02 4 月 14 日 上午 6:39 
is possible to set to a single player, and not all is connected to the server?
for example set armor for xplayer to 100 and for yplayer only 10?
DolphinNotQA 2 月 11 日 上午 7:43 
Козах крут
A_Swarm_of_Wasps 2024 年 7 月 31 日 下午 3:07 
you can still heal over it with medkits
linkclick  [作者] 2024 年 7 月 30 日 上午 11:58 
Updated, added a setting to spawn with the amount of health you put as max
A_Swarm_of_Wasps 2024 年 7 月 29 日 下午 7:15 
max health doesnt work i can still go over the limit. also can you add a setting to spawn with the amount of health you put as max?
Technical Difficulties 2024 年 7 月 28 日 下午 7:54 
I wonder, would it be possible to set health/armor "breakpoints"? For example, if you wanted to regen up to the nearest multiple of 25, it would regen up to 100 if you only lost 20, but if you lost 40 it would only regen back up to 75.

It's not a big deal, but would be really neat to see, as it would still provide a major reason to use other, more direct healing items/addons such as stims or medpacks. That is, assuming that it isn't too much effort on your part.
linkclick  [作者] 2024 年 7 月 28 日 上午 10:15 
Updated
gm_Redlerman16 2024 年 7 月 28 日 上午 9:42 
found this error, fix?

[Regeneration Health and Armor (Server side)] lua/includes/extensions/net.lua:154: bad argument #1 to 'pairs' (table expected, got nil)
1. pairs - [C]:-1
2. WriteTable - lua/includes/extensions/net.lua:154
3. SendConVars - lua/g4fregen/sv_regen.lua:43
4. unknown - lua/g4fregen/sv_regen.lua:92