Beispiel #1
0
        public AudioPlacement(RelFile rel, Dat151AmbientEmitter emitter)
        {
            RelFile       = rel;
            AudioEmitter  = emitter;
            Shape         = Dat151ZoneShape.Sphere;
            ShortTypeName = "AudioEmitter";
            FullTypeName  = "Audio Emitter";
            Name          = emitter.Name;
            NameHash      = emitter.NameHash;

            Orientation    = Quaternion.Identity;
            OrientationInv = Quaternion.Identity;
            InnerPos       = emitter.Position;
            OuterPos       = InnerPos;
            InnerRad       = emitter.InnerRad;
            OuterRad       = emitter.OuterRad;

            bool useouter = (InnerRad == 0);

            if (useouter)
            {
                InnerRad = 1;
            }
            Position     = InnerPos;
            HitSphereRad = InnerRad;// useouter ? OuterRad : InnerRad;
        }
Beispiel #2
0
        public AudioPlacement(RelFile rel, Dat151AmbientEmitter emitter)
        {
            RelFile       = rel;
            AudioEmitter  = emitter;
            ShortTypeName = "AudioEmitter";
            FullTypeName  = "Audio Emitter";

            UpdateFromEmitter();
        }