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); } }
public void DeleteMirroredDecal() { DecalHelper.RemoveDecal(MirroredHandle); Vector3 temp; if (TaggedVehicle != null && TaggedVehicle.Exists()) { DecalHelper.RemoveDecalsInRange(TaggedVehicle.GetOffsetInWorldCoords(GetMirroredPos(out temp)), 0.0000000000001f); } }
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; }