Author Topic: Can someone teach me to make custom playertypes?  (Read 1059 times)

I want to learn to make custom playertypes so I can make "armor" events in RPs. I've searched "how to make custom playertypes" but cant find any tutorials. I've tried making one on my own before but I can't figure out how to change the speed, health, jump etc.

At least you didn't just say "how do I make add-ons."

Make a folder named Player_NAMEHERE and put a namecheck.txt with the following in it:
Code: [Select]
Player_NAMEHERE
Now make a description.txt with the following in it:
Code: [Select]
Title: TITLE HERE
Author: YOUR BLOCKLAND NAME HERE
A SHORT DESCRIPTION HERE
now make another txt file named Player_YOURPLAYERNAMEHERE and make a server.cs with the following:
Code: [Select]
exec("./Player_YOURPLAYERNAMEHERE");
Now for the Player_YOURPLAYERNAMEHERE file put:
Code: [Select]
datablock PlayerData(PLAYERNAMEHEREArmor : PlayerStandardArmor)
{
   runForce = NUMBER ;
   runEnergyDrain = NUMBER;
   minRunEnergy = NUMBER;

   maxForwardSpeed = NUMBER;
   maxBackwardSpeed = NUMBER;
   maxSideSpeed = NUMBER;

   maxForwardCrouchSpeed = NUMBER;
   maxBackwardCrouchSpeed = NUMBER;
   maxSideCrouchSpeed = NUMBER;

jumpForce = NUMBER;
jumpEnergyDrain = NUMBER;
minJumpEnergy = NUMBER;
jumpDelay = NUMBER;

minJetEnergy = NUMBER;
jetEnergyDrain = NUMBER;
canJet = NUMBER;

showEnergyBar = NUMBER;
showHealthBar = NUMBER;
maxEnergy = NUMBER;
rechargeRate = NUMBER;

maxDamage = NUMBER;

uiName = "PLAYERNAMEHERE Player";
};

I want to learn to make custom playertypes so I can make "armor" events in RPs. I've searched "how to make custom playertypes" but cant find any tutorials. I've tried making one on my own before but I can't figure out how to change the speed, health, jump etc.
Okay let's see. You don't know how to chage the speed, health or jump values?

Code: [Select]
runForce = 48 * 90;
jumpForce = 8 * 90;
maxDamage = 100;

Oh I see, you are not particularly good at English. The health variable you could have figured out rather quickly by thinking a little. "Maximum damage".. In my opinion the variable names are very self explanatory, that's why you didn't find any tutorials.

In my opinion the variable names are very self explanatory, that's why you didn't find any tutorials.
True, but making a playertype with a custom model requires a lot of modeling and is not as easy.

True, but making a playertype with a custom model requires a lot of modeling and is not as easy.
Indeed, but he was referring to changing speeds and health so I am assuming he means a regular player type, not one with custom models and animations.

How can I make a "pack" of more than one playertype? I don't want to have to check 20 different playertypes in the add on selector.

Yes, execute all the player type scripts in the server.cs.