How can I disable a specific player type from crouching or playing the animation while crouching? (While still allowing PlayerStandardArmor + Others to crouch)
I tried defining an 'mDTS2' which is like the mDTS TSShapeConstructor except that the animations for crouch, crouchRun, etc direct to root, run and the rest. When I tried this, I get [attached image] and the player jerking to face up and forwards whether you look up or down while holding the key.
m_portal.dts is m.dts copied/pasted into the same folder, so PlayerPortal uses the 'new' animation set rather than mDTS as it is already defined.
datablock TSShapeConstructor(mDts2 : mDTS) //No crouch animation
{
baseShape = "base/data/shapes/player/m_portal.dts";
sequence5 = getWord(mdts.sequence0,0) SPC getWord(mDTS.sequence5,1);
sequence6 = getWord(mdts.sequence1,0) SPC getWord(mDTS.sequence6,1);
sequence7 = getWord(mdts.sequence3,0) SPC getWord(mDTS.sequence7,1);
sequence8 = getWord(mdts.sequence4,0) SPC getWord(mDTS.sequence8,1);
};
datablock PlayerData(PlayerPortal : PlayerStandardArmor)
{
shapeFile = "base/data/shapes/player/m_portal.dts";
maxDamage = 1;
maxEnergy = 59;
canJet = 0;
rechargeRate = 0.1;
airControl = 0.2;
jumpforce = PlayerStandardArmor.jumpforce * 0.67;
speedDamagescale = 0;
maxForwardCrouchSpeed = PlayerStandardArmor.maxForwardSpeed;
maxForwardBackwardSpeed = PlayerStandardArmor.maxBackSpeed;
maxForwardSideSpeed = PlayerStandardArmor.maxSideSpeed;
crouchBoundingBox = PlayerStandardArmor.boundingBox;
uiName = "Portal-Style Player";
showEnergyBar = true;
};