mirror of
https://github.com/unknownworlds/NS.git
synced 2024-11-15 01:02:04 +00:00
o Fixed bug where the blink would go twice the speed at twice the energy cost.
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@504 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
parent
31ee58b70c
commit
d447d6cc67
1 changed files with 5 additions and 5 deletions
|
@ -4358,19 +4358,19 @@ bool PM_BlinkMove (void)
|
||||||
if (pmove->fuser4 != 0.0f)
|
if (pmove->fuser4 != 0.0f)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
float theScalar = 500;
|
float theScalar = 225;
|
||||||
float theEnergyCost = 0;
|
float theEnergyCost = 0;
|
||||||
|
|
||||||
AvHMUGetEnergyCost(AVH_WEAPON_BLINK, theEnergyCost);
|
AvHMUGetEnergyCost(AVH_WEAPON_BLINK, theEnergyCost);
|
||||||
|
|
||||||
if(AvHMUHasEnoughAlienEnergy(pmove->fuser3, theEnergyCost * 2))
|
if(AvHMUHasEnoughAlienEnergy(pmove->fuser3, theEnergyCost))
|
||||||
{
|
{
|
||||||
AvHMUDeductAlienEnergy(pmove->fuser3, theEnergyCost * 2);
|
AvHMUDeductAlienEnergy(pmove->fuser3, theEnergyCost);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
pmove->fuser4 = 2 * (float)BALANCE_VAR(kBlinkROF);
|
pmove->fuser4 = (float)BALANCE_VAR(kBlinkROF);
|
||||||
|
|
||||||
SetUpgradeMask(&pmove->iuser4, MASK_ALIEN_MOVEMENT, true);
|
SetUpgradeMask(&pmove->iuser4, MASK_ALIEN_MOVEMENT, true);
|
||||||
|
|
||||||
|
@ -5435,7 +5435,7 @@ void PM_Jump (void)
|
||||||
}
|
}
|
||||||
// :tankefugl
|
// :tankefugl
|
||||||
|
|
||||||
// No more effect
|
// No more effect
|
||||||
if ( pmove->onground == -1 )
|
if ( pmove->onground == -1 )
|
||||||
{
|
{
|
||||||
// Flag that we jumped.
|
// Flag that we jumped.
|
||||||
|
|
Loading…
Reference in a new issue