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(); } }
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; }
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; }
protected override void PrepareProtoVehicleLightConfig(ItemLightConfig lightConfig) { lightConfig.IsLightEnabled = false; }
protected abstract void PrepareProtoWeaponEnergy( ref DamageDescription overrideDamageDescription, ItemLightConfig lightConfig);
protected abstract void PrepareProtoItemLight(ItemLightConfig lightConfig, ItemFuelConfig fuelConfig);
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);
protected override void PrepareProtoVehicleLightConfig(ItemLightConfig lightConfig) { lightConfig.Color = LightColors.ElectricWarm; lightConfig.WorldOffset = (0, -0.5); lightConfig.Size = 20; }