MrFish7
11th Jun 2000, 07:02 PM
Ok, I was trying to make a hit detection mutator base upon a tutorial found on the net. When i try to load it, nothing speacial happens. Here is the code
/---------------
//=============================================================================
// Ender.
//=============================================================================
class Ender expands Mutator;
fucntion ProcessTraceHit(Actor Other, Vector HitLocation, Vector HitNormal, Vector X, Vector Y, Vector Z)
{
local int HitHeight;
if(Other.IsA('Pawn')
{
HitHeight = HitLocation.Z;
if(HitHeight > .62 * Other.CollisionHeight)
BroadcastMessage("Head Hit");
else if(HitHeight < 0.35 * Other.CollisionHeight)
BroadcastMessage("Legs Hit);
else BroadcastMessage("Body Hit");
}
}
/----------------------
Any help would be appreciated.
Thanks
/---------------
//=============================================================================
// Ender.
//=============================================================================
class Ender expands Mutator;
fucntion ProcessTraceHit(Actor Other, Vector HitLocation, Vector HitNormal, Vector X, Vector Y, Vector Z)
{
local int HitHeight;
if(Other.IsA('Pawn')
{
HitHeight = HitLocation.Z;
if(HitHeight > .62 * Other.CollisionHeight)
BroadcastMessage("Head Hit");
else if(HitHeight < 0.35 * Other.CollisionHeight)
BroadcastMessage("Legs Hit);
else BroadcastMessage("Body Hit");
}
}
/----------------------
Any help would be appreciated.
Thanks