Esempio n. 1
0
 public ProjectileData(string Tag = null)
     : base(Tag)
 {
     Flags                        = new ProjectileFlags();
     Type                         = new ProjectileType();
     Gravity                      = new Single();
     Speed                        = new Single();
     Range                        = new Single();
     Light                        = new FormID();
     MuzzleFlashLight             = new FormID();
     TracerChance                 = new Single();
     ExplosionAltTriggerProximity = new Single();
     ExplosionAltTriggerTimer     = new Single();
     Explosion                    = new FormID();
     Sound                        = new FormID();
     MuzzleFlashDuration          = new Single();
     FadeDuration                 = new Single();
     ImpactForce                  = new Single();
     SoundCountdown               = new FormID();
     Sounddisable                 = new FormID();
     DefaultWeaponSource          = new FormID();
     XRotation                    = new Single();
     YRotation                    = new Single();
     ZRotation                    = new Single();
     BouncyMult                   = new Single();
 }
Esempio n. 2
0
 public ProjectileData(ProjectileFlags Flags, ProjectileType Type, Single Gravity, Single Speed, Single Range, FormID Light, FormID MuzzleFlashLight, Single TracerChance, Single ExplosionAltTriggerProximity, Single ExplosionAltTriggerTimer, FormID Explosion, FormID Sound, Single MuzzleFlashDuration, Single FadeDuration, Single ImpactForce, FormID SoundCountdown, FormID Sounddisable, FormID DefaultWeaponSource, Single XRotation, Single YRotation, Single ZRotation, Single BouncyMult)
 {
     this.Flags                        = Flags;
     this.Type                         = Type;
     this.Gravity                      = Gravity;
     this.Speed                        = Speed;
     this.Range                        = Range;
     this.Light                        = Light;
     this.MuzzleFlashLight             = MuzzleFlashLight;
     this.TracerChance                 = TracerChance;
     this.ExplosionAltTriggerProximity = ExplosionAltTriggerProximity;
     this.ExplosionAltTriggerTimer     = ExplosionAltTriggerTimer;
     this.Explosion                    = Explosion;
     this.Sound                        = Sound;
     this.MuzzleFlashDuration          = MuzzleFlashDuration;
     this.FadeDuration                 = FadeDuration;
     this.ImpactForce                  = ImpactForce;
     this.SoundCountdown               = SoundCountdown;
     this.Sounddisable                 = Sounddisable;
     this.DefaultWeaponSource          = DefaultWeaponSource;
     this.XRotation                    = XRotation;
     this.YRotation                    = YRotation;
     this.ZRotation                    = ZRotation;
     this.BouncyMult                   = BouncyMult;
 }
Esempio n. 3
0
 public void SetFlag(ProjectileFlags value, bool set)
 {
     if (set)
     {
         Data.Flags |= value;
     }
     else
     {
         Data.Flags &= ~value;
     }
 }
 public override System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> ReadFields(System.IO.BinaryReader binaryReader)
 {
     System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(base.ReadFields(binaryReader));
     this.ProjectileProjectileFlags = ((ProjectileFlags)(binaryReader.ReadInt32()));
     this.DetonationTimerStarts     = ((DetonationTimerStartsEnum)(binaryReader.ReadInt16()));
     this.ImpactNoise        = ((ImpactNoiseEnum)(binaryReader.ReadInt16()));
     this.AIPerceptionRadius = binaryReader.ReadSingle();
     this.CollisionRadius    = binaryReader.ReadSingle();
     this.ArmingTime         = binaryReader.ReadSingle();
     this.DangerRadius       = binaryReader.ReadSingle();
     this.Timer                            = binaryReader.ReadRange();
     this.MinimumVelocity                  = binaryReader.ReadSingle();
     this.MaximumRange                     = binaryReader.ReadSingle();
     this.DetonationNoise                  = ((DetonationNoiseEnum)(binaryReader.ReadInt16()));
     this.SuperDetProjectileCount          = binaryReader.ReadInt16();
     this.DetonationStarted                = binaryReader.ReadTagReference();
     this.DetonationEffect                 = binaryReader.ReadTagReference();
     this.DetonationEffect0                = binaryReader.ReadTagReference();
     this.DetonationDamage                 = binaryReader.ReadTagReference();
     this.AttachedDetonationDamage         = binaryReader.ReadTagReference();
     this.SuperDetonation                  = binaryReader.ReadTagReference();
     pointerQueue                          = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(pointerQueue.Concat(this.YourMomma.ReadFields(binaryReader)));
     this.DetonationSound                  = binaryReader.ReadTagReference();
     this.DamageReportingType              = ((DamageReportingTypeEnum)(binaryReader.ReadByte()));
     this.fieldpad3                        = binaryReader.ReadBytes(3);
     this.SuperAttachedDetonationDamage    = binaryReader.ReadTagReference();
     this.MaterialEffectRadius             = binaryReader.ReadSingle();
     this.FlybySound                       = binaryReader.ReadTagReference();
     this.ImpactEffect                     = binaryReader.ReadTagReference();
     this.ImpactDamage                     = binaryReader.ReadTagReference();
     this.BoardingDetonationTime           = binaryReader.ReadSingle();
     this.BoardingDetonationDamage         = binaryReader.ReadTagReference();
     this.BoardingAttachedDetonationDamage = binaryReader.ReadTagReference();
     this.AirGravityScale                  = binaryReader.ReadSingle();
     this.AirDamageRange                   = binaryReader.ReadRange();
     this.WaterGravityScale                = binaryReader.ReadSingle();
     this.WaterDamageRange                 = binaryReader.ReadRange();
     this.InitialVelocity                  = binaryReader.ReadSingle();
     this.FinalVelocity                    = binaryReader.ReadSingle();
     pointerQueue                          = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(pointerQueue.Concat(this.Blah.ReadFields(binaryReader)));
     this.GuidedAngularVelocity            = binaryReader.ReadSingle();
     this.AccelerationRange                = binaryReader.ReadRange();
     this.fieldpad4                        = binaryReader.ReadBytes(4);
     this.TargetedLeadingFraction          = binaryReader.ReadSingle();
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(88));
     return(pointerQueue);
 }
Esempio n. 5
0
 public bool HasFlag(ProjectileFlags value)
 {
     return(Data.Flags.HasFlag(value));
 }
Esempio n. 6
0
 public void SetFlag(ProjectileFlags value, bool set)
 {
     if (set)
         Data.Flags |= value;
     else
         Data.Flags &= ~value;
 }
Esempio n. 7
0
 public bool HasFlag(ProjectileFlags value)
 {
     return Data.Flags.HasFlag(value);
 }