View Full Version : Can I lessen the groaning the player makes when he gets shot.
mcduke
30th January 2007, 00:34
The moaning sound the player makes after getting shot (but not killed) just seems to last forever. Is there away to lessen the length of time?
Bjusterbaarlik
30th January 2007, 15:21
There is no way to decrease the time of the groaning, as the player will keep making that sound until he dies. You can turn off health regeneration all together and you will not have the groaning sounds anymore.
Gremmie
9th October 2007, 02:33
I changed the following routine in _healthoverlay.gsc so that the panting stops after approximately 15-20 seconds or so. If you are wounded again it will start over.
playerBreathingSound(healthcap)
{
self endon("end_healthregen");
wait (2);
player = self;
count = 0;
savedHealth = player.health;
for(;;)
{
wait (0.2);
if (player.health <= 0)
return;
// Player still has a lot of health so no breathing sound
if (player.health >= healthcap)
{
count = 0;
continue;
}
if (count < 15)
{
self playSound("bjr_breathing_hurt");
count++;
savedHealth = player.health;
}
else if (player.health < savedHealth)
{
count = 0;
}
wait .784;
wait (0.1 + randomfloat (0.8));
}
}
I also changed this bit of code:
// CVAR------------------------------------------------
if(getcvar("bjr_realregen") == "1")
setcvar("scr_heal", "3");
else
setcvar("scr_heal", "1");
To this
if(getcvar("bjr_realregen") == "1")
setcvar("scr_heal", "2");
else
setcvar("scr_heal", "1");
which was also needed to stop the panting after a bit.
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.