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

Low health breathe


Post New Thread Reply   
 
Thread Tools Display Modes
Nax0ne
Senior Member
Join Date: Jul 2011
Location: Chile
Old 12-27-2013 , 12:44   Re: Low health breathe
Reply With Quote #11

There is a bug: When any player takes extra life (Example: Medkit Item), and has more than 25 HP, still the effect of "Low HP Heartbeat" ...

How can I fix this?
Nax0ne is offline
Backstabnoob
Veteran Member
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 12-27-2013 , 17:48   Re: Low health breathe
Reply With Quote #12

Code:
public lowdmg(id){     client_cmd(id, "spk sound/breathe");         if(get_pcvar_num(lowdmgfade)){         message_begin(MSG_ONE, get_user_msgid("ScreenFade"), {0,0,0}, id)         write_short( 10<<12 ) // fade lasts this long duration         write_short( 10<<16 ) // fade lasts this long hold time         write_short( 1<<0 ) // fade type (in / out)         write_byte( 210 ) // fade red         write_byte( 0 ) // fade green         write_byte( 0 ) // fade blue         write_byte( 210 ) // fade alpha         message_end()     } }
=>
Code:
public lowdmg(id){     if( get_user_health( id ) > get_pcvar_num( dmgcvar ) )     {         remove_task( id )         low_dmg[ id ] = false         return     }     client_cmd(id, "spk sound/breathe");         if(get_pcvar_num(lowdmgfade)){         message_begin(MSG_ONE, get_user_msgid("ScreenFade"), {0,0,0}, id)         write_short( 10<<12 ) // fade lasts this long duration         write_short( 10<<16 ) // fade lasts this long hold time         write_short( 1<<0 ) // fade type (in / out)         write_byte( 210 ) // fade red         write_byte( 0 ) // fade green         write_byte( 0 ) // fade blue         write_byte( 210 ) // fade alpha         message_end()     } }
__________________
Currently busy working on a very large scale anime database project.
Backstabnoob is offline
jingojang
Senior Member
Join Date: Feb 2010
Location: The Moon
Old 12-28-2013 , 05:02   Re: Low health breathe
Reply With Quote #13

Cool idea even though it feels like I've seen it before, will test later.
__________________
jingojang is offline
Balck
Senior Member
Join Date: Apr 2013
Location: Kosova-Mitrovica
Old 12-28-2013 , 14:46   Re: Low health breathe
Reply With Quote #14

yes, sory for that i have not test it so good but thanks Backstabnoob
__________________
Balck is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-30-2013 , 06:47   Re: Low health breathe
Reply With Quote #15

So do this updates and add them into your firs post:

1. Instead of making two tasks make just one that will repet from x to x seconds.
2. Check if the hp is bigger that the value stored into cvar and destroy the task.
3. You can use bool for number 2.
HamletEagle is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 01-23-2014 , 05:51   Re: Low health breathe
Reply With Quote #16

Quote:
Originally Posted by Moody92 View Post
It'll distract the player, useless.
Well I suppose that would be the idea if you chose to use the plugin ...

I think a black fade would be better than red - more like blinking eyes. Another thing you could add as a cvar - colour.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 02-21-2014 , 05:49   Re: Low health breathe
Reply With Quote #17

Is this plugin still being supported?
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
Balck
Senior Member
Join Date: Apr 2013
Location: Kosova-Mitrovica
Old 02-26-2014 , 09:54   Re: Low health breathe
Reply With Quote #18

Updated added a color cvar.
__________________
Balck is offline
Madster94
Junior Member
Join Date: May 2016
Old 06-02-2016 , 09:58   Re: Low health breathe
Reply With Quote #19

I am new
so please tell me where to put that
breath sound file

please
Madster94 is offline
hellmonja
Senior Member
Join Date: Oct 2015
Old 06-02-2016 , 23:59   Re: Low health breathe
Reply With Quote #20

Quote:
Originally Posted by Madster94 View Post
I am new
so please tell me where to put that
breath sound file

please
cstrike/sound/ <-- in there.

Anyway, this thread is 3 years old. Has this been approved?...
hellmonja is offline
Reply



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 23:12.


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