TurnInPlace tag

TurnInPlace tag

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

TurnInPlace tag

Post by KDR_11k »

This tag would tell a unit to not move forward at all when turning, optionally there could be a MinTurnSpeed and MaxTurnSpeed tag that define the lowest and highest speed a unit can move forwward at while turning.

The purpose would be to enable e.g. tanks to turn in place without moving forward while turning. This would also make limited arc units stay in their formation when aiming at something.

I think steering mode is supposed to do something similar, is that tag used by Spring?
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Post by FLOZi »

+1 this would be really great.
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

Can be done through scripting but it's better this way.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Post by Argh »

Actually, doing this with scripting works great, and is very efficient, I've been using this quite a lot!
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

What do you mean with doing this with scripting, forcing a MAX_SPEED of 0 (or 1) when you detect rotation?
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

Yes. Make a backup of the original MAX_SPEED value, though, and then gradually reduce speed when the angle the unit has turned in time x exceeds a certain value, i.e. 45°/2 = MAX_SPEED*0.66, 45° = MAX_SPEED*0.33, 75° = 0.
Post Reply

Return to “Feature Requests”