Raised This Month: $ Target: $400
 0% 

heartbeat


Post New Thread Reply   
 
Thread Tools Display Modes
Joce93
Senior Member
Join Date: Feb 2016
Old 05-15-2016 , 19:07   Re: heartbeat
Reply With Quote #41

Can someone fix 1 thing ? :

1) I still hear the heartbeat when i take a medkit for higher HP.

2) I play on Sven Coop, not CS, but i think it's not a problem.

Help, still need someone to fix my problems !

Thanks

Last edited by Joce93; 08-01-2016 at 12:26.
Joce93 is offline
Old 05-23-2016, 14:36
Joce93
This message has been deleted by Joce93.
Old 06-01-2016, 08:28
Joce93
This message has been deleted by Joce93. Reason: error
Old 07-27-2016, 13:48
Joce93
This message has been deleted by Joce93.
Joce93
Senior Member
Join Date: Feb 2016
Old 08-01-2016 , 11:36   Re: heartbeat
Reply With Quote #42

So nobody can fix that ? :/
Joce93 is offline
Dr Zayd
Senior Member
Join Date: Jun 2014
Location: forums.alliedmods.net
Old 08-01-2016 , 11:42   Re: heartbeat
Reply With Quote #43

This plugin made for a Public server (Don't use dhop plugins for HP)
__________________
Invisible System | 100%
ـــــــــــــــــــــــــــــ
Anti setinfo check | Ez Plugin and lite
ـــــــــــــــــــــــــــــ
[ZP] Free VIP Menu | Free VIP menu | ZP-Mod |
Dr Zayd is offline
Joce93
Senior Member
Join Date: Feb 2016
Old 08-01-2016 , 12:25   Re: heartbeat
Reply With Quote #44

Quote:
Originally Posted by Dr Zayd View Post
This plugin made for a Public server (Don't use dhop plugins for HP)
What are you talking about dude ?

I just need help to fix one problem, and nobody here clearly can do it, so sad
Joce93 is offline
Old 10-03-2016, 05:40
Joce93
This message has been deleted by Joce93.
Joce93
Senior Member
Join Date: Feb 2016
Old 10-28-2016 , 17:54   Re: heartbeat
Reply With Quote #45

Help !
Joce93 is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 10-29-2016 , 12:44   Re: heartbeat
Reply With Quote #46

This will scale according to current health.
If you don't want that, set both volumes to the same value.
Code:
#include <amxmodx> new const gHeartbeat[] = "player/heartbeat1.wav"; new gpcvar_LowHP, gpcvar_VolLow, gpcvar_VolHigh; public plugin_init() {     register_plugin("Low HP Heartbeat", "0.2", "[ --{-@ ]");     gpcvar_LowHP = register_cvar("heartbeat_hp", "40");     gpcvar_VolLow = register_cvar("heartbeat_vol_low", "0.3");     gpcvar_VolHigh = register_cvar("heartbeat_vol_high", "1.0");     register_event("DeathMsg", "eventDeathMsg", "a");     register_event("Health", "eventHealth", "b"); } public plugin_precache()     precache_sound(gHeartbeat); public eventHealth(id) {     new Health = read_data(1);     new LowHP = get_pcvar_num(gpcvar_LowHP);     if ( Health <= LowHP )         StartSound(id, Health, LowHP * 1.0);     else         StopSound(id); } public eventDeathMsg()     StopSound(read_data(2));     StartSound(id, health, Float:LowHP) {     StopSound(id);     new Float:VolLow = get_pcvar_float(gpcvar_VolLow);     new Float:VolHigh = get_pcvar_float(gpcvar_VolHigh);     emit_sound(id, CHAN_VOICE, gHeartbeat, ( VolHigh - VolLow ) * ( LowHP + 1 - health ) / LowHP + VolLow , ATTN_NORM, 0, PITCH_NORM); } StopSound(id)     emit_sound(id, CHAN_VOICE, gHeartbeat, 0.0, ATTN_NONE, SND_STOP, PITCH_NORM);
__________________

Last edited by Black Rose; 10-29-2016 at 12:45.
Black Rose is offline
Joce93
Senior Member
Join Date: Feb 2016
Old 10-30-2016 , 12:49   Re: heartbeat
Reply With Quote #47

Thanks
Joce93 is offline
Joce93
Senior Member
Join Date: Feb 2016
Old 10-31-2016 , 14:30   Re: heartbeat
Reply With Quote #48

I want to delete something;

If i have 5hp for example, other players can hear my heartbeat's sound, even if their hp is full. How can i delete that ?

Thanks
Joce93 is offline
Joce93
Senior Member
Join Date: Feb 2016
Old 11-19-2016 , 10:15   Re: heartbeat
Reply With Quote #49

Help
Joce93 is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 11-19-2016 , 16:58   Re: heartbeat
Reply With Quote #50

I don't know how to do that with emit_sound(). I guess you can use "spk" or "mp3 play" instead.
__________________
Black Rose 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 02:55.


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