SUPER-G
  • SUPER-G
  • 59.75% (Neutral)
  • Colonel Topic Starter
13 years ago
when i put in cars for a generals map they always go really fast, often now turning corners right and going off the road. it really makes my map look less good. is there a way that i can limit the speed on cars?
UserPostedImage
PK_Soar #9531
He that is slow to believe anything and everything is of great understanding, for belief in
one false principle is the beginning of all unwisdom. - Anton Lavey

Sponsor
VTULCobra
13 years ago
I believe you have to change that by changing the locomotor speed in a map.ini.
Rank up!
SUPER-G
  • SUPER-G
  • 59.75% (Neutral)
  • Colonel Topic Starter
13 years ago
how do i do that?
UserPostedImage
PK_Soar #9531
He that is slow to believe anything and everything is of great understanding, for belief in
one false principle is the beginning of all unwisdom. - Anton Lavey

VTULCobra
13 years ago
I'm sorry but I don't really know how to do it, just that you can do it.
Though I know, which I think you do too, that you have to add a map.ini in the map folder and then place the locomotor code for your specific unit and change it's speed.
I'm not familiar with this sort of thing so I'd recommend you to be patient and wait until someone who knows replies to the thread.
Rank up!
cgf123`
13 years ago
is your problem that the cars go off the road, or just that they go too fast?

because honestly speed doesnt make any difference to the way it turns (in generals that is... ofcourse in real life a faster moving car will have a larger turn radius)


anyways, to change the car's locomotor settings just create a map.ini file in your map's folder, and paste this inside it:


Locomotor BasicCarLocomotor
  Surfaces = GROUND
  Speed = 90                ; in dist/sec
  SpeedDamaged = 90         ; in dist/sec
  TurnRate = 120            ; in degrees/sec
  TurnRateDamaged = 120     ; in degrees/sec
  Acceleration = 30         ; in dist/(sec^2)
  AccelerationDamaged = 30  ; in dist/(sec^2)
  Braking = 50              ; in dist/(sec^2)
  MinTurnSpeed = 40         ; in dist/sec
  TurnPivotOffset = -0.5    ; where to pivot when turning (-1.0 = rear, 0.0 = center, 1.0 = front)
  ZAxisBehavior = NO_Z_MOTIVE_FORCE
  Appearance = FOUR_WHEELS

  AccelerationPitchLimit = 6      ; Angle limit how far chassis will lift or roll from acceleration.
  BounceAmount = 0                ;  simulates hitting random rocks.  0==smooth pavement, 200 = bumpy.
  PitchStiffness = 0.1            ;  stiffness of the "springs" in the suspension forward & back.
  RollStiffness  = 0.05            ;  stiffness of the "springs" in the suspension side to side.
  PitchDamping = 0.5        ;  How fast it damps.  0=perfect spring, bounces forever.  1=glued to terrain.
  RollDamping = 0.5        ;  How fast it damps.  0=perfect spring, bounces forever.  1=glued to terrain.
  ForwardAccelerationPitchFactor = 0.3  ; How much acceleration will cause the front to lift, or dip for stops.
  LateralAccelerationRollFactor = 0.2   ;   How much cornering will cause the chassis to roll.
End
this the default car locomotor (as in locomotor.ini extracted from the INI.big). if you want to change its speed, simply edit its 'Speed' and 'SpeedDamaged' values.

PS- may be a good idea to remove all the attributes you wont be editing... for whatever reason ive noticed a few of them can cause map crashes sometimes. So essentially you could just do:

Locomotor BasicCarLocomotor
  Surfaces = GROUND
  Speed = 50                ; in dist/sec
  SpeedDamaged = 50         ; in dist/sec
End

'The Red Alert' mod with more refined balancing+bugfixes:
Check it out! 
i^love^mixery
13 years ago

because honestly speed doesnt make any difference to the way it turns (in generals that is... ofcourse in real life a faster moving car will have a larger turn radius)

Originally Posted by: cgf123` 



thats not right. i just tested it:
if you increase the speed then the turning radius will increase too.

but your code is right of course and it works well๐Ÿ˜
SUPER-G
  • SUPER-G
  • 59.75% (Neutral)
  • Colonel Topic Starter
13 years ago
wow thanks guys for your help!๐Ÿ˜
UserPostedImage
PK_Soar #9531
He that is slow to believe anything and everything is of great understanding, for belief in
one false principle is the beginning of all unwisdom. - Anton Lavey

SUPER-G
  • SUPER-G
  • 59.75% (Neutral)
  • Colonel Topic Starter
13 years ago
but how do i make a map.ini file?
UserPostedImage
PK_Soar #9531
He that is slow to believe anything and everything is of great understanding, for belief in
one false principle is the beginning of all unwisdom. - Anton Lavey

Annihilationzh
13 years ago

because honestly speed doesnt make any difference to the way it turns (in generals that is... ofcourse in real life a faster moving car will have a larger turn radius)


I hope you mean that in generals a car can turn on the spot if coded to, because when using dist/sec and degrees/sec, increasing either will change it's turning circle.

but how do i make a map.ini file?


Create a txt file and change the extension to ini. Then place any code in there.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
SUPER-G
  • SUPER-G
  • 59.75% (Neutral)
  • Colonel Topic Starter
13 years ago

Create a txt file and change the extension to ini. Then place any code in there.



how do i change the extension
UserPostedImage
PK_Soar #9531
He that is slow to believe anything and everything is of great understanding, for belief in
one false principle is the beginning of all unwisdom. - Anton Lavey

Annihilationzh
13 years ago
Tutorial here:
http://www.mediacollege.com/microsoft/windows/extension-change.html 

Or a more general one here:
http://www.computerhope.com/issues/ch000428.htm 

Or you can just google 'change file extension.'
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
SUPER-G
  • SUPER-G
  • 59.75% (Neutral)
  • Colonel Topic Starter
13 years ago
๐Ÿ˜ UserPostedImage wow it worked thanks again!
UserPostedImage
PK_Soar #9531
He that is slow to believe anything and everything is of great understanding, for belief in
one false principle is the beginning of all unwisdom. - Anton Lavey