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

◆ GetApproximateAimOffsets()

override void Weapon_Base::GetApproximateAimOffsets ( Blend2DVector dst,
int characterStance )
inlineprotected

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

637 {
638 if (characterStance >= DayZPlayerConstants.STANCEIDX_RAISED)
639 characterStance -= DayZPlayerConstants.STANCEIDX_RAISED;
640
641 // All following values were set by inspecting the character with
642 // a weapon in-game and adjusting the offsets as such that with
643 // the weapon lift diagnostic enabled, the shapes would nearly
644 // perfectly overlap an equipped RIFLE.
645 if (characterStance == DayZPlayerConstants.STANCEIDX_CROUCH)
646 {
647 dst.Insert( 0.0, -1.0, "0.200 0.238 -0.050"); // fully down
648 dst.Insert( 0.0, -0.5, "0.185 0.142 -0.030"); // halfway down
649 dst.Insert( 0.0, 0.0, "0.170 0.046 -0.028"); // forward
650 dst.Insert( 0.0, 0.5, "0.176 0.023 -0.048"); // halfway up
651 dst.Insert( 0.0, 1.0, "0.182 0.006 -0.059"); // fully up
652 }
653 else if (characterStance == DayZPlayerConstants.STANCEIDX_PRONE)
654 {
655 dst.Insert( 0.0, -1.0, " 0.040 -0.080 -0.030"); // fully down
656 dst.Insert( 0.0, -0.5, " 0.040 -0.040 -0.040"); // halfway down
657 dst.Insert( 0.0, 0.0, " 0.045 0.040 -0.008"); // forward
658 dst.Insert( 0.0, 0.5, " 0.070 -0.115 -0.150"); // halfway up
659 dst.Insert( 0.0, 1.0, " 0.100 -0.160 -0.320"); // fully up
660
661 dst.Insert(-0.3, 0.0, " 0.008 -0.048 -0.056");
662 dst.Insert(-0.5, 0.0, " 0.020 -0.002 0.052");
663 dst.Insert(-0.8, 0.0, " 0.100 0.001 0.075");
664 dst.Insert(-1.0, 0.0, " 0.094 0.110 0.080");
665
666 dst.Insert( 0.3, 0.0, " 0.020 0.030 0.018");
667 dst.Insert( 0.5, 0.0, "-0.040 0.070 0.094");
668 dst.Insert( 0.8, 0.0, "-0.118 0.188 0.050");
669 dst.Insert( 1.0, 0.0, " 0.094 0.110 0.080");
670 }
671 else
672 {
673 dst.Insert( 0.0, -1.0, "0.135 0.155 0.065"); // fully down
674 dst.Insert( 0.0, -0.5, "0.155 0.055 0.030"); // halfway down
675 dst.Insert( 0.0, 0.0, "0.150 0.022 -0.017"); // forward
676 dst.Insert( 0.0, 0.5, "0.140 0.003 -0.032"); // halfway up
677 dst.Insert( 0.0, 1.0, "0.120 -0.026 -0.028"); // fully up
678 }
679 }
DayZPlayerConstants
defined in C++
Определения dayzplayer.c:602

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

Используется в Weapon::ApproximateWeaponLiftTransform().