Иконка ресурса

FREE ScrapHelicopterFix : 1.0.4 1.0.4

Нет прав для скачивания
C#:
// Все права принадлежат дискорд сообществу https://discord.gg/VgNHPpNrz6
namespace Oxide.Plugins
{
    [Info("Scrap Helicopter Fix", "Orange", "1.0.4")]
    [Description("Reduces lags of destroying scrap helicopter by removing effects of it")]
    public class ScrapHelicopterFix : RustPlugin
    {
        private void OnServerInitialized()
        {
            foreach (var entity in UnityEngine.Object.FindObjectsOfType<ScrapTransportHelicopter>())
            {
                if (entity == null) {continue;}
                OnEntitySpawned(entity);
            }
        }
        
        private void OnEntitySpawned(ScrapTransportHelicopter entity)
        {
            entity.explosionEffect.guid = null;
            entity.serverGibs.guid = null;
            entity.fireBall.guid = null;
        }
    }
}

Автор
15FPS
Скачиваний
0
Просмотры
1
Первый выпуск
Обновление
Оценка
0.00 звёзд 0 оценок
Сверху