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:
//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;
};