git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3478 fc73d0e0-1445-4013-8a0c-d673dee63da5

This commit is contained in:
Magnus 2009-11-24 14:28:23 +00:00
parent fb59b34956
commit 7a5f49e879

View file

@ -88,7 +88,7 @@ float() CheckAttack =
if (enemy_range == RANGE_MELEE)
{
chance = 0.9;
chance = 0.99;
self.attack_finished = 0;
}
else if (enemy_range == RANGE_NEAR)
@ -108,9 +108,9 @@ float() CheckAttack =
else if (enemy_range == RANGE_FAR)
{
if (self.th_melee)
chance = 0.9;
chance = 0.95;
else
chance = 0.9;
chance = 0.95;
}
else
chance = 0;
@ -118,7 +118,7 @@ float() CheckAttack =
if (random () < chance)
{
self.th_missile ();
SUB_AttackFinished (3*random());
SUB_AttackFinished (4*random());
return TRUE;
}
@ -266,20 +266,20 @@ float() SoldierCheckAttack =
return FALSE;
if (enemy_range == RANGE_MELEE)
chance = 0.9;
chance = 0.95;
else if (enemy_range == RANGE_NEAR)
chance = 0.9;
chance = 0.95;
else if (enemy_range == RANGE_MID)
chance = 0.9;
chance = 0.95;
else if (enemy_range == RANGE_FAR)
chance = 0.9;
chance = 0.95;
else
chance = 0;
if (random () < chance)
{
self.th_missile ();
SUB_AttackFinished (1 + random());
SUB_AttackFinished (2 + random());
if (random() < 0.3)
self.lefty = !self.lefty;