Garry's Mod

Garry's Mod

评价数不足
Steal Enemy Health
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 服务器内容
插件标签: 快乐, 角色扮演
文件大小
发表于
8.423 KB
2023 年 11 月 18 日 上午 6:40
1 项改动说明 ( 查看 )

订阅以下载
Steal Enemy Health

描述
This is a small enhancement to another addon, the link to which, unfortunately, I cannot provide (unless in the comments). The author and I agreed that there should be two versions of this addon: the basic version - his version and... the customizable version - my version.

This relatively small Lua script adds a so-called vampirism effect when dealing damage. The amount of stolen health can be adjusted with console commands. Additionally, if needed, the vampirism effect can be disabled with a single console command or through corresponding settings in the SandBox mode server control menu (see images). There are also a couple of minor adjustments.
Oh, and I almost forgot - the settings menu supports both Russian and English languages.


Console Variables:
sv_stealhealth_enable (0/1) - this command allows you to disable the addon's functionality when convenient sv_stealhealth_overheal (0/1) - allows receiving HP above the maximum sv_stealhealth_minsteal 15 - the minimum percentage of damage dealt converted to health sv_stealhealth_maxsteal 25 - the maximum percentage of damage dealt converted to health sv_stealhealth_dmgnormalize (0/1) - damage normalization, protects against situations where you kill an enemy with low health but deal a huge amount of damage. In other words, this command prevents you from gaining too much health for killing with a high amount of damage.
5 条留言
Terrorek1520 3 月 1 日 上午 10:51 
for some reason the commands dont appear to be showing, but the health steal thing by itself works
Fozart 2024 年 5 月 25 日 下午 12:36 
Было бы не плохо еслиб можно было как то настроить, для кого работает эффект на сервере а для кого нет. Или хотя бы сделать так,что каждый игрок может сам для себя решить через консоль, хочет он получать хп за урон или нет.
Air4iik  [作者] 2023 年 12 月 13 日 上午 9:49 
Thx
Roman_ 2023 年 12 月 12 日 下午 10:31 
Cool
Air4iik  [作者] 2023 年 11 月 20 日 下午 12:53