How to increase damage dealt by trains to bugs?
How to increase damage dealt by trains to bugs?
I'm hoping to prevent the annoying issue of trains being stopped and destroyed by biters, but I am very new to modding. If there is a way to increase the damage dealt by train collisions or give bugs a negative resistance to impact damage I would love to know about it. I think the game would be greatly improved if you didn't have to worry about a couple green bugs stopping your 100+ ton trains dead in their tracks.
Re: How to increase damage dealt by trains to bugs?
Damage inflicted and the loss of momentum when a train hits a biter is proportional to the trains's speeed, and its mass.
Koub - Please consider English is not my native language.
Re: How to increase damage dealt by trains to bugs?
Exactly. I would like to modify the equation.Koub wrote:Damage inflicted and the loss of momentum when a train hits a biter is proportional to the trains's speeed, and its mass.
Re: How to increase damage dealt by trains to bugs?
Change `energy_per_hit_point` in the train prototype, lower deals more damageSkyshrim wrote:Exactly. I would like to modify the equation.Koub wrote:Damage inflicted and the loss of momentum when a train hits a biter is proportional to the trains's speeed, and its mass.
Re: How to increase damage dealt by trains to bugs?
This is a promising start, but doesn't seem to do the job all on its own. It allows trains to plow right through cars and tanks at low speed, but enemies still have no trouble stopping them.Change `energy_per_hit_point` in the train prototype, lower deals more damage
EDIT: After a bunch of fiddling I think I've found a good balance of increased weight, power, breaking power, and efficiency to go along with the lower energy_per_hit_point so that the trains feel about the same as unmodded, but have a LOT more momentum and deal arbitrarily high amounts of damage. I think I'll do some more testing and finalize the numbers soon before posting the mod. Thanks for the help!
Re: How to increase damage dealt by trains to bugs?
Well, I finished my mod and it works just as planned, but for whatever reason I am unable to upload it to the mod portal. It just gives me an "Unknown Error" no matter what I've tried changing. Is there a period of time that new accounts have to wait or am I just screwed?
Here it is on Github since I can't upload it to the portal: https://github.com/Skyshrim/Skyshrim-s- ... _0.0.1.zip
Here it is on Github since I can't upload it to the portal: https://github.com/Skyshrim/Skyshrim-s- ... _0.0.1.zip