mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-25 21:31:28 +00:00
SERVER: Accurate Hellhound health
This commit is contained in:
parent
45a9714ea6
commit
88df199025
3 changed files with 20 additions and 1 deletions
|
@ -255,6 +255,23 @@ entity() Dog_FindEnemy =
|
|||
return find(world, classname, "info_player_1_spawn");
|
||||
}
|
||||
|
||||
//
|
||||
// Dog_GetHealth()
|
||||
// Returns the amount of health Hellhounds
|
||||
// should have.
|
||||
//
|
||||
float() Dog_GetHealth =
|
||||
{
|
||||
switch(dog_round_count) {
|
||||
case 1: return 400;
|
||||
case 2: return 900;
|
||||
case 3: return 1300;
|
||||
default: return 1600;
|
||||
}
|
||||
|
||||
return 1600;
|
||||
}
|
||||
|
||||
void(entity where) spawn_a_dogB =
|
||||
{
|
||||
local entity sdog;//USED FOR WHAT TO SPAWN
|
||||
|
@ -302,7 +319,7 @@ void(entity where) spawn_a_dogB =
|
|||
|
||||
sdog.ideal_yaw = sdog.angles_y;
|
||||
sdog.yaw_speed = 20;
|
||||
sdog.health = z_health;
|
||||
sdog.health = Dog_GetHealth();
|
||||
sdog.th_die = Dog_Death;
|
||||
sdog.th_walk = Dog_Walk_Setup;
|
||||
sdog.outside = FALSE;
|
||||
|
|
|
@ -380,6 +380,7 @@ float() spawn_a_zombieA;
|
|||
float gotdog;
|
||||
float dogRound;
|
||||
float dogWave;
|
||||
float dog_round_count;
|
||||
float z_health;
|
||||
.float bleedingtime;
|
||||
.float time_to_die;
|
||||
|
|
|
@ -183,6 +183,7 @@ void() NewRound =
|
|||
if (gotdog && rounds == (dogRound - 1)) {
|
||||
playSoundAtPlayers("sounds/rounds/droundstart.wav");
|
||||
dogWave = true;
|
||||
dog_round_count++;
|
||||
} else {
|
||||
playSoundAtPlayers("sounds/rounds/nround.wav");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue