Results 1 to 3 of 3
  1. #1
    Deathray75's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    22
    Reputation
    10
    Thanks
    1
    My Mood
    Sick

    Exclamation Where Do You Get All Your Codes

    hey guys

    so i was looking at the custom kills streak by auzmel or whatever and hereís a little snippet

    Code:
     if ( directionYaw > 25 && directionYaw < 65 ) {
    y = (sin(directionYaw)*100)*-1;
    x = (sqrt(10000 - y*y))*-1;
    }
    else if ( directionYaw > 115 && directionYaw < 155 ) {
    y = (sin(directionYaw-90)*100)*-1;
    x = sqrt(10000 - y*y);
    }
    else if ( directionYaw > 205 && directionYaw < 245) {
    y = (sin(directionYaw-180)*100);
    x = (sqrt(10000 - y*y));
    }
    else if ( directionYaw > 295 && directionYaw < 335 ) {
    y = sin(directionYaw-270)*100;
    x = (sqrt(10000 - y*y))*-1;
    }
    
    
    else if ( directionYaw >= 65 && directionYaw <= 115 ) {
    y = -100;
    x = 0;
    }
    else if ( directionYaw >= 245 && directionYaw <= 295 ) {
    y = 100;
    x = 0;
    }
    else if ( directionYaw <= 25 || directionYaw >= 335 ) {
    y = 0;
    x = -100;
    }
    else if ( directionYaw >= 155 && directionYaw <= 205 ) {
    y = 0;
    x = 100;
    }
    else {
    y = 0;
    x = 100;
    I can understand this code but there no way that he could have wrote all of this? I think? Iíve been searching on ff viewer on common_mp.ff and i can't find this

    Code:
     self beginLocationSelection( "map_artillery_selector", true, ( level.mapSize / 5.625 ) );
    this is the code to confirm where the airstrike will go but hereís the thing Iíve had a look at airstrike and other codes and Iím unable to find that code now i know you need this codeother wise no airstrike

    So whatís my "help or question?"

    Where are you guys able to find these codes and if you say you learned it how or what did you take a degree in c language?

    Cheers!

    p.s

    i've checed all stuff im gametypes nothing is it in the common_mp or are you guys using your won skills?
    Last edited by Deathray75; 11-29-2010 at 11:50 AM.

  2. #2
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    Even though im not the best, ive just learned everything from other mods. Nothing at school, no tutorials, nothing.

  3. #3
    Deathray75's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    22
    Reputation
    10
    Thanks
    1
    My Mood
    Sick
    Quote Originally Posted by Arasonic View Post
    Even though im not the best, ive just learned everything from other mods. Nothing at school, no tutorials, nothing.
    wow amazing any way thanks

    please can a mod close this thanks