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

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

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

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

Post 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,
Attachments
springtutorialgame_crushtest.sdd.zip
(376.27 KiB) Downloaded 3 times
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

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

Post by Forboding Angel »

IIRC crushstrength needs to be higher than maxdamage.
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

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

Post by Kloot »

Code: Select all

Spring.SetUnitBlocking (unitID, true, true, true) --crushable!
nope: http://springrts.com/phpbb/viewtopic.php?f=12&t=31114
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

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

Post by knorke »

ah thanks!
Post Reply

Return to “Game Development”