AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [NMRiH] Health & Armor Vampirism v1.0.5 [2021/11/21] (https://forums.alliedmods.net/showthread.php?t=300674)

Grey83 08-25-2017 10:39

[NMRiH] Health & Armor Vampirism v1.0.5 [2021/11/21]
 
5 Attachment(s)
Name: Health & Armor Vampirism

Description: Leech health and armor from killed zombies.
Set initial amount of the armor.
It's rewritten and improwed [NMRiH] Health Vampirism.

Info in the HUD:
Attachment 165115
(sm_hav_max_ap = 0; sm_hav_max_ap > 0; infected; dead; extracted)
Full screen

Info in the hint:
Attachment 165116
(sm_hav_max_ap > 0; infected)

Installation: Place compiled plugin (cure_vampirism.smx) into the plugins folder (../addons/sourcemod/plugins/).
Need SM1.8_stable to compile

CVars:
  • nmrih_hav_version - Plugin's version
  • sm_hav_enable - Enables/disables leech health from killed zombies
  • sm_hav_hint - The display current player's health in the: 1 = hint, 0 = HUD
  • sm_hav_stamina - Show current stamina level (always as a percentage of the maximum level)
  • sm_hav_max_hp - The maximum amount of health, which can get a player for killing zombies
  • sm_hav_max_ap - The maximum amount of armor, which can get a player for killing zombies
  • sm_hav_start_ap - Amount of armor, which can get a player after spawn
  • sm_hav_kill - Health/Armor gained from kill
  • sm_hav_headshot - Health/Armor gained from headshot
  • sm_hav_fire - Health/Armor gained from burning zombie
  • sm_hav_update - Update info every x seconds (0.0 - show only changes)
  • sm_hav_hud_x - HUD info position X (0.0 - 1.0 left to right or -1.0 for center)
  • sm_hav_hud_y - HUD info position Y (0.0 - 1.0 top to bottom or -1.0 for center)

lobo_arg 01-30-2019 23:07

Re: [NMRiH] Health & Armor Vampirism
 
When sm_hav_max_ap = 0 the shield symbol continues to appear.
Is there another way that only the symbol of the heart appears?

Grey83 01-31-2019 11:43

Re: [NMRiH] Health & Armor Vampirism
 
1 Attachment(s)
lobo_arg, oops
I forgot to update the plugin here
v1.0.2 was created 2018/12/09

phoenix0001 12-08-2019 11:43

Re: [NMRiH] Health & Armor Vampirism
 
L 12/09/2019 - 00:43:04: SourceMod error session started
L 12/09/2019 - 00:43:04: Info (map "nmo_quarantine") (file "E:\NMRHD\nmrih\addons\sourcemod\logs\errors_ 20191209.log")
L 12/09/2019 - 00:43:04: [SM] Exception reported: Can't find offset 'm_iMaxHealth'!
L 12/09/2019 - 00:43:04: [SM] Blaming: nmrih_hav 1.0.2.smx
L 12/09/2019 - 00:43:04: [SM] Call stack trace:
L 12/09/2019 - 00:43:04: [SM] [0] SetFailState
L 12/09/2019 - 00:43:04: [SM] [1] Line 51, /home/forums/content/files/2/5/6/7/1/3/173588.attach::OnPluginStart
L 12/09/2019 - 00:43:04: [SM] Unable to load plugin "nmrih_hav 1.0.2.smx": Error detected in plugin startup (see error logs)

Grey83 12-08-2019 14:08

Re: [NMRiH] Health & Armor Vampirism
 
phoenix0001, most likely problems with SM.

phoenix0001 12-09-2019 03:28

Re: [NMRiH] Health & Armor Vampirism
 
nmrih_hav 1.0.0.sp Currently in normal use
nmrih_hav 1.0.2.sp Currently unavailable

Grey83 12-09-2019 07:54

Re: [NMRiH] Health & Armor Vampirism
 
phoenix0001, my fault.
You should remove lines 50 and 51.

Grey83 01-05-2020 15:17

Re: [NMRiH] Health & Armor Vampirism
 
1 Attachment(s)
Changes in 1.0.3 [2020/01/05]:
  • Added new cvars:
    sm_hav_stamina - Show current stamina level (shows 0 - 100%)
    sm_hav_update - Update info every x seconds (0 - show only on HP and/or AP rise)
    sm_hav_hud_x - HUD info position X (0.0 - 1.0 left to right or -1 for center)
    sm_hav_hud_y - HUD info position Y (0.0 - 1.0 top to bottom or -1 for center)"
  • Some code optimizations
  • Fixed error "Exception reported: Can't find offset 'm_iMaxHealth'!"

phoenix0001 01-29-2020 14:39

Re: [NMRiH] Health & Armor Vampirism
 
Quote:

Originally Posted by Grey83 (Post 2679072)
Changes in 1.0.3 [2020/01/05]:
  • Added new cvars:
    sm_hav_stamina - Show current stamina level (shows 0 - 100%)
    sm_hav_update - Update info every x seconds (0 - show only on HP and/or AP rise)
    sm_hav_hud_x - HUD info position X (0.0 - 1.0 left to right or -1 for center)
    sm_hav_hud_y - HUD info position Y (0.0 - 1.0 top to bottom or -1 for center)"
  • Some code optimizations
  • Fixed error "Exception reported: Can't find offset 'm_iMaxHealth'!"

https://steamuserimages-a.akamaihd.n...1ED394655A0BD/

How do I get the map name and IP in the upper right corner?

"♡", "☣", "☺", "☠"
healthy, infected, extracted, dead.
"extracted",What's the meaning of this? I don't know where it's shown? Or what's the use?

Why can't HUD display all the time?
It has been shown in previous versions.

phoenix0001 01-29-2020 15:04

Re: [NMRiH] Health & Armor Vampirism
 
PHP Code:

L 01/30/2020 04:03:37: [SMException reportedClient 2 is not in game
L 01
/30/2020 04:03:37: [SMBlamingnmrih_hav 1.0.3.smx
L 01
/30/2020 04:03:37: [SMCall stack trace:
L 01/30/2020 04:03:37: [SM]   [0IsPlayerAlive
L 01
/30/2020 04:03:37: [SM]   [1Line 359E:\NMRHD\nmrih\addons\sourcemod\scripting\nmrih_hav 1.0.3.sp::UpdateHUD
L 01
/30/2020 04:03:37: [SM]   [2Line 231E:\NMRHD\nmrih\addons\sourcemod\scripting\nmrih_hav 1.0.3.sp::Timer_UpdateInfo
L 01
/30/2020 04:03:37: [SMException reportedClient 2 is not in game
L 01
/30/2020 04:03:37: [SMBlamingnmrih_hav 1.0.3.smx
L 01
/30/2020 04:03:37: [SMCall stack trace:
L 01/30/2020 04:03:37: [SM]   [0IsPlayerAlive
L 01
/30/2020 04:03:37: [SM]   [1Line 359E:\NMRHD\nmrih\addons\sourcemod\scripting\nmrih_hav 1.0.3.sp::UpdateHUD
L 01
/30/2020 04:03:37: [SM]   [2Line 231E:\NMRHD\nmrih\addons\sourcemod\scripting\nmrih_hav 1.0.3.sp::Timer_UpdateInfo
L 01
/30/2020 04:03:38: [SMException reportedClient 2 is not in game
L 01
/30/2020 04:03:38: [SMBlamingnmrih_hav 1.0.3.smx
L 01
/30/2020 04:03:38: [SMCall stack trace:
L 01/30/2020 04:03:38: [SM]   [0IsPlayerAlive
L 01
/30/2020 04:03:38: [SM]   [1Line 359E:\NMRHD\nmrih\addons\sourcemod\scripting\nmrih_hav 1.0.3.sp::UpdateHUD
L 01
/30/2020 04:03:38: [SM]   [2Line 231E:\NMRHD\nmrih\addons\sourcemod\scripting\nmrih_hav 1.0.3.sp::Timer_UpdateInfo
L 01
/30/2020 04:03:38: [SMException reportedClient 2 is not in game
L 01
/30/2020 04:03:38: [SMBlamingnmrih_hav 1.0.3.smx
L 01
/30/2020 04:03:38: [SMCall stack trace:
L 01/30/2020 04:03:38: [SM]   [0IsPlayerAlive
L 01
/30/2020 04:03:38: [SM]   [1Line 359E:\NMRHD\nmrih\addons\sourcemod\scripting\nmrih_hav 1.0.3.sp::UpdateHUD
L 01
/30/2020 04:03:38: [SM]   [2Line 231E:\NMRHD\nmrih\addons\sourcemod\scripting\nmrih_hav 1.0.3.sp::Timer_UpdateInfo
L 01
/30/2020 04:03:39: [SMException reportedClient 2 is not in game
L 01
/30/2020 04:03:39: [SMBlamingnmrih_hav 1.0.3.smx
L 01
/30/2020 04:03:39: [SMCall stack trace:
L 01/30/2020 04:03:39: [SM]   [0IsPlayerAlive
L 01
/30/2020 04:03:39: [SM]   [1Line 359E:\NMRHD\nmrih\addons\sourcemod\scripting\nmrih_hav 1.0.3.sp::UpdateHUD
L 01
/30/2020 04:03:39: [SM]   [2Line 231E:\NMRHD\nmrih\addons\sourcemod\scripting\nmrih_hav 1.0.3.sp::Timer_UpdateInfo
L 01
/30/2020 04:03:39: [SMException reportedClient 2 is not in game
L 01
/30/2020 04:03:39: [SMBlamingnmrih_hav 1.0.3.smx
L 01
/30/2020 04:03:39: [SMCall stack trace:
L 01/30/2020 04:03:39: [SM]   [0IsPlayerAlive
L 01
/30/2020 04:03:39: [SM]   [1Line 359E:\NMRHD\nmrih\addons\sourcemod\scripting\nmrih_hav 1.0.3.sp::UpdateHUD
L 01
/30/2020 04:03:39: [SM]   [2Line 231E:\NMRHD\nmrih\addons\sourcemod\scripting\nmrih_hav 1.0.3.sp::Timer_UpdateInfo 



All times are GMT -4. The time now is 18:58.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.