Beispiel #1
0
 public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_leftHand = new hkbpReachTowardTargetModifierHand();
     m_leftHand.Read(des, br);
     m_rightHand = new hkbpReachTowardTargetModifierHand();
     m_rightHand.Read(des, br);
     m_targetIn             = des.ReadClassPointer <hkbpTarget>(br);
     m_distanceBetweenHands = br.ReadSingle();
     m_reachDistance        = br.ReadSingle();
     m_fadeInGainSpeed      = br.ReadSingle();
     m_fadeOutGainSpeed     = br.ReadSingle();
     m_fadeOutDuration      = br.ReadSingle();
     m_targetChangeSpeed    = br.ReadSingle();
     m_holdTarget           = br.ReadBoolean();
     m_reachPastTarget      = br.ReadBoolean();
     m_giveUpIfNoTarget     = br.ReadBoolean();
     br.ReadUInt64();
     br.ReadUInt64();
     br.ReadUInt64();
     br.ReadUInt64();
     br.ReadUInt64();
     br.ReadUInt32();
     br.ReadByte();
 }
Beispiel #2
0
 public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_targetIn    = des.ReadClassPointer <hkbpTarget>(br);
     m_offsetAngle = br.ReadSingle();
     m_onlyOnce    = br.ReadBoolean();
     br.ReadUInt16();
     br.ReadByte();
 }
Beispiel #3
0
 public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_targetOut  = des.ReadClassPointer <hkbpTarget>(br);
     m_targetMode = (TargetMode)br.ReadSByte();
     br.ReadUInt16();
     br.ReadByte();
     m_sensingLayer        = br.ReadInt32();
     m_targetOnlyOnce      = br.ReadBoolean();
     m_ignoreMySystemGroup = br.ReadBoolean();
     br.ReadUInt16();
     m_maxTargetDistance              = br.ReadSingle();
     m_maxTargetHeightAboveSensor     = br.ReadSingle();
     m_closeToTargetDistanceThreshold = br.ReadSingle();
     m_targetAngleMode    = (ComputeTargetAngleMode)br.ReadSByte();
     m_targetDistanceMode = (ComputeTargetDistanceMode)br.ReadSByte();
     br.ReadUInt16();
     m_maxAngleToTarget                = br.ReadSingle();
     m_sensorRagdollBoneIndex          = br.ReadInt16();
     m_sensorAnimationBoneIndex        = br.ReadInt16();
     m_closeToTargetRagdollBoneIndex   = br.ReadInt16();
     m_closeToTargetAnimationBoneIndex = br.ReadInt16();
     br.ReadUInt64();
     m_sensorOffsetInBoneSpace        = des.ReadVector4(br);
     m_closeToTargetOffsetInBoneSpace = des.ReadVector4(br);
     m_sensorDirectionBS = des.ReadVector4(br);
     m_eventMode         = (EventModeTRBAM)br.ReadSByte();
     br.ReadUInt16();
     br.ReadByte();
     m_sensingPropertyKey = br.ReadUInt32();
     m_sensorInWS         = br.ReadBoolean();
     br.ReadUInt32();
     br.ReadUInt16();
     br.ReadByte();
     m_eventToSend = new hkbEventProperty();
     m_eventToSend.Read(des, br);
     m_eventToSendToTarget = new hkbEventProperty();
     m_eventToSendToTarget.Read(des, br);
     m_closeToTargetEvent = new hkbEventProperty();
     m_closeToTargetEvent.Read(des, br);
     m_useVelocityPrediction = br.ReadBoolean();
     m_targetOnlySpheres     = br.ReadBoolean();
     m_isCloseToTargetOut    = br.ReadBoolean();
     m_targetPriority        = br.ReadSByte();
     br.ReadUInt64();
     br.ReadUInt64();
     br.ReadUInt64();
     br.ReadUInt32();
 }
 public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_targetIn                 = des.ReadClassPointer <hkbpTarget>(br);
     m_breakThreshold           = br.ReadSingle();
     m_ragdollBoneToConstrain   = br.ReadInt16();
     m_breakable                = br.ReadBoolean();
     m_pivotPlacement           = (PivotPlacement)br.ReadSByte();
     m_boneToConstrainPlacement = (BoneToConstrainPlacement)br.ReadSByte();
     m_constraintType           = (ConstraintType)br.ReadSByte();
     m_clearTargetData          = br.ReadBoolean();
     m_isConstraintHinge        = br.ReadBoolean();
     br.ReadUInt64();
     br.ReadUInt32();
 }
Beispiel #5
0
 public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_targetIn                     = des.ReadClassPointer <hkbpTarget>(br);
     m_offsetInBoneSpace            = des.ReadVector4(br);
     m_alignAxisBS                  = des.ReadVector4(br);
     m_targetAlignAxisTS            = des.ReadVector4(br);
     m_alignWithCharacterForwardBS  = des.ReadVector4(br);
     m_currentBonePositionOut       = des.ReadVector4(br);
     m_currentBoneRotationOut       = des.ReadQuaternion(br);
     m_eventToSendWhenTargetReached = new hkbEventProperty();
     m_eventToSendWhenTargetReached.Read(des, br);
     m_childGenerator        = des.ReadClassPointer <hkbGenerator>(br);
     m_duration              = br.ReadSingle();
     m_ragdollBoneIndex      = br.ReadInt16();
     m_animationBoneIndex    = br.ReadInt16();
     m_targetMode            = (TargetModeMBTT)br.ReadSByte();
     m_alignMode             = br.ReadSByte();
     m_useVelocityPrediction = br.ReadBoolean();
     m_affectOrientation     = br.ReadBoolean();
     m_currentBoneIsValidOut = br.ReadBoolean();
     br.ReadUInt64();
     br.ReadUInt64();
     br.ReadUInt64();
     br.ReadUInt64();
     br.ReadUInt64();
     br.ReadUInt64();
     br.ReadUInt64();
     br.ReadUInt16();
     br.ReadByte();
     m_finalAnimBonePositionMS    = des.ReadVector4(br);
     m_initialAnimBonePositionMS  = des.ReadVector4(br);
     m_finalAnimBoneOrientationMS = des.ReadQuaternion(br);
     m_animationFromRagdoll       = des.ReadQuaternion(br);
     m_totalMotion       = des.ReadQSTransform(br);
     m_accumulatedMotion = des.ReadQSTransform(br);
     m_useAnimationData  = br.ReadBoolean();
     br.ReadUInt64();
     br.ReadUInt32();
     br.ReadUInt16();
     br.ReadByte();
 }