Thanks it works perfect.
Merged post
new VehicleInfo
{
VehicleType = "sled.xmas",
PrefabPaths = new string[] { "assets/prefabs/misc/xmas/sled/skins/sled.deployed.xmas.prefab" },
VehicleConfig = pluginConfig.Vehicles.Sled,
IsCorrectType = (entity) => entity is Sled,
GetTimeSinceLastUsed = (entity) => float.MinValue,
GetVanillaDecayMethod = (entity) => (Action)Delegate.CreateDelegate(typeof(Action), entity as Sled, _sledDecayOverTimeMethod),
DecayTick = (entity, vehicleInfo) =>
{
var sled = entity as Sled;
if (sled.AnyMounted()
|| VehicleHasPermission(_pluginInstance, sled, vehicleInfo))
return;
var multiplier = GetLocationMultiplier(_pluginInstance, sled, vehicleInfo);
if (multiplier == 0f)
return;
DoDecayDamage(sled, vehicleInfo, multiplier * sled.DecayAmount / sled.MaxHealth(), DamageType.Generic, useProtection: true);
},
},
Merged postI have decided to add this to support Santa's sleigh. It works and looks good. Could you add support also for the future update?
Merged post
he doesn't like it, but he's happy.
Merged post