Garry's Mod
คะแนนไม่เพียงพอ
Steal Enemy Health
   
รางวัล
ชื่นชอบ
ชื่นชอบแล้ว
เลิกชื่นชอบ
Content Type: Addon
Addon Type: ServerContent
Addon Tags: Fun, Roleplay
ขนาดไฟล์
โพสต์
8.423 KB
18 พ.ย. 2023 @ 6: 40am
1 หมายเหตุการเปลี่ยนแปลง ( ดู )
คำอธิบาย
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.
4 ความเห็น
Fozart 25 พ.ค. 2024 @ 12: 36pm 
Было бы не плохо еслиб можно было как то настроить, для кого работает эффект на сервере а для кого нет. Или хотя бы сделать так,что каждый игрок может сам для себя решить через консоль, хочет он получать хп за урон или нет.
Airwaves  [ผู้สร้าง] 13 ธ.ค. 2023 @ 9: 49am 
Thx
Роман_ (Roman_) 12 ธ.ค. 2023 @ 10: 31pm 
Cool
Airwaves  [ผู้สร้าง] 20 พ.ย. 2023 @ 12: 53pm