saw a commit about crushable units
Moderator: Moderators
Re: saw a commit about crushable units
Crush Impedance is a sick name for some grind/death band.
Re: saw a commit about crushable units
drive over ALL the people!

It works, nice job kloot!
Units want to dodge around enemies even if they can crush them but I think that is ok. (maybe even better this way)
Protip for modders:
Remove any Sleep/WaitForXX in the script.killed function of crushed units, otherwise the crushing unit gets get slowed down/stuck for a split second.
(Maybe making the crushed units non-blocking in killed works too)
Just thought trees can now be crushable while they regrow. Yes, very good update indeed.
/edit
hm, little flaw is that units sometimes (actually quite often) get crushed when running into a standing crush vehicle. For example a dude slowly walks towards a tank, bumps into it and explodes. I think like that it is not useable for "vehicle crush infantry" gameplay, unless somebody wants to make a carmageddon mod. Standing units probally should not be able to crush.
If "wasCrushed" was a parameter to UnitPreDamaged and it was called for crushing, games could actually check that themself. This way it would also be possible to return 0 and thus disable crushdamage?
(maybe already possible, did not test)

It works, nice job kloot!
Units want to dodge around enemies even if they can crush them but I think that is ok. (maybe even better this way)
Protip for modders:
Remove any Sleep/WaitForXX in the script.killed function of crushed units, otherwise the crushing unit gets get slowed down/stuck for a split second.
(Maybe making the crushed units non-blocking in killed works too)
Just thought trees can now be crushable while they regrow. Yes, very good update indeed.
/edit
hm, little flaw is that units sometimes (actually quite often) get crushed when running into a standing crush vehicle. For example a dude slowly walks towards a tank, bumps into it and explodes. I think like that it is not useable for "vehicle crush infantry" gameplay, unless somebody wants to make a carmageddon mod. Standing units probally should not be able to crush.
If "wasCrushed" was a parameter to UnitPreDamaged and it was called for crushing, games could actually check that themself. This way it would also be possible to return 0 and thus disable crushdamage?
(maybe already possible, did not test)