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?