Esempio n. 1
0
        public override void Remove()
        {
            if (DecalTypeIndexIsValid() && isCounted)
            {
                GraffitiOG.LoadedCount--;
                if (GraffitiOG.LoadedCount < 1)
                {
                    GraffitiMethods.UsableDecalTypes[GraffitiOG.DecalTypeIndex].Available = true;
                    GraffitiOG.DecalTypeIndex = -1;
                }
                isCounted = false;
            }

            DecalHelper.RemoveDecal(Handle);

            Handle            = -1337;
            justMadeRedundant = true;

            DeleteMirroredDecal();

            if (TaggedVehicle != null && TaggedVehicle.Exists())
            {
                DecalHelper.RemoveDecalsInRange(TaggedVehicle.GetOffsetInWorldCoords(Location), 0.0000000000001f);
            }
        }
Esempio n. 2
0
        public void DeleteMirroredDecal()
        {
            DecalHelper.RemoveDecal(MirroredHandle);

            Vector3 temp;

            if (TaggedVehicle != null && TaggedVehicle.Exists())
            {
                DecalHelper.RemoveDecalsInRange(TaggedVehicle.GetOffsetInWorldCoords(GetMirroredPos(out temp)), 0.0000000000001f);
            }
        }
Esempio n. 3
0
        public virtual void Remove()
        {
            if (DecalTypeIndexIsValid() && isCounted)
            {
                GraffitiOG.LoadedCount--;
                if (GraffitiOG.LoadedCount < 1)
                {
                    GraffitiMethods.UsableDecalTypes[GraffitiOG.DecalTypeIndex].Available = true;
                    GraffitiOG.DecalTypeIndex = -1;
                }
                isCounted = false;
            }

            DecalHelper.RemoveDecal(Handle);
            DecalHelper.RemoveDecalsInRange(Location, 0.0000000000001f);

            Handle            = -1337;
            justMadeRedundant = true;
        }