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

◆ GetApproximateAimOffsets()

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

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

657 {
658 if (characterStance >= DayZPlayerConstants.STANCEIDX_RAISED)
659 characterStance -= DayZPlayerConstants.STANCEIDX_RAISED;
660
661 // All following values were set by inspecting the character with
662 // a weapon in-game and adjusting the offsets as such that with
663 // the weapon lift diagnostic enabled, the shapes would nearly
664 // perfectly overlap an equipped RIFLE.
665 if (characterStance == DayZPlayerConstants.STANCEIDX_CROUCH)
666 {
667 dst.Insert( 0.0, -1.0, "0.200 0.238 -0.050"); // fully down
668 dst.Insert( 0.0, -0.5, "0.185 0.142 -0.030"); // halfway down
669 dst.Insert( 0.0, 0.0, "0.170 0.046 -0.028"); // forward
670 dst.Insert( 0.0, 0.5, "0.176 0.023 -0.048"); // halfway up
671 dst.Insert( 0.0, 1.0, "0.182 0.006 -0.059"); // fully up
672 }
673 else if (characterStance == DayZPlayerConstants.STANCEIDX_PRONE)
674 {
675 dst.Insert( 0.0, -1.0, " 0.040 -0.080 -0.030"); // fully down
676 dst.Insert( 0.0, -0.5, " 0.040 -0.040 -0.040"); // halfway down
677 dst.Insert( 0.0, 0.0, " 0.045 0.040 -0.008"); // forward
678 dst.Insert( 0.0, 0.5, " 0.070 -0.115 -0.150"); // halfway up
679 dst.Insert( 0.0, 1.0, " 0.100 -0.160 -0.320"); // fully up
680
681 dst.Insert(-0.3, 0.0, " 0.008 -0.048 -0.056");
682 dst.Insert(-0.5, 0.0, " 0.020 -0.002 0.052");
683 dst.Insert(-0.8, 0.0, " 0.100 0.001 0.075");
684 dst.Insert(-1.0, 0.0, " 0.094 0.110 0.080");
685
686 dst.Insert( 0.3, 0.0, " 0.020 0.030 0.018");
687 dst.Insert( 0.5, 0.0, "-0.040 0.070 0.094");
688 dst.Insert( 0.8, 0.0, "-0.118 0.188 0.050");
689 dst.Insert( 1.0, 0.0, " 0.094 0.110 0.080");
690 }
691 else
692 {
693 dst.Insert( 0.0, -1.0, "0.135 0.155 0.065"); // fully down
694 dst.Insert( 0.0, -0.5, "0.155 0.055 0.030"); // halfway down
695 dst.Insert( 0.0, 0.0, "0.150 0.022 -0.017"); // forward
696 dst.Insert( 0.0, 0.5, "0.140 0.003 -0.032"); // halfway up
697 dst.Insert( 0.0, 1.0, "0.120 -0.026 -0.028"); // fully up
698 }
699 }
DayZPlayerConstants
defined in C++
Определения dayzplayer.c:602

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

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