Re: Hungry_Hippos
Posted: Wed Jan 14, 2015 12:08 am
Yes, I have written several versions of this code, because different maps need different rules... For instance, this map is a closed arena, so no matter what direction you look, there should always be an LOS Object. If you ever look in any direction and see nothing, you gonna die, bitch!
In BottomsUp, you are supposed to be under the terrain, so the function just looks up... If there ain't nothin there, you gonna die, bitch!
There are constantly dickholes under the terrain in CanyonCrusade, and a few other ground maps... So in those maps, the function could look down, but that's never gonna work, because, what idiot gets under the terrain and then flies around? No, you get under there and stand on deployable platforms... So instead of looking down, where there's almost certainly something perfectly normal to be found, we look up, and specifically check if the LOS Object is terrain... If it's above you, you gonna fucking die!!!
Then there are the air maps... Where it really doesn't matter because the terrain is so far away from the mission area, if you are below it, good riddance! (Unless you have the flag, then you should be gutted like a pig, you swine!
So, the point is, the rules are different for each map, therefor the function has to be different for each map. One script can certainly be used by several maps, but definitely not for all of them.
In BottomsUp, you are supposed to be under the terrain, so the function just looks up... If there ain't nothin there, you gonna die, bitch!
There are constantly dickholes under the terrain in CanyonCrusade, and a few other ground maps... So in those maps, the function could look down, but that's never gonna work, because, what idiot gets under the terrain and then flies around? No, you get under there and stand on deployable platforms... So instead of looking down, where there's almost certainly something perfectly normal to be found, we look up, and specifically check if the LOS Object is terrain... If it's above you, you gonna fucking die!!!
Then there are the air maps... Where it really doesn't matter because the terrain is so far away from the mission area, if you are below it, good riddance! (Unless you have the flag, then you should be gutted like a pig, you swine!
So, the point is, the rules are different for each map, therefor the function has to be different for each map. One script can certainly be used by several maps, but definitely not for all of them.