Page 1 of 1

unit crushing unit: works in 94.1, does not work in 95

Posted: 11 Dec 2013, 10:31
by knorke
My units do not want to crush each other anymore.
Strangely I vaguely recall crushing might have worked in 95.0 but now can not make it work anymore...

Since my mod is full of wupgets I made simpler example mod, see attachment.

/give simplewalker 1
/give buildervehicle 0
Try to run over the walker with the roller by giving move-commands behind it.
In 94.1 the walker gets destroyed, in 95.0 the walker is just pushed around.

For the walker: (crushee)

Code: Select all

function script.Create()
		Spring.SetUnitBlocking (unitID, true, true, true) --crushable!
unitdef:
crushResistance = 5,
mass=5,
end
For the buildervehicle: (crusher)

Code: Select all

crushStrength = 100, in its movedef
mass=1000,

Re: unit crushing unit: works in 94.1, does not work in 95

Posted: 11 Dec 2013, 10:49
by Forboding Angel
IIRC crushstrength needs to be higher than maxdamage.

Re: unit crushing unit: works in 94.1, does not work in 95

Posted: 11 Dec 2013, 13:31
by Kloot

Code: Select all

Spring.SetUnitBlocking (unitID, true, true, true) --crushable!
nope: http://springrts.com/phpbb/viewtopic.php?f=12&t=31114

Re: unit crushing unit: works in 94.1, does not work in 95

Posted: 12 Dec 2013, 13:28
by knorke
ah thanks!