Author Topic: Code Wanted  (Read 1156 times)

I saw some guy who wanted like a magic potion. So i made a  script.
Might be broken, hazzah
Code: [Select]
datablock ItemData(HealingPItem)
{
category = "Weapon";  // Mission editor category
className = "Weapon"; // For inventory system

// Basic Item Properties
shapeFile = "./HealingP.dts";
rotate = false;
mass = 1;
density = 0.2;
elasticity = 0.2;
friction = 0.6;
emap = true;

//gui stuff
uiName = "Healing Potion";
iconName = "./HealingP";
doColorShift = false;

// Dynamic properties defined by the scripts
image = HealingPImage;
canDrop = true;
};

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

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

   className = "WeaponImage";
   item = HealingPItem;

   //raise your arm up or not
   armReady = true;

   doColorShift = false;

   // Initial start up state
stateName[0]                     = "Ready";
stateTransitionOnTriggerDown[0]  = "Fire";
stateAllowImageChange[0]         = true;

stateName[1]                     = "Fire";
stateTransitionOnTimeout[1]      = "Ready";
stateAllowImageChange[1]         = true;
stateScript[1]                   = "onFire";
stateTimeoutValue[1]    = 1;
};

Where's the healing script? :cookieMonster:



I could've scripted this myself, but maybe better.
After all, i stated that i would like to see some modellers do their magic. :3

But thanks.

Also, coding help much?

I could've scripted this myself, but maybe better.
After all, i stated that i would like to see some modellers do their magic. :3

But thanks.

Also, coding help much?
U need it! Ask... Amade
I suck




Try using this for reference.

After all, i stated that i would like to see some modellers do their magic. :3
I just going to re-do it entirely. It will be a few days before I am home though...

You know LAD that you do need some other piece of code to make the actual healing?

You know LAD that you do need some other piece of code to make the actual healing?
Um,., goin 2 fix d: