So it is to my understanding that practically (a more reasonable word would be "realistically") every scenario COULD be made as a random map, correct?
Unfortunately, I don't know how to script very well and I need some help. First off, how do the cliff parameters work? I am using the word parameters very liberally, to say "limits". Anyhoo, I would also like to know some other basic functions like how to "create" units. I am fully aware that I am again using the word "basic" very liberally also.
I understand Trigs from a calculus standpoint but I don't really understand how they were made or are used in the game. I think if I knew how to use them I could do some neat stuff but then again I am a lonely and angsty teenager who never finishes anything he starts.
Here is what I think I know:
PI = Pi
cos = cos
sin = sin
atan = arctan?
atan2 = ??
Yeah, the first three I think I got but "a"tan is what throws me off. If you have answers to any of my questions feel free to contribute, or not if that is what pleases you. I am aware that I am asking a lot so if you don't want to answer because you are like me and tired and irritable and some neanderthal of a kid is asking on your forum for all this free information, then disregard this entire post and please feel free to flame me inside of your own happy place. Here is the script for the map "void" which confuses me because "void" is a word used to open and close clauses of C (or C# I don't know which this is closer to) script. I really just need some of the trigs explained, or at least, how they are used. Also, here is the textual form of the raw trigs.
Void Map. Oh, and no -I did not make this.
"There is no difference between magic and cutting-edge technology"
-Revolver Ocelot
"The Buddha exists in the circuits of a computer, or the gears of a motorcycle transmission as much as he does at the top of a mountain or in the petals of a lotus flower"
-Robert M. Pirsig
Unfortunately, I don't know how to script very well and I need some help. First off, how do the cliff parameters work? I am using the word parameters very liberally, to say "limits". Anyhoo, I would also like to know some other basic functions like how to "create" units. I am fully aware that I am again using the word "basic" very liberally also.
I understand Trigs from a calculus standpoint but I don't really understand how they were made or are used in the game. I think if I knew how to use them I could do some neat stuff but then again I am a lonely and angsty teenager who never finishes anything he starts.
Here is what I think I know:
PI = Pi
cos = cos
sin = sin
atan = arctan?
atan2 = ??
Yeah, the first three I think I got but "a"tan is what throws me off. If you have answers to any of my questions feel free to contribute, or not if that is what pleases you. I am aware that I am asking a lot so if you don't want to answer because you are like me and tired and irritable and some neanderthal of a kid is asking on your forum for all this free information, then disregard this entire post and please feel free to flame me inside of your own happy place. Here is the script for the map "void" which confuses me because "void" is a word used to open and close clauses of C (or C# I don't know which this is closer to) script. I really just need some of the trigs explained, or at least, how they are used. Also, here is the textual form of the raw trigs.
float PI = 3.141592;
float _pow(float n = 0,int x = 0) {
float r = n;
for(i = 1; <x) {
r = r * n;
}
return (r);
}
float _atan(float n = 0) {
float m = n;
if(n >1) m = 1.0 / n;
if(n <-1) m = -1.0 / n;
float r = m;
for(i = 1; <100) {
int j = i * 2 + 1;
float k = _pow(m,j) / j;
if(k == 0) break;
if(i % 2 == 0) r = r + k;
if(i % 2 == 1) r = r - k;
}
if(n >1 | | n < -1) r = PI / 2.0 - r;
if(n <-1) r = 0.0 - r;
return (r);
}
float _atan2(float z = 0,float x = 0) {
if(x >0) return (_atan(z / x));
if(x <0) {
if(z <0) return (_atan(z / x) - PI);
if(z >0) return (_atan(z / x) + PI);
return (PI);
}
if(z >0) return (PI / 2.0);
if(z <0) return (0.0 - (PI / 2.0));
return (0);
}
float _fact(float n = 0) {
float r = 1;
for(i = 1; <= n) {
r = r * i;
}
return (r);
}
float _cos(float n = 0) {
float r = 1;
for(i = 1; <100) {
int j = i * 2;
float k = _pow(n,j) / _fact(j);
if(k == 0) break;
if(i % 2 == 0) r = r + k;
if(i % 2 == 1) r = r - k;
}
return (r);
}
float _sin(float n = 0) {
float r = n;
for(i = 1; <100) {
int j = i * 2 + 1;
float k = _pow(n,j) / _fact(j);
if(k == 0) break;
if(i % 2 == 0) r = r + k;
if(i % 2 == 1) r = r - k;
}
return (r);
}
-Revolver Ocelot
"The Buddha exists in the circuits of a computer, or the gears of a motorcycle transmission as much as he does at the top of a mountain or in the petals of a lotus flower"
-Robert M. Pirsig