Thursday, 8 December 2011

It Hurts!!!!

After weeks and weeks of trying to figure out coding so that when the player head is out of water she'll still get hurt, it final dawned on myself and Neasa when we were working together. That wait a minute if we just reduce the damage the player gets in a lava volume and change the fluid proprieties so that it was the same as water then we could just us that instead.
Yea that's right a lava volume acting as a water volume works, the only problem is trying to create a delay so that the player won't just start losing health the second they enter the water. But one thing at a time that's what they say.


class CustomWaterDamage extends UTLavaVolume
placeable;

function Timer ()
{
SetTimer(5.0, true);
}



DefaultProperties
{
bPainCausing=true
bStatic=false
DamagePerSec=1.0
FluidFriction=+00002.400000
}    

No comments:

Post a Comment