Author Topic: player types questions(2)  (Read 755 times)

1.how do i make player types?

2.is it possible to make a black fire emit?if so how

1. Look at the existing Player_*.zip files for information on this. For the names and default values of the attributes you can edit of a player type (e.g. maxRunSpeed, jumpForce) , put PlayerStandardArmor.dump(); into the console while hosting a game, or a single player server. Always edit the uiName and datablock names of the player types you create, this prevents them overwriting each other or mixing up in the Minigame/event menus.

2. Look at the existing Particle_Basic.zip file for examples of various emitters, including a fire emitter.

im still a bit confused.....would this make it like fire B but black?
Code: [Select]
datablock ParticleData(BurnParticleB)
{
textureName          = "base/data/particles/cloud";
dragCoefficient      = 0.0;
gravityCoefficient   = 0.0;
inheritedVelFactor   = 0.0;
windCoefficient      = 0;
constantAcceleration = 3.0;
lifetimeMS           = 800;
lifetimeVarianceMS   = 100;
spinSpeed     = 0;
spinRandomMin = -90.0;
spinRandomMax =  90.0;
useInvAlpha   = false;

colors[0] = "0   0   0 0";
colors[1] = "0   0   0 0";
colors[2] = "0   0   0 0";

sizes[0] = 0.0;
sizes[1] = 1.0;
sizes[2] = 0.6;

times[0] = 0.0;
times[1] = 0.2;
times[2] = 1.0;
};

datablock ParticleEmitterData(BurnEmitterB)
{
   ejectionPeriodMS = 14;
   periodVarianceMS = 4;
   ejectionVelocity = 3;
   ejectionOffset   = 0.00;
   velocityVariance = 0.0;
   thetaMin         = 0;
   thetaMax         = 5;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;

   //lifetimeMS = 5000;
   particles = BurnParticleB;   

uiName = "Black Fire";
};

and would this be my "demon" playertype code?[i want him to run fast and jump high]

Code: [Select]
//Demon.cs

//a new player datablock with quake-like movement and black fire emitting from it



datablock PlayerData(PlayerDemonArmor : PlayerStandardArmor)
{
   runForce = 250 * 140;
   runEnergyDrain = 0;
   minRunEnergy = 0;
   maxForwardSpeed = 15;
   maxBackwardSpeed = 15;
   maxSideSpeed = 15;

   maxForwardCrouchSpeed = 10;
   maxBackwardCrouchSpeed = 10;
   maxSideCrouchSpeed = 10;

   jumpForce = 12 * 120; //10.3 * 120;
   jumpEnergyDrain = 0;
   minJumpEnergy = 0;
   jumpDelay = 0;

minJetEnergy = 0;
jetEnergyDrain = 0;
canJet = 0;

uiName = "Demon";
showEnergyBar = true;

   runSurfaceAngle  = 55;
   jumpSurfaceAngle = 55;
};

if not can someone plz just make the codes for me?im new to scripting and stuff

Instead of asking us, why not just try it and find out if it works?

To make it black, add a doColorShift snip to the script.

To make it black, add a doColorShift snip to the script.
Why post if you know that you have no idea what your doing?

To make it black, add a doColorShift snip to the script.

Sorry, but I think if you want to make the emitter change color you just change these.
Code: [Select]
        colors[0] = "0   0   0 0";
colors[1] = "0   0   0 0";
colors[2] = "0   0   0 0";


Sorry, but I think if you want to make the emitter change color you just change these.
Code: [Select]
        colors[0] = "0   0   0 0";
colors[1] = "0   0   0 0";
colors[2] = "0   0   0 0";


Your right, silly me ;)