Page 1 of 1

Per unit ability to ingore slow speed reduction.

Posted: 18 Aug 2009, 01:31
by smoth
Units going up hills slow down.

This does not make sense on all units, can we have a tag to make it so a unit does not slow down traversing a hill? or at least adjust how much they are slowed down going up a hill?

Re: Per unit ability to ingore slow speed reduction.

Posted: 18 Aug 2009, 01:34
by Jazcash
This doesn't apply to which units exactly?

Re: Per unit ability to ingore slow speed reduction.

Posted: 18 Aug 2009, 01:40
by Regret
JAZCASH wrote:This doesn't apply to which units exactly?
Snails.

Re: Per unit ability to ingore slow speed reduction.

Posted: 18 Aug 2009, 01:41
by Evil4Zerggin
Already exists, if you don't mind making additional movetypes; use the slopemod tag in the movetype to control it. The higher the slopemod, the more the unit is slowed down by slopes. The default value is 4 / (1 - cos(maxSlope * 1.5)), which I believe makes the unit move at 1/4 speed at its maximum slope. Example (see HOVER3); here we have hovers with the maxSlope of walkers, but they are slowed down as vehicles.

Re: Per unit ability to ingore slow speed reduction.

Posted: 18 Aug 2009, 03:06
by Caydr
Neato, I didn't know about that. Careful Smoth, you'll get grouped in with people like me.

Odd isn't it, that slopemod is a large value rather than a multiplier? I would expect something like 0.5 to slow the unit down to half its normal but instead it would probably make it climb hills like chuck norris climbing the food chain.

Re: Per unit ability to ingore slow speed reduction.

Posted: 18 Aug 2009, 03:09
by smoth
Cool thank you for the info evil, I was unaware of it!

Caydr, we are all human we are not omniscient, it is ok.

Re: Per unit ability to ingore slow speed reduction.

Posted: 18 Aug 2009, 13:25
by lurker
Is this horizontal speed? If so you'll still want a small bit of slopemod to keep them from speeding up on hills.