... possible ?
Prevent destruction/damage to new cars?
Yes. Try OnEntityTakeDamage and/or OnLoseCondition hooks.
hä ? i understand nothing ... these are plugins ? what exactly i must do ? :)
If you just want to make them not decay so fast, put this in your server.cfg file.
modularcar.outsidedecayminutes 1400
Merged post
For scaling collision damage, try this. It will cut damage in half.
Merged post
I wrote a quick plugin to scale collision damage, with some simple settings and user permissions. It has been submitted to Umod for approval.
modularcar.outsidedecayminutes 1400
Merged post
For scaling collision damage, try this. It will cut damage in half.
void OnEntityTakeDamage(BaseVehicleModule entity, HitInfo info)
{
info?.damageTypes.Scale(Rust.DamageType.Collision, 0.5f);
}Merged post
I wrote a quick plugin to scale collision damage, with some simple settings and user permissions. It has been submitted to Umod for approval.