Automated Work Carts Need Strength To Push Other CartsSolved

I have a loop on my map and sometimes players leave their trains in the middle of the tracks and this stops the flow of the automated work cart.  Setting the config to destroy offending cars is problematic with the Train Heist plugin as well as player spawned trains which they run around the map.  It would be nice to have the Automated Workcart be able to push forward some of these existing train cars, eventually destroying them but not instantly.

Thank you.

I suppose I could make it just keep driving, but I'm not sure if that would solve it. This might require some more sophisticated treatment. For example, if the other train has no pilot, automatically change its track selection so that it gets pushed another way (not sure if possible), or destroy it instantly since it is unlikely that a player will manage to board it while it is being pushed. If it has a human pilot, keep pushing and damage it slowly to incentivize the pilot to move it. If it has an unknown NPC pilot (from another plugin), just push without causing damage, or do they current behavior where it just pauses.

I'll think some more about this, but do let me know if you have any more ideas.

Merged post

I pushed some changes to the plugin's GitHub repo for you to beta test.
https://github.com/WheteThunger/AutomatedWorkcarts

Now, there are separate config options that determine whether to destroy occupied vs unoccupied obstacle trains. Additionally, automated trains will now simply push obstacles trains that they are not going to destroy, rather than simply nudging them every few seconds. I didn't put that behind a config option since I think it just makes more sense.

Locked automatically