DayZ 1.28
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ GetApproximateAimOffsets()

void Weapon::GetApproximateAimOffsets ( Blend2DVector dst,
int characterStance )
inlineprotected

См. определение в файле Weapon_Base.c строка 1476

1477 {
1478 if (characterStance >= DayZPlayerConstants.STANCEIDX_RAISED)
1479 characterStance -= DayZPlayerConstants.STANCEIDX_RAISED;
1480
1481 // All following values were set by inspecting the character with
1482 // a weapon in-game and adjusting the offsets as such that with
1483 // the weapon lift diagnostic enabled, the shapes would nearly
1484 // perfectly overlap an equipped RIFLE.
1485 if (characterStance == DayZPlayerConstants.STANCEIDX_CROUCH)
1486 {
1487 dst.Insert( 0.0, -1.0, " 0.16 0.22 -0.04"); // fully down
1488 dst.Insert( 0.0, -0.5, " 0.14 0.13 0.00"); // halway down
1489 dst.Insert( 0.0, 0.0, " 0.13 0.04 -0.02"); // forward
1490 dst.Insert( 0.0, 0.5, " 0.13 0.01 -0.03"); // halfway up
1491 dst.Insert( 0.0, 1.0, " 0.14 -0.01 -0.04"); // fully up
1492 }
1493 else if (characterStance == DayZPlayerConstants.STANCEIDX_PRONE)
1494 {
1495 dst.Insert( 0.0, -1.0, " 0.120 -0.080 -0.030"); // fully down
1496 dst.Insert( 0.0, -0.5, " 0.120 -0.040 -0.040"); // halfway down
1497 dst.Insert( 0.0, 0.0, " 0.120 0.010 -0.022");// forward
1498 dst.Insert( 0.0, 0.5, " 0.120 -0.080 -0.050"); // halfway up
1499 dst.Insert( 0.0, 1.0, " 0.120 -0.160 -0.130"); // fully up
1500
1501 // prone is very special, so there are some points mapped
1502 // when aiming right and left (and up), to at least somewhat
1503 // correspond with the actual character animation
1504 dst.Insert( 0.3, 0.0, " 0.110 0.008 0.010");
1505 dst.Insert( 0.5, 0.0, " 0.000 0.100 0.025");
1506 dst.Insert( 0.8, 0.0, " 0.070 0.150 -0.014");
1507 dst.Insert( 1.0, 0.0, " 0.140 -0.050 0.020");
1508
1509 dst.Insert(-0.3, 0.0, " 0.090 -0.100 -0.025");
1510 dst.Insert(-0.5, 0.0, " 0.072 -0.064 -0.002");
1511 dst.Insert(-0.9, 0.0, " 0.129 -0.080 0.015");
1512 dst.Insert(-1.0, 0.0, " 0.140 -0.050 0.020");
1513
1514 dst.Insert( 0.5, 1.0, "-0.050 0.150 0.120");
1515 dst.Insert( 1.0, 1.0, " 0.150 -0.035 0.030");
1516 dst.Insert(-0.5, 1.0, " 0.050 -0.124 -0.040");
1517 dst.Insert(-1.0, 1.0, " 0.150 -0.035 0.030");
1518 }
1519 else
1520 {
1521 dst.Insert( 0.0, -1.0, "0.13 0.14 0.082"); // fully down
1522 dst.Insert( 0.0, -0.5, "0.13 0.05 0.048"); // halfway down
1523 dst.Insert( 0.0, 0.0, "0.13 0.01 -0.008"); // forward
1524 dst.Insert( 0.0, 0.5, "0.13 0.00 -0.015"); // halfway up
1525 dst.Insert( 0.0, 1.0, "0.13 -0.04 -0.016"); // fully up
1526 }
1527 }
DayZPlayerConstants
defined in C++
Определения dayzplayer.c:602

Перекрестные ссылки Blend2DVector.