Home   Help Search Login Register  

Author Topic: mans speed  (Read 1592 times)

0 Members and 1 Guest are viewing this topic.

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
mans speed
« on: 06 Dec 2004, 02:51:58 »
hello
is it possible to edit the config of a man class unit and make him be able to run faster than a normal man class unit. if so how would I do this?
thanks

Offline oyman

  • Members
  • *
  • king of pings
Re:mans speed
« Reply #1 on: 06 Dec 2004, 04:47:40 »
in the main ofp config under the soldier class, there is this part of code
Code: [Select]
maxSpeed=24;maybe changing that would do something?

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:mans speed
« Reply #2 on: 20 Dec 2004, 20:30:51 »
well that only apears if its a vehicle config but this is a man class

thanks for trying though :)


Lean Bear

  • Guest
Re:mans speed
« Reply #3 on: 21 Dec 2004, 14:14:15 »
But men are classed under Vehicles.

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:mans speed
« Reply #4 on: 31 Dec 2004, 22:55:21 »
i tryied setting max speed higher but it dosent do anything

Lean Bear

  • Guest
Re:mans speed
« Reply #5 on: 01 Jan 2005, 13:20:04 »
This is taken directly from the BIS config:

class All {};
class AllVehicles: All {};
class Land: AllVehicles {};
class Man: Land
{
   //--


So, as you can see, it is classed as a man through Vehicles.

The following line tells OFP that it is a "man":

isMan = true;

This is sort of like in the motorcycle class, to class a bicycle - you'd need to put something like:

isBicycle = true;

There is indeed a line:

maxSpeed=24;

But, although this changes how fast you can go, it won't actually change the speed.

How far the man moves a second is defined in the animations in the cfgMoves section.

edit

To change the speed at which a man runs/walks, you'll need to do the following:

First, copy the cfgMoves section (so you don't screw up your original).

Then in the cfgMoves section, look for class Default, then class States.

You should see a list that goes on a long way that defines all the anims.

You should see something like:

class StandWalkF: StandBase

This is (and the following ones) the walking direction anims.

You'll see a line speed = -1.2; - ignore that, changing this will just make everyone move around in a weird way (all jerky etc.) - basically, it'll just speed up the movement of the anim, not how fast the man walks.

The one you are looking for is:

relSpeedMin=0.7;
relSpeedMax=1.0;


By making both of these bigger but with the same interval (ie. 0.3), then everything should move faster.

edit 2

Umm, actually, I'm not too sure anymore, just try both. :)
« Last Edit: 01 Jan 2005, 13:28:36 by Lean Bear »