Here's the code for the frozen playertype: (Renderman Mod v3)
datablock PlayerData(PlayerFrozenArmor : PlayerStandardArmor)
{
runForce = 0;
runEnergyDrain = 0;
minRunEnergy = 0;
maxForwardSpeed = 0;
maxBackwardSpeed = 0;
maxSideSpeed = 0;
maxForwardCrouchSpeed = 0;
maxBackwardCrouchSpeed = 0;
maxSideCrouchSpeed = 0;
jumpForce = 0; //8.3 * 90;
jumpEnergyDrain = 0;
minJumpEnergy = 0;
jumpDelay = 0;
minJetEnergy = 0;
jetEnergyDrain = 0;
canJet = 0;
uiName = "Frozen Player";
showEnergyBar = false;
};
The purpose of this playertype is to stop the player from moving and freeze them on the spot, while still allowing them to turn. While it does this, it has several annoying bugs.
1) The player slides along the ground if changed to this datablock while moving. ("fixed" by setting velocity to 0)
2) The player is locked in 3rd person.
How do I fix this?