Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Wed Apr 24, 2024 10:20 pm
All times are UTC + 0
Does anyone know how Speed= is calculated??
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [11 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
LH_Mouse
Cyborg Firebomber


Joined: 10 Jan 2010
Location: The Great PRC

PostPosted: Wed Jun 15, 2011 3:01 pm    Post subject:  Does anyone know how Speed= is calculated?? Reply with quote  Mark this post and the followings unread

I've made some experiments:

A Speed=10(not 8) InfantryType(with default SpeedType=) runs at the same speed as a Speed=6 VehicleType(with default SpeedType=), and a Speed=10 VehicleType runs at the same speed as a Speed=20 AircraftType(with default SpeedType=).

Could someone tell me how their speeds are calcluated?

[EDIT] Oops, the Speed= of the InfantryType I used in that experiment was 10, not 8.

_________________
Fusion Reactor upgrade is complete.

We will prevail!!!

Last edited by LH_Mouse on Sat Jun 18, 2011 7:21 pm; edited 3 times in total

Back to top
View user's profile Send private message Send e-mail Skype Account
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Wed Jun 15, 2011 3:11 pm    Post subject: Reply with quote  Mark this post and the followings unread

Do you've considered the terraintype specific speed settings?
Speedtype Foot and Speedtype Wheel have different percentages on clear and rough ground IIRC.

However i find it indeed a bit strange that speedtype winged should have 50% of Wheel. Though winged is hardcoded and you can only be sure by checking the exe on this one.

_________________
SHP Artist of Twisted Insurrection:  Nod buildings

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

Last edited by Lin Kuei Ominae on Wed Jun 15, 2011 3:17 pm; edited 1 time in total

Back to top
View user's profile Send private message
Graion Dilach
Defense Minister


Joined: 22 Nov 2010
Location: Iszkaszentgyorgy, Hungary

PostPosted: Wed Jun 15, 2011 3:16 pm    Post subject: Reply with quote  Mark this post and the followings unread


_________________
"If you didn't get angry and mad and frustrated, that means you don't care about the end result, and are doing something wrong." - Greg Kroah-Hartman
=======================
Past C&C projects: Attacque Supérior (2010-2019); Valiant Shades (2019-2021)
=======================
WeiDU mods: Random Graion Tweaks | Graion's Soundsets
Maintainance: Extra Expanded Enhanced Encounters! | BGEESpawn
Contributions: EE Fixpack | Enhanced Edition Trilogy | DSotSC (Trilogy) | UB_IWD | SotSC & a lot more...

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID
LH_Mouse
Cyborg Firebomber


Joined: 10 Jan 2010
Location: The Great PRC

PostPosted: Thu Jun 16, 2011 9:04 am    Post subject: Reply with quote  Mark this post and the followings unread

They're all moving at 100% speed on clear ground, aren't they?

_________________
Fusion Reactor upgrade is complete.

We will prevail!!!

Back to top
View user's profile Send private message Send e-mail Skype Account
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Thu Jun 16, 2011 9:14 am    Post subject: Reply with quote  Mark this post and the followings unread

I don't know. I don't have access to a Ra2/YR rules/md.ini right now

_________________
SHP Artist of Twisted Insurrection:  Nod buildings

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

Back to top
View user's profile Send private message
Krow
Commander


Joined: 30 Jan 2010
Location: Malaysia

PostPosted: Thu Jun 16, 2011 10:36 am    Post subject: Reply with quote  Mark this post and the followings unread

Code:
[Clear]
Foot=100%
Track=100%
Wheel=100%
Float=0%
Hover=50%
Amphibious=80%
FloatBeach=0%
Buildable=yes

_________________
Team Black wrote:
interesting seeing your voxel work. They're still better than Aro's!

Back to top
View user's profile Send private message
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Thu Jun 16, 2011 10:49 am    Post subject: Reply with quote  Mark this post and the followings unread

ok, that's indeed strange. Has anyone tested this for TS as well?

Maybe WW made infantry 33% slower, so the walkanim matches better the ingame movement and aircraft 50% slower, so the speed numbers can be used for a finer adjustment range.

_________________
SHP Artist of Twisted Insurrection:  Nod buildings

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

Back to top
View user's profile Send private message
LH_Mouse
Cyborg Firebomber


Joined: 10 Jan 2010
Location: The Great PRC

PostPosted: Fri Jun 17, 2011 2:42 am    Post subject: Reply with quote  Mark this post and the followings unread

Lin Kuei Ominae wrote:
ok, that's indeed strange. Has anyone tested this for TS as well?

Maybe WW made infantry 33% slower, so the walkanim matches better the ingame movement and aircraft 50% slower, so the speed numbers can be used for a finer adjustment range.


Are these numbers accurate?

_________________
Fusion Reactor upgrade is complete.

We will prevail!!!

Back to top
View user's profile Send private message Send e-mail Skype Account
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Fri Jun 17, 2011 8:55 am    Post subject: Reply with quote  Mark this post and the followings unread

Well, i simply calculated the 33 and 50 percent from your speed values, but they look like as if they would make some sense. #Tongue

Though the infantry value could be also only 25%
100/6 * 8=133,333 means vehicles are 33% faster (or infantry are 33% slower)
100/8 * 6=75 means infantry are 25% slower (or vehicles are 25% faster)

Your example values infantryspeed 8 and vehiclespeed 6 are a bit small to calculate an exact value.

_________________
SHP Artist of Twisted Insurrection:  Nod buildings

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

Back to top
View user's profile Send private message
LH_Mouse
Cyborg Firebomber


Joined: 10 Jan 2010
Location: The Great PRC

PostPosted: Sat Jun 18, 2011 7:26 am    Post subject: Reply with quote  Mark this post and the followings unread

Confirmed for InfantryTypes:
step_distance = Speed*256/100*bonus_coefficient

Seems that speed for VehicleTypes is added something before it is used to calculate.

_________________
Fusion Reactor upgrade is complete.

We will prevail!!!

Back to top
View user's profile Send private message Send e-mail Skype Account
LH_Mouse
Cyborg Firebomber


Joined: 10 Jan 2010
Location: The Great PRC

PostPosted: Sat Jun 18, 2011 11:13 pm    Post subject: Reply with quote  Mark this post and the followings unread

Well, worked over a night. The algorithm may be one of these two:

1)step_distance = Speed*256/100*bonus_coefficient/7*256/24
or
2)step_distance = Speed*256/100*bonus_coefficient/7*256/23

Experiments supported the second one, however I'm considering this negligence of WW. Because drive locomotor is based on a table which contains 24 elements.

====================

If the second one is correct, then a Speed=10 InfantryType's actual speed is [10*256/100]=25, while a Speed=6 VehicleType's actual speed is [[6*256/100]/7*256/23]=23, so they're moving at similar speeds.

_________________
Fusion Reactor upgrade is complete.

We will prevail!!!

Back to top
View user's profile Send private message Send e-mail Skype Account
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [11 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1556s ][ Queries: 11 (0.0089s) ][ Debug on ]