Home
last modified time | relevance | path

Searched refs:weightratio (Results 1 – 3 of 3) sorted by relevance

/dports/games/barony/Barony-3.3.7/src/
H A Dactmonster.cpp2893 weightratio = fmin(fmax(0, weightratio), 1); in actMonster()
4236 real_t maxVelX = cos(tangent2) * .045 * (myDex + 10) * weightratio; in actMonster()
4237 real_t maxVelY = sin(tangent2) * .045 * (myDex + 10) * weightratio; in actMonster()
4426 my->monsterHandleKnockbackVelocity(tangent2, weightratio); in actMonster()
4441 MONSTER_VELX = cos(tangent) * .02 * .045 * (myDex + 10) * weightratio; in actMonster()
4442 MONSTER_VELY = sin(tangent) * .02 * .045 * (myDex + 10) * weightratio; in actMonster()
4464 real_t tempVelX = cos(tangent2) * .045 * (myDex + 10) * weightratio * -.5; in actMonster()
4465 real_t tempVelY = sin(tangent2) * .045 * (myDex + 10) * weightratio * -.5; in actMonster()
5318 real_t maxVelX = cos(tangent) * .045 * (myDex + 10) * weightratio; in actMonster()
5319 real_t maxVelY = sin(tangent) * .045 * (myDex + 10) * weightratio; in actMonster()
[all …]
H A Dactplayer.cpp645 double weightratio = 0.0; in handlePlayerMovement() local
674 weightratio = (1000 + my->getSTR() * 100 - weight) / (double)(1000 + my->getSTR() * 100); in handlePlayerMovement()
675 weightratio = fmin(fmax(0, weightratio), 1); in handlePlayerMovement()
773 real_t speedFactor = std::min((DEX * 0.1 + 15.5 - slowSpeedPenalty) * weightratio, maxSpeed); in handlePlayerMovement()
776 speedFactor = std::min((DEX + 10) * weightratio, maxSpeed); in handlePlayerMovement()
780 speedFactor = std::min((DEX * 0.2 + 14 - slowSpeedPenalty) * weightratio, maxSpeed); in handlePlayerMovement()
H A Dentity.hpp596 void monsterHandleKnockbackVelocity(real_t monsterFacingTangent, real_t weightratio);