Raised This Month: $12 Target: $400
 3% 

[NMRiH] Health & Armor Vampirism v1.0.5 [2021/11/21]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Plugin ID:
5782
Plugin Version:
1.0.5
Plugin Category:
Gameplay
Plugin Game:
No More Room in Hell
Plugin Dependencies:
    Servers with this Plugin:
    46 
    Plugin Description:
    Leech health and armor from killed zombies. Set initial amount of the armor.
    Old 08-25-2017 , 10:39   [NMRiH] Health & Armor Vampirism v1.0.5 [2021/11/21]
    Reply With Quote #1

    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:
    Name:  nmrih_hav.jpg
Views: 4323
Size:  18.0 KB
    (sm_hav_max_ap = 0; sm_hav_max_ap > 0; infected; dead; extracted)
    Full screen

    Info in the hint:
    Name:  nmrih_hav_hint.jpg
Views: 4144
Size:  9.9 KB
    (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)
    Attached Files
    File Type: sp Get Plugin or Get Source (nmrih_hav 1.0.0.sp - 2326 views - 9.0 KB)
    File Type: sp Get Plugin or Get Source (nmrih_hav 1.0.4_20.11.2021.sp - 609 views - 11.4 KB)
    File Type: zip nmrih_hav 1.0.5_21.11.2021.zip (7.1 KB, 513 views)
    __________________

    Last edited by Grey83; 11-20-2021 at 18:27.
    Grey83 is offline
    lobo_arg
    Junior Member
    Join Date: Mar 2017
    Old 01-30-2019 , 23:07   Re: [NMRiH] Health & Armor Vampirism
    Reply With Quote #2

    When sm_hav_max_ap = 0 the shield symbol continues to appear.
    Is there another way that only the symbol of the heart appears?
    lobo_arg is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 01-31-2019 , 11:43   Re: [NMRiH] Health & Armor Vampirism
    Reply With Quote #3

    lobo_arg, oops
    I forgot to update the plugin here
    v1.0.2 was created 2018/12/09
    Attached Files
    File Type: sp Get Plugin or Get Source (nmrih_hav 1.0.2.sp - 1098 views - 9.9 KB)
    __________________

    Last edited by Grey83; 01-31-2019 at 11:44.
    Grey83 is offline
    phoenix0001
    Senior Member
    Join Date: Apr 2010
    Location: China
    Old 12-08-2019 , 11:43   Re: [NMRiH] Health & Armor Vampirism
    Reply With Quote #4

    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)
    __________________
    I like this BBS sharing of spirit

    I come from China, my English is poor
    phoenix0001 is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 12-08-2019 , 14:08   Re: [NMRiH] Health & Armor Vampirism
    Reply With Quote #5

    phoenix0001, most likely problems with SM.
    __________________
    Grey83 is offline
    phoenix0001
    Senior Member
    Join Date: Apr 2010
    Location: China
    Old 12-09-2019 , 03:28   Re: [NMRiH] Health & Armor Vampirism
    Reply With Quote #6

    nmrih_hav 1.0.0.sp Currently in normal use
    nmrih_hav 1.0.2.sp Currently unavailable
    __________________
    I like this BBS sharing of spirit

    I come from China, my English is poor
    phoenix0001 is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 12-09-2019 , 07:54   Re: [NMRiH] Health & Armor Vampirism
    Reply With Quote #7

    phoenix0001, my fault.
    You should remove lines 50 and 51.
    __________________
    Grey83 is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 01-05-2020 , 15:17   Re: [NMRiH] Health & Armor Vampirism
    Reply With Quote #8

    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'!"
    Attached Files
    File Type: sp Get Plugin or Get Source (nmrih_hav 1.0.3.sp - 947 views - 11.4 KB)
    __________________

    Last edited by Grey83; 01-05-2020 at 15:28.
    Grey83 is offline
    phoenix0001
    Senior Member
    Join Date: Apr 2010
    Location: China
    Old 01-29-2020 , 14:39   Re: [NMRiH] Health & Armor Vampirism
    Reply With Quote #9

    Quote:
    Originally Posted by Grey83 View Post
    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'!"


    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.
    __________________
    I like this BBS sharing of spirit

    I come from China, my English is poor

    Last edited by phoenix0001; 01-29-2020 at 15:40.
    phoenix0001 is offline
    phoenix0001
    Senior Member
    Join Date: Apr 2010
    Location: China
    Old 01-29-2020 , 15:04   Re: [NMRiH] Health & Armor Vampirism
    Reply With Quote #10

    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 
    __________________
    I like this BBS sharing of spirit

    I come from China, my English is poor
    phoenix0001 is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


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


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