Actual unit movement speed governed walk anims

Actual unit movement speed governed walk anims

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Actual unit movement speed governed walk anims

Post by Beherith »

Its really annoying and very ugly, especially for a game of this caliber, to have walk scripts that are totally out of sync with the units move speed.
Is it possible to have the engine pass a variable to the anim script to make it walk at the speed its moving?

Or is this not possible because cob is compiled before runtime and cant be passed variables?
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Re: Actual unit movement speed governed walk anims

Post by Peet »

There is a call in cob to get the unit's current speed, it's just a question of using it. Which next to nobody does.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Actual unit movement speed governed walk anims

Post by zwzsg »

I've done it once or twice, like for the walks of my horse in Spring Racers (which is probably broken under new Spring versions). Or like the monkeylord.
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Actual unit movement speed governed walk anims

Post by CarRepairer »

Yes it's possible as this is done in The Cursed to account for units affected by slowing weapons.
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Re: Actual unit movement speed governed walk anims

Post by rattle »

User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Actual unit movement speed governed walk anims

Post by Beherith »

Yah, I got it done on 1 peewee for BA, but since I didnt have the BOS file, I had to uncobble, which made it a bit screwed up (anim doesnt start until unit has been moving for quite some time.)
User avatar
Guessmyname
Posts: 3301
Joined: 28 Apr 2005, 21:07

Re: Actual unit movement speed governed walk anims

Post by Guessmyname »

As I've used the 'rotate piece to angle NOW' and then used sleeps, leaving Spring to interpolate it itself method, it's actually pretty easy to do this simply by making the sleep time change according to speed.
User avatar
Nemo
Spring 1944 Developer
Posts: 1376
Joined: 30 Jan 2005, 19:44

Re: Actual unit movement speed governed walk anims

Post by Nemo »

GMN's approach is the easiest for big units, but for something there might be a lot of (ie, peewees), you want to try to avoid Spring's interpolation (smoothanim=1) combined with turn NOWs - it sucks down a lot more juice than turn X to angle Y speed Z.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: Actual unit movement speed governed walk anims

Post by FLOZi »

(According to Argh)
( Image )
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Actual unit movement speed governed walk anims

Post by smoth »

It is doable in bos, anyone who tells you different is lying.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Actual unit movement speed governed walk anims

Post by Beherith »

Ill try to rewrite them with speed and not NOW, does anyone know where all the bos files are though? Because some have only cob files, and uncobbling then compiling the bos files even without modification resulted in an error where the movement script didnt get called for a long time while unit was moving.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Actual unit movement speed governed walk anims

Post by AF »

Where are the giant GIFs of monkeylords in OTA walking using the requested feature?

Who else aside from zwzsg* managed to do it in OTA?

edit: damned brain soup
Last edited by AF on 20 Jul 2009, 16:37, edited 1 time in total.
Sheekel
Posts: 1391
Joined: 19 Apr 2005, 19:23

Re: Actual unit movement speed governed walk anims

Post by Sheekel »

^^zwzsg
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Actual unit movement speed governed walk anims

Post by AF »

Corrections, I meant to say who else aside from Zwzsg did it in OTA. He and one other person made a big fuss about true walking scripts. I seem to remember a core construction ship that walked onto land cybran style
User avatar
Nemo
Spring 1944 Developer
Posts: 1376
Joined: 30 Jan 2005, 19:44

Re: Actual unit movement speed governed walk anims

Post by Nemo »

That wasn't about movement speed so much as legs taking the status of the other legs into account when rotating, and angling/turning appropriately based on the slope of the hill and the elevation of the terrain.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Actual unit movement speed governed walk anims

Post by zwzsg »

Zodius.
Post Reply

Return to “Feature Requests”