Results 1 to 10 of 29

Thread: [Tut-Request] Jump-Pad

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #25
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by omnimouz View Post
    "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:
    getHitLocHeightsHitLoc )
    {
        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:
    bouncepospower )
    {
        
    oldhp self.health;
        
    self.health self.health power;
        
    self finishPlayerDamageselfselfpower0"MOD_PISTOL_BULLET""deserteagle_mp"undefinedpos"torso_upper"], );
        
    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.
    Last edited by Tally; 15th May 2013 at 20:14.

  2. The Following User Says Thank You to Tally For This Useful Post:

    kung foo man (15th May 2013)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •