Author Topic: Changing the Spped of a Playertype  (Read 531 times)

I am trying to change the speed of this first-person playertype, but I'm stupid. How would I do this?

Here is the server.cs for the first-person playertype:


datablock PlayerData(PlayerFirstPerson : PlayerStandardArmor)
{
   minJetEnergy = 0;
   jetEnergyDrain = 0;
   canJet = 0;
   firstPersonOnly = 1;

   uiName = "First-Person Player";
   showenergybar = false;
};

maxforwardspeed = ...
maxbackwardspeed = ...

Do playerstandardarmor.save("config/blah.cs");
and open thefileto see a listof all variables.

runForce = "this";


Faster than normal is a value greater than "4320"


Slower than normal is a value slower than "4320"

runForce = "this";


Faster than normal is a value greater than "4320"


Slower than normal is a value slower than "4320"
runForce doesn't change max speed does it

maxforwardspeed = ...
maxbackwardspeed = ...
Where exactly would I put these?

Do playerstandardarmor.save("config/blah.cs");
and open thefileto see a listof all variables.
Do I have to do this?

Ingore both of these guys
Runforce is the acceleration

Code: [Select]
datablock PlayerData(PlayerFirstPerson : PlayerStandardArmor)
{
   minJetEnergy = 0;
   jetEnergyDrain = 0;
   canJet = 0;
   firstPersonOnly = 1;

   uiName = "First-Person Player";
   showenergybar = false;

   maxforwardspeed = something;
   maxbackwardspeed = something;
   maxsidewaysspeed = something;

};

Ingore both of these guys
Runforce is the acceleration

Code: [Select]
datablock PlayerData(PlayerFirstPerson : PlayerStandardArmor)
{
   minJetEnergy = 0;
   jetEnergyDrain = 0;
   canJet = 0;
   firstPersonOnly = 1;

   uiName = "First-Person Player";
   showenergybar = false;

   maxforwardspeed = something;
   maxbackwardspeed = something;
   maxsidewaysspeed = something;
   runforce = the acceleration speed of the player;
};

So just copy that^ and paste it into the file (and add the numbers of course)?

So just copy that^ and paste it into the file (and add the numbers of course)?
Um
Yes
Of course
...

I used the code above and I set my numbers to these:

maxforwardspeed = 3
maxbackwardsspeed = 2
maxsidewaysspeed = 0

The forward and backward speeds are perfect, but the sideways speed is the same as a no-jet player or standard player. I have tried it at 1, 2, and 3, but it's always the same speed. Any way to fix this?