Simple question, why doesnt this work?
datablock PlayerData(SpeedArmor : PlayerStandardArmor)
{
runForce = 100 * 90;
runEnergyDrain = 0;
minRunEnergy = 0;
maxForwardSpeed = 15;
maxBackwardSpeed = 15;
maxSideSpeed = 15;
maxForwardCrouchSpeed = 3;
maxBackwardCrouchSpeed = 2;
maxSideCrouchSpeed = 2;
minJetEnergy = 0;
jetEnergyDrain = 0;
canJet = 0;
uiName = "";
showEnergyBar = false;
runSurfaceAngle = 45;
jumpSurfaceAngle = 45;
};
datablock ItemData(SpeedSyringe)
{
category = "Weapon"; // Mission editor category
className = "Weapon"; // For inventory system
// Basic Item Properties
shapeFile = "./DRSYRINGE.dts";
rotate = true;
mass = 1;
density = 0.1;
elasticity = 0.1;
friction = 0.8;
emap = true;
//gui stuff
uiName = "Speed Syringe (Static)";
doColorShift = false;
// Dynamic properties defined by the scripts
canDrop = true;
};
function SpeedSyringeItem::onPickup(%this, %obj, %col)
{
%obj.changedatablock(PlayerSpeedArmor);
}
Doesnt appear to work, help!
On the other hand, I need help with static items, if you dont know what that is, well its an item that you pickup and use instantly, for example the TF2 medkits or the Sanvich. So if anyone can help me with that too, like item dropping and that, please do!