Blockland Forums > Modification Help
Can someone teach me to make custom playertypes?
Sicarius:
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.
brickybob:
At least you didn't just say "how do I make add-ons."
jes00:
Make a folder named Player_NAMEHERE and put a namecheck.txt with the following in it:
--- Code: ---Player_NAMEHERE
--- End code ---
Now make a description.txt with the following in it:
--- Code: ---Title: TITLE HERE
Author: YOUR BLOCKLAND NAME HERE
A SHORT DESCRIPTION HERE
--- End code ---
now make another txt file named Player_YOURPLAYERNAMEHERE and make a server.cs with the following:
--- Code: ---exec("./Player_YOURPLAYERNAMEHERE");
--- End code ---
Now for the Player_YOURPLAYERNAMEHERE file put:
--- Code: ---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";
};
--- End code ---
Demian:
--- Quote from: Sicarius on October 23, 2011, 10:55:05 PM ---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.
--- End quote ---
Okay let's see. You don't know how to chage the speed, health or jump values?
--- Code: --- runForce = 48 * 90;
jumpForce = 8 * 90;
maxDamage = 100;
--- End code ---
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.
jes00:
--- Quote from: Demian on October 24, 2011, 08:13:03 AM ---In my opinion the variable names are very self explanatory, that's why you didn't find any tutorials.
--- End quote ---
True, but making a playertype with a custom model requires a lot of modeling and is not as easy.