AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Low health breathe (https://forums.alliedmods.net/showthread.php?t=220538)

Balck 07-11-2013 16:22

Low health breathe
 
5 Attachment(s)
*Description:

When you are in low health for example from 25 HP and down
this plugin sets a breathe sound like in call of duty.
If you dont understand please download and test it i hope you like it .



*Cvar:

Code:

amx_low_dmg 26          - Set low damage.
amx_low_dmg_sfade 1    - Disable/Enable 0/1 screen fade
amx_low_color 210 0 0  - Change the screen fade color

*Credits:

Thanks to Mauricio Frb for helping me :)
I have use AcidoX's color cvar method

Smatify 07-11-2013 16:51

Re: Low health breathe
 
PHP Code:

#include <amxmisc> 

Not needed

Quote:

Originally Posted by Kia (Post 1954490)
For one line you can use TAB instead of using brackets.

Maybe a cvar for the hp?

:D

ConnorMcLeod 07-12-2013 01:08

Re: Low health breathe
 
Would be better to either build a single looping task where you would retrieve a list of players with low HP, or to hook Health message and start loops only when health < cvar value and remove tasks at new round event.
Also, you should put cvar in main version.

WhyThis 07-12-2013 05:36

Re: Low health breathe
 
i like it
it's like a plugin :" Follow the wonded "

ANTICHRISTUS 07-12-2013 06:01

Re: Low health breathe
 
Quote:

Originally Posted by WhyThis (Post 1989216)
it's like a plugin :" Follow the wonded "

yes, a bit. you can also use ultimate gore, players will bleed if they reach a very low level of hp.

Mauricio Frb 07-13-2013 15:17

Re: Low health breathe
 
Cvar to pcvar (it's more optimized);
Code:

new g_plugin;

public plugin_init()
{
        g_plugin = register_cvar("My_plugin", "26");
}

public random_function()
{
        if(get_pcvar_num(g_plugin) == 26)
       
        //....
}


Balck 07-14-2013 11:07

Re: Low health breathe
 
I don't know :S is it better to add a red screen fade :S

Mauricio Frb 07-14-2013 14:36

Re: Low health breathe
 
In my opinion, add a red screen fade too, with a new cvar like amx_low_dmg_redscreen <1 - On or 0 - Off>.

Moody92 07-16-2013 14:21

Re: Low health breathe
 
Quote:

Originally Posted by Mauricio Frb (Post 1990842)
In my opinion, add a red screen fade too, with a new cvar like amx_low_dmg_redscreen <1 - On or 0 - Off>.

It'll distract the player, useless.

Balck 08-01-2013 13:01

Re: Low health breathe
 
Updated :)


All times are GMT -4. The time now is 12:43.

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