- Added code submissions for non-piercing railguns and new skill options.
SVN r1706 (trunk)
This commit is contained in:
parent
3786ced96e
commit
635d71e660
25 changed files with 155 additions and 50 deletions
|
|
@ -91,7 +91,7 @@ DEFINE_ACTION_FUNCTION(AActor, A_KoraxChase)
|
|||
{
|
||||
AActor *spot;
|
||||
|
||||
if ((!self->special2) && (self->health <= (self->GetDefault()->health/2)))
|
||||
if ((!self->special2) && (self->health <= (self->SpawnHealth()/2)))
|
||||
{
|
||||
FActorIterator iterator (KORAX_FIRST_TELEPORT_TID);
|
||||
spot = iterator.Next ();
|
||||
|
|
@ -117,7 +117,7 @@ DEFINE_ACTION_FUNCTION(AActor, A_KoraxChase)
|
|||
}
|
||||
|
||||
// Teleport away
|
||||
if (self->health < (self->GetDefault()->health>>1))
|
||||
if (self->health < (self->SpawnHealth()>>1))
|
||||
{
|
||||
if (pr_koraxchase()<10)
|
||||
{
|
||||
|
|
@ -261,7 +261,7 @@ DEFINE_ACTION_FUNCTION(AActor, A_KoraxCommand)
|
|||
z = self->z + KORAX_COMMAND_HEIGHT*FRACUNIT;
|
||||
Spawn("KoraxBolt", x, y, z, ALLOW_REPLACE);
|
||||
|
||||
if (self->health <= (self->GetDefault()->health >> 1))
|
||||
if (self->health <= (self->SpawnHealth() >> 1))
|
||||
{
|
||||
numcommands = 5;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue