Raised This Month: $110 Target: $400
 27% 

Low health breathe


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
Balck
Senior Member
Join Date: Apr 2013
Location: Kosova-Mitrovica
Old 07-11-2013 , 17:22   Low health breathe
Reply With Quote #1

*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
Attached Files
File Type: zip resources.zip (14.3 KB, 1150 views)
File Type: sma Get Plugin or Get Source (low_hp_breathe.sma - 1630 views - 2.3 KB)
__________________

Last edited by Balck; 02-26-2014 at 10:47.
Balck is offline
Smatify
Senior Member
Join Date: Nov 2012
Location: Where ever you want
Old 07-11-2013 , 17:51   Re: Low health breathe
Reply With Quote #2

PHP Code:
#include <amxmisc> 
Not needed

Quote:
Originally Posted by Kia View Post
For one line you can use TAB instead of using brackets.
Maybe a cvar for the hp?

__________________
Selling Hosting stuff such as Webspace and Game- & VoiceServer

I'm also selling Steam Keys.
For more informations, contact me.

(Homepage is under development)
Smatify is offline
Old 07-11-2013, 17:57
Balck
This message has been deleted by Balck. Reason: nobody needs this shit
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-12-2013 , 02:08   Re: Low health breathe
Reply With Quote #3

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.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
WhyThis
Senior Member
Join Date: May 2013
Old 07-12-2013 , 06:36   Re: Low health breathe
Reply With Quote #4

i like it
it's like a plugin :" Follow the wonded "
WhyThis is offline
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 07-12-2013 , 07:01   Re: Low health breathe
Reply With Quote #5

Quote:
Originally Posted by WhyThis View Post
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.
__________________
ANTICHRISTUS is offline
Old 07-12-2013, 09:39
Balck
This message has been deleted by Balck.
Mauricio Frb
Member
Join Date: Jul 2013
Old 07-13-2013 , 16:17   Re: Low health breathe
Reply With Quote #6

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)
	
	//....
}

Last edited by Mauricio Frb; 07-13-2013 at 16:29.
Mauricio Frb is offline
Old 07-13-2013, 16:41
Balck
This message has been deleted by Balck.
Balck
Senior Member
Join Date: Apr 2013
Location: Kosova-Mitrovica
Old 07-14-2013 , 12:07   Re: Low health breathe
Reply With Quote #7

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

Last edited by Balck; 07-14-2013 at 12:07.
Balck is offline
Mauricio Frb
Member
Join Date: Jul 2013
Old 07-14-2013 , 15:36   Re: Low health breathe
Reply With Quote #8

In my opinion, add a red screen fade too, with a new cvar like amx_low_dmg_redscreen <1 - On or 0 - Off>.
Mauricio Frb is offline
Moody92
Veteran Member
Join Date: May 2011
Location: Oman
Old 07-16-2013 , 15:21   Re: Low health breathe
Reply With Quote #9

Quote:
Originally Posted by Mauricio Frb View Post
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.
Moody92 is offline
Old 07-17-2013, 07:05
Balck
This message has been deleted by Balck. Reason: :S
Balck
Senior Member
Join Date: Apr 2013
Location: Kosova-Mitrovica
Old 08-01-2013 , 14:01   Re: Low health breathe
Reply With Quote #10

Updated
__________________

Last edited by Balck; 06-06-2014 at 16:19.
Balck 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 19:47.


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