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

[NMRiH] health_and_stamina_disp v1.1.2


Post New Thread Reply   
 
Thread Tools Display Modes
Author
yomox9
Member
Join Date: Jan 2014
Location: jp
Plugin ID:
6735
Plugin Version:
1.1.2
Plugin Category:
General Purpose
Plugin Game:
No More Room in Hell
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Show Health & Stamina when player crouch.
    Old 09-23-2019 , 10:09   [NMRiH] health_and_stamina_disp v1.1.2
    Reply With Quote #1

    2020/08/07 updated.
    2020/08/05 updated.

    This plugin show Health & Stamina when player crouch.

    Example.
    Health: 100
    Stamina :130
    Charge Attack : 639

    Suppouts Multi language.

    eg. Japanese


    Made by Dayonn_dayonn
    Attached Files
    File Type: zip health_and_stamina_disp v1.0.4.zip (4.6 KB, 535 views)
    File Type: zip health_and_stamina_disp v1.1.1.zip (19.2 KB, 255 views)
    File Type: zip health_and_stamina_disp v1.1.2.zip (19.2 KB, 1019 views)

    Last edited by yomox9; 08-07-2020 at 01:51.
    yomox9 is offline
    Dayonn_dayonn
    Member
    Join Date: Feb 2018
    Location: japan
    Old 08-05-2020 , 00:49   ver up: [NMRiH] health_and_stamina_disp v1.1.1
    Reply With Quote #2

    I updated health_and_stamina_disp.

    [change]
    ・Smoothing the color change of the health display.
    ・Added indication of infection, bleeding and vaccine injections.
    ・The display was changed from 2 lines to 3 lines.
    ・Added display of charge attack power and damage.
    ・Support for translation functions. (For non-English and Japanese, please edit and add the translated text in health_and_stamina_disp.phrases.txt).
    ・Added the ability to change the character position and line spacing.
    ・Added the ability to hide only the first line of text.(If you want to use this with Mr./Ms. Gray83's <[NMRiH] Health & Armor Vampirism>, please delete the first line and change the text position.)
    ・To reduce the load on the server, I reduced the number of screen updates to 10 times per second. (In version 1.0.4, the screen refresh was probably 30 times per second.)

    Last edited by Dayonn_dayonn; 08-06-2020 at 23:59.
    Dayonn_dayonn is offline
    Dayonn_dayonn
    Member
    Join Date: Feb 2018
    Location: japan
    Old 08-07-2020 , 00:06   [NMRiH] health_and_stamina_disp v1.1.2
    Reply With Quote #3

    I have found and corrected the error.

    [change]
    ・Fixed a different color change when the health was 99-67.
    Attached Files
    File Type: zip health_and_stamina_disp v1.1.2.zip (19.2 KB, 281 views)
    Dayonn_dayonn is offline
    Lord Stranker
    New Member
    Join Date: Aug 2020
    Old 08-25-2020 , 18:20   Re: [NMRiH] health_and_stamina_disp v1.1.2
    Reply With Quote #4

    Hi Dayonn!

    I really liked your mod, and I have one question. Can i change the button to display the health and stamina? I mean, I want to change the button to display it, like pressing Z instead of pressing CTROL.

    I'm newbie about programming, can you help me about this? or the way your plugin is I can't do that?

    Last edited by Lord Stranker; 08-25-2020 at 18:20.
    Lord Stranker is offline
    Dayonn_dayonn
    Member
    Join Date: Feb 2018
    Location: japan
    Old 08-25-2020 , 22:46   Re: [NMRiH] health_and_stamina_disp v1.1.2
    Reply With Quote #5

    ok, I try to update this plugin. please wait ....
    few days ??
    Dayonn_dayonn is offline
    Dayonn_dayonn
    Member
    Join Date: Feb 2018
    Location: japan
    Old 08-25-2020 , 23:55   Re: [NMRiH] health_and_stamina_disp v1.1.2
    Reply With Quote #6

    What kind of keybindings would you like to see?
    In other words, do you want 'Show when you hold down a key' or 'Toggle to show or hide'?
    Dayonn_dayonn is offline
    Dayonn_dayonn
    Member
    Join Date: Feb 2018
    Location: japan
    Old 08-26-2020 , 11:17   [NMRiH] health_and_stamina_disp v1.1.3
    Reply With Quote #7

    I updated health_and_stamina_disp.

    [change]
    ・Each character string position can now be changed by .cfg file.
    ・Can change the button to display the health and stamina by .cfg file.
    (Show when you hold down a key, not toggle.)

    I think to make each display temporary and turn it off, Because each display by this plugin interferes with each display by the map and turns it off. For example, in nmo_galleria_v13, the player's money display will disappear if you do all the displays by this plugin.
    If the toggle style, the player will forget to hide it. This may result in messages from the map not being displayed. Therefore, I have adopted the press-and-hold style.
    Attached Files
    File Type: zip health_and_stamina_disp v1.1.3.zip (20.7 KB, 298 views)
    Dayonn_dayonn is offline
    Lord Stranker
    New Member
    Join Date: Aug 2020
    Old 08-26-2020 , 16:03   Re: [NMRiH] health_and_stamina_disp v1.1.2
    Reply With Quote #8

    I'm a very casual player, so there is no problem in waiting. but you did it in less than a day, thank you!

    I was using your mod before you update it, the version 1.0.4, and I changed it to display all the time, later I found a problem with that turned on, like you said, when messages of the map show, they instant dissapear so it's better to show and hide.

    Yesterday I played some maps, and almost every time I changed the server difficulty to casual for respawn, the plugin started to display some loop error, then it lagged all the server and need to be restarted to solve it and stop showing the error. And that occurred one time with the respawn of the map itself(checkpoint) but happenned one or two times.

    maybe it can't understand the value of life that was 0 ou negative then reseting to 100.

    another thing, There is a special command that I can put and then Show the Health in one line and the Stamina in another? I mean, on the translation they are separated by comma, there is a "line breaker" to change the display to another line?
    Lord Stranker is offline
    Dayonn_dayonn
    Member
    Join Date: Feb 2018
    Location: japan
    Old 08-26-2020 , 22:12   [NMRiH] health_and_stamina_disp v1.1.3a
    Reply With Quote #9

    Quote:
    Yesterday I played some maps, and almost every time I changed the server difficulty to casual for respawn, the plugin started to display some loop error, then it lagged all the server and need to be restarted to solve it and stop showing the error. And that occurred one time with the respawn of the map itself(checkpoint) but happenned one or two times.
    I think, unhooked weapon changing function when quickly logout and login, and not understand client's using weapon, then error when player charge to attack.Maybe....
    please use this test version(changed only .sp file and .smx file). and give it a few days to see how it goes.If more errors, please copy from "..\addons\sourcemod\logs\errors_202008xx.log " and paste here.

    Quote:
    another thing, There is a special command that I can put and then Show the Health in one line and the Stamina in another? I mean, on the translation they are separated by comma, there is a "line breaker" to change the display to another line?
    If you wish, please edit it.most easy is change line 6 in health_and_stamina_disp.phrases.txt.
    [from]
    Code:
    "en"		"Health; {1} , Stamina; {2}"
    [to]
    Code:
    "en"		"Health; {1}\nStamina; {2}"
    \n is a line break in a string.

    or, you can edit .sp file. Please edit FormatEx function and Format function in Line 365-388 (at ver 1.1.3a) with using "\n".
    https://sm.alliedmods.net/new-api/string/Format
    https://wiki.alliedmods.net/Format_C...eMod_Scripting)
    Attached Files
    File Type: zip health_and_stamina_disp v1.1.3a.zip (20.9 KB, 415 views)
    Dayonn_dayonn is offline
    Dayonn_dayonn
    Member
    Join Date: Feb 2018
    Location: japan
    Old 08-27-2020 , 12:21   Re: [NMRiH] health_and_stamina_disp v1.1.2
    Reply With Quote #10

    There is a new bug. Once you crouch down, your strength and stamina will be displayed forever. This bug will be fixed in version 1.1.4.
    Dayonn_dayonn 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 08:08.


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