Blockland Forums > Modification Help
Juggernaut Playertype (Released)
<< < (4/9) > >>
Agent C:

--- Quote from: Thorax on December 20, 2011, 03:00:18 AM ---

--- End quote ---
I don't like the part that hangs down on the front or back, it looks odd and out of place IMO. Other than that it looks nice
Brickmaster:
Cannot wait for release.
Mr.jacksaunt:

--- Quote from: Brickmaster on December 20, 2011, 09:59:47 PM ---Cannot wait for release.

--- End quote ---
Yes you can.
Thorax:

--- Quote from: cheese6 on December 20, 2011, 09:44:43 PM ---I'll code it.
Just send it to me, you'll probably get it back around tomorrow.
:S

--- End quote ---

I'm pretty much done coding it.
Thorax:
Double Post:

The only issue I'm having is getting the image to mount to the player on spawn.
Here is the code if anyone wants to help:

--- Code: ---//Juggernaut

//a new player datablock with Juggernaut-like movement and armor

datablock ShapeBaseImageData(JuggernautImage)
{
   // Basic Item properties
   shapeFile = "./Juggernaut.dts";
   emap = true;

   // Specify mount point & offset for 3rd person, and eye offset
   // for first person rendering.
   mountPoint = $BackSlot;
   offset = "0 0 0";
   eyeOffset = 0; //"0.7 1.2 -0.5";
   rotation = eulerToMatrix( "0 0 180" );
   scale = "3 3 3";
   offset = "0 0 -0.5";

   doColorShift = true;
   colorShiftColor = "0.100 0.100 0.100 1.000";
};

//function serverCmdJuggernaut(%Client,%Arg)
//{
//if(isObject(%client.player))
// {
// %client.player.mountImage(JuggernautImage,2);
// }
//}


package EquipArmor
{
function GameConnection::spawnPlayer(%this)
{
%this.mountImage(JuggernautImage,2);
parent::SpawnPlayer(%this);
}
};
activatepackage(EquipArmor);


datablock PlayerData(PlayerJuggernautArmor : PlayerStandardArmor)
{
   runForce = 100 * 90;
   runEnergyDrain = 0;
   minRunEnergy = 0;
   maxForwardSpeed = 3;
   maxBackwardSpeed = 1;
   maxSideSpeed = 1;
   maxForwardCrouchSpeed = 0;
   maxBackwardCrouchSpeed = 0;
   maxSideCrouchSpeed = 0;

   jumpForce = 7.5 * 90; //3 * 0;
   jumpEnergyDrain = 0;
   minJumpEnergy = 0;
   jumpDelay = 0;

   minJetEnergy = 0;
   jetEnergyDrain = 0;
   canJet = 0;
   uiName = "Juggernaut";
   showEnergyBar = false;
};

--- End code ---
Navigation
Message Index
Next page
Previous page

Go to full version