Originally Posted by
omnimouz
"torso_upper" is used in promod, which is what I'm trying to get it work in
Sorry, I see this is to register a hit location, in which case torso_upper is a valid sHitLoc. These are the valid sHitLocs in COD4:
PHP Code:
getHitLocHeight( sHitLoc )
{
switch( sHitLoc )
{
case "helmet":
case "head":
case "neck":
return 60;
case "torso_upper":
case "right_arm_upper":
case "left_arm_upper":
case "right_arm_lower":
case "left_arm_lower":
case "right_hand":
case "left_hand":
case "gun":
return 48;
case "torso_lower":
return 40;
case "right_leg_upper":
case "left_leg_upper":
return 32;
case "right_leg_lower":
case "left_leg_lower":
return 10;
case "right_foot":
case "left_foot":
return 5;
}
return 48;
}
These are areas in the hit boxes.
EDIT -
Looking at your script again, I see this:
PHP Code:
bounce( pos, power )
{
oldhp = self.health;
self.health = self.health + power;
self finishPlayerDamage( self, self, power, 0, "MOD_PISTOL_BULLET", "deserteagle_mp", undefined, pos, "torso_upper"], 0 );
self.health = oldhp;
}
You have a square brace after "torso_upper" - "torso_upper"]
serthy pointed it out to you, but you blew him off. Best to take notice if someone points out a scripting error. Otherwise we will be here all year.