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

◆ GetApproximateAimOffsets()

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

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

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

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