Пример #1
0
 internal  UnitSeatBlockBase(BinaryReader binaryReader)
 {
     this.flags = (Flags)binaryReader.ReadInt32();
     this.label = binaryReader.ReadStringID();
     this.markerName = binaryReader.ReadStringID();
     this.entryMarkerSName = binaryReader.ReadStringID();
     this.boardingGrenadeMarker = binaryReader.ReadStringID();
     this.boardingGrenadeString = binaryReader.ReadStringID();
     this.boardingMeleeString = binaryReader.ReadStringID();
     this.pingScale = binaryReader.ReadSingle();
     this.turnoverTimeSeconds = binaryReader.ReadSingle();
     this.acceleration = new UnitSeatAccelerationStructBlock(binaryReader);
     this.aIScariness = binaryReader.ReadSingle();
     this.aiSeatType = (AiSeatType)binaryReader.ReadInt16();
     this.boardingSeat = binaryReader.ReadShortBlockIndex1();
     this.listenerInterpolationFactor = binaryReader.ReadSingle();
     this.yawRateBoundsDegreesPerSecond = binaryReader.ReadRange();
     this.pitchRateBoundsDegreesPerSecond = binaryReader.ReadRange();
     this.minSpeedReference = binaryReader.ReadSingle();
     this.maxSpeedReference = binaryReader.ReadSingle();
     this.speedExponent = binaryReader.ReadSingle();
     this.unitCamera = new UnitCameraStructBlock(binaryReader);
     this.unitHudInterface = ReadUnitHudReferenceBlockArray(binaryReader);
     this.enterSeatString = binaryReader.ReadStringID();
     this.yawMinimum = binaryReader.ReadSingle();
     this.yawMaximum = binaryReader.ReadSingle();
     this.builtInGunner = binaryReader.ReadTagReference();
     this.entryRadius = binaryReader.ReadSingle();
     this.entryMarkerConeAngle = binaryReader.ReadSingle();
     this.entryMarkerFacingAngle = binaryReader.ReadSingle();
     this.maximumRelativeVelocity = binaryReader.ReadSingle();
     this.invisibleSeatRegion = binaryReader.ReadStringID();
     this.runtimeInvisibleSeatRegionIndex = binaryReader.ReadInt32();
 }
Пример #2
0
 internal UnitBlockBase(BinaryReader binaryReader) : base(binaryReader)
 {
     this.flags                                             = (Flags)binaryReader.ReadInt32();
     this.defaultTeam                                       = (DefaultTeam)binaryReader.ReadInt16();
     this.constantSoundVolume                               = (ConstantSoundVolume)binaryReader.ReadInt16();
     this.integratedLightToggle                             = binaryReader.ReadTagReference();
     this.cameraFieldOfViewDegrees                          = binaryReader.ReadSingle();
     this.cameraStiffness                                   = binaryReader.ReadSingle();
     this.unitCamera                                        = new UnitCameraStructBlock(binaryReader);
     this.acceleration                                      = new UnitSeatAccelerationStructBlock(binaryReader);
     this.softPingThreshold01                               = binaryReader.ReadSingle();
     this.softPingInterruptTimeSeconds                      = binaryReader.ReadSingle();
     this.hardPingThreshold01                               = binaryReader.ReadSingle();
     this.hardPingInterruptTimeSeconds                      = binaryReader.ReadSingle();
     this.hardDeathThreshold01                              = binaryReader.ReadSingle();
     this.feignDeathThreshold01                             = binaryReader.ReadSingle();
     this.feignDeathTimeSeconds                             = binaryReader.ReadSingle();
     this.distanceOfEvadeAnimWorldUnits                     = binaryReader.ReadSingle();
     this.distanceOfDiveAnimWorldUnits                      = binaryReader.ReadSingle();
     this.stunnedMovementThreshold01                        = binaryReader.ReadSingle();
     this.feignDeathChance01                                = binaryReader.ReadSingle();
     this.feignRepeatChance01                               = binaryReader.ReadSingle();
     this.spawnedTurretCharacter                            = binaryReader.ReadTagReference();
     this.spawnedActorCount                                 = binaryReader.ReadInt32();
     this.spawnedVelocity                                   = binaryReader.ReadSingle();
     this.aimingVelocityMaximumDegreesPerSecond             = binaryReader.ReadSingle();
     this.aimingAccelerationMaximumDegreesPerSecondSquared  = binaryReader.ReadSingle();
     this.casualAimingModifier01                            = binaryReader.ReadSingle();
     this.lookingVelocityMaximumDegreesPerSecond            = binaryReader.ReadSingle();
     this.lookingAccelerationMaximumDegreesPerSecondSquared = binaryReader.ReadSingle();
     this.rightHandNode                                     = binaryReader.ReadStringID();
     this.leftHandNode                                      = binaryReader.ReadStringID();
     this.moreDamnNodes                                     = new UnitAdditionalNodeNamesStructBlock(binaryReader);
     this.meleeDamage                                       = binaryReader.ReadTagReference();
     this.yourMomma                                         = new UnitBoardingMeleeStructBlock(binaryReader);
     this.motionSensorBlipSize                              = (MotionSensorBlipSize)binaryReader.ReadInt16();
     this.invalidName_                                      = binaryReader.ReadBytes(2);
     this.postures                                          = ReadUnitPosturesBlockArray(binaryReader);
     this.nEWHUDINTERFACES                                  = ReadUnitHudReferenceBlockArray(binaryReader);
     this.dialogueVariants                                  = ReadDialogueVariantBlockArray(binaryReader);
     this.grenadeVelocityWorldUnitsPerSecond                = binaryReader.ReadSingle();
     this.grenadeType                                       = (GrenadeType)binaryReader.ReadInt16();
     this.grenadeCount                                      = binaryReader.ReadInt16();
     this.poweredSeats                                      = ReadPoweredSeatBlockArray(binaryReader);
     this.weapons                                           = ReadUnitWeaponBlockArray(binaryReader);
     this.seats                                             = ReadUnitSeatBlockArray(binaryReader);
     this.boost                                             = new UnitBoostStructBlock(binaryReader);
     this.lipsync                                           = new UnitLipsyncScalesStructBlock(binaryReader);
 }