From 7a5f49e879a9e0a83ec841589c7cc41abcf816f2 Mon Sep 17 00:00:00 2001 From: Magnus Date: Tue, 24 Nov 2009 14:28:23 +0000 Subject: [PATCH] git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3478 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- quakec/fallout2/fight.qc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/quakec/fallout2/fight.qc b/quakec/fallout2/fight.qc index e2fb5eeaf..10482d327 100644 --- a/quakec/fallout2/fight.qc +++ b/quakec/fallout2/fight.qc @@ -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;