예제 #1
0
        protected sealed override void PrepareProtoItemEquipmentHead()
        {
            var lightConfig = new ItemLightConfig();
            var fuelConfig  = new ItemFuelConfig();

            this.PrepareProtoItemEquipmentHeadWithLight(lightConfig, fuelConfig);
            this.ItemLightConfig = lightConfig.ToReadOnly();
            this.ItemFuelConfig  = fuelConfig.ToReadOnly();

            if (IsClient)
            {
                ClientEquipmentHeadWithLightInputToggle.Init();
            }
        }
예제 #2
0
        protected override void PrepareProtoWeaponEnergy(
            ref DamageDescription overrideDamageDescription,
            ItemLightConfig lightConfig)
        {
            overrideDamageDescription = new DamageDescription(
                damageValue: 50,
                armorPiercingCoef: 0.5,
                finalDamageMultiplier: 1.2,
                rangeMax: 1.2,
                damageDistribution: new DamageDistribution(DamageType.Heat, 1));

            lightConfig.IsLightEnabled = true;
            lightConfig.Color          = this.LightColor;
            lightConfig.ScreenOffset   = (35, 0);
            lightConfig.Size           = 2;
        }
예제 #3
0
        protected override void PrepareProtoWeaponEnergy(
            ref DamageDescription overrideDamageDescription,
            ItemLightConfig lightConfig)
        {
            overrideDamageDescription = new DamageDescription(
                damageValue: 50,
                armorPiercingCoef: 0.5,
                finalDamageMultiplier: 1.2,
                rangeMax: 1.2,
                damageDistribution: new DamageDistribution(DamageType.Heat, 1));

            lightConfig.IsLightEnabled = true;
            lightConfig.Color          = this.LightColor;
            lightConfig.ScreenOffset   = (35, 0);
            lightConfig.Size           = 2;
            // we want to make it lighting objects around much better even though the rendering size is small
            lightConfig.LogicalSize = 8;
        }
예제 #4
0
 protected override void PrepareProtoVehicleLightConfig(ItemLightConfig lightConfig)
 {
     lightConfig.IsLightEnabled = false;
 }
예제 #5
0
 protected abstract void PrepareProtoWeaponEnergy(
     ref DamageDescription overrideDamageDescription,
     ItemLightConfig lightConfig);
예제 #6
0
 protected abstract void PrepareProtoItemLight(ItemLightConfig lightConfig, ItemFuelConfig fuelConfig);
예제 #7
0
 protected override void PrepareProtoVehicleLightConfig(ItemLightConfig lightConfig)
 {
     lightConfig.Color       = LightColors.Flashlight;
     lightConfig.WorldOffset = (0, -0.5);
     lightConfig.Size        = 18;
 }
 protected abstract void PrepareProtoItemEquipmentHeadWithLight(
     ItemLightConfig lightConfig,
     ItemFuelConfig fuelConfig);
예제 #9
0
 protected override void PrepareProtoVehicleLightConfig(ItemLightConfig lightConfig)
 {
     lightConfig.Color       = LightColors.ElectricWarm;
     lightConfig.WorldOffset = (0, -0.5);
     lightConfig.Size        = 20;
 }