It's not a indexing system that makes it possible, it's the use of dynamic arrays or linked lists
MCI can't be achieved when dealing with an ability that has a direct effect on the unit's characteristics (such as methamorphosis) but it's completely possible if it makes sense in your head.
If...
I think you're confusing the game per se with the map.
A map doesn't carry around all the model, sound or any of the rest of the MPQ data, the game does.
Deleting a MPQ file results in deleting it from the warcraft 3 version installed in your computer, not from the map.
Adding a file that...
I'm sorry, it's just that you have a reputation for posting codes that don't compile, so I took the most obvious fact about your code (methods being private) as proof that this wasn't an exception and I hope that I'm wrong.
Binary search seems rather useless in warcraft because you have...
Do not use function interfaces.
Use Advent, which allows smart data retrieval and event arrays.
If you don't know how to use advent then do as GFreak45 said.
set CombineFunctions[0] = CreateTrigger()
call TriggerAddCondition(CombineFunctions[0],Filter(code))
To fire the code do...
Obviously Nes didn't read the code because he didn't notice the extremely amusing call TriggerSleepAction(0.0001)
It's also quite obvious that you havent even tested it yet because the methods are private within the module what means you can't access them at the struct you implemented it in
You mean, to check if unit "a" is behind unit "b"?
Easily done with cone...
Cone(angle from unit a to b, b unit facing, 70 degrees)
Cone(Atan2(GetUnitY(b)-GetUnitY(a),GetUnitX(b)-GetUnitX(a)),GetUnitFacing(b),70*bj_DEGTORAD)
Well my system also supports curved missiles.
Gwypass's and Berb's systems use interfaces... which compile into a pile of garbage and trigger evaluations everywhere, increasing your map size by at least 1mb with code and destroying all efficiency.
The "spinning around unit" bug can't be fixed...
http://www.hiveworkshop.com/forums/jass-resources-412/system-missile-207854/
Try mine (it's also approved at the hive)
I plan to update it tonight (check in 3 hours)
Vector is such an awful library anyways
I take from your posts that you barely speak english and I'm starting to wonder if you understand anything of what i'm saying.
It would be better for all of us if you used google translate and try to explain what are you trying to do here.
No because (as it seems to me) your CheckUntiPosition doesn't quite do that.
It's basically dividing the whole angle spectrum into 4 pieces and returning an integer that determines in which area it's inside?
That makes absolutely no sense to me
Controlling the cone opening results very hard, it...
I designed this formula to avoid that math overload you're using.
I don't know what a sector is, nor do I know what most of the other functions are supposed to do. But they all look related to calculate if a unit is inside a cone (or am I wrong?)
Anyways picking units inside a cone with this...
@Sgqvur
With aperture I meant opening, Idk why I got confused, I'll fix it right away.
I think Cone is an appropriate name. At least in warcraft.
And the picture shown is an example, not the logic.
The cone's facing angle is from where the opening angle begins...
Are you asking because you don't...
You can write text documents into someone's w3 folder (and i'm not even sure if you can read it back), but you can't run them through the editor, so you can't perform malicious code.
//Determines if the angle "a" is inside a cone of facing "b" with opening "o"
function Cone takes real a, real b, real o returns boolean
return Cos(a-b)>=Cos(o)
endfunction
Example:
Lets say there's a cone facing 0 degrees with opening 70, and we want to know if the angle 45 is inside of it...
There's always a way to avoid interfaces, no matter how ugly the API looks like.
are you sure that textmacros compile after modules? It's also a possibility that they compile at the same time in linear order (if there's a textmacro above a module then it should compile first)