Page 1 of 1

How to increase damage dealt by trains to bugs?

Posted: Sat Aug 25, 2018 5:30 am
by Skyshrim
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?

Posted: Sat Aug 25, 2018 7:23 am
by Koub
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?

Posted: Sat Aug 25, 2018 8:03 am
by Skyshrim
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.
Exactly. I would like to modify the equation.

Re: How to increase damage dealt by trains to bugs?

Posted: Sat Aug 25, 2018 11:08 am
by Klonan
Skyshrim wrote:
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.
Exactly. I would like to modify the equation.
Change `energy_per_hit_point` in the train prototype, lower deals more damage

Re: How to increase damage dealt by trains to bugs?

Posted: Sat Aug 25, 2018 7:14 pm
by Skyshrim
Change `energy_per_hit_point` in the train prototype, lower deals more damage
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.


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?

Posted: Sun Aug 26, 2018 5:30 am
by Skyshrim
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