Data. Attached you the testmap. Start the map and try the spells, the method used should be fairly obvious.
However, i am not sure, if this can be used easily for projectile collision. It works well for fast missile + slow target, but 2 fast missiles might still miss each other.
In case you are not aware: Make sure to never test performance in singleplayer and test modus. The test mode and especially the debug window cause the performance to drop significantly.
I tried that at first, but it isn't nearly accurate enough because of the tick limit (projectiles are supposed to hit each other). I have to either move and execute a search area 4-8 times per tick, or limit all projectile speed to about 4. If I could figure out how malu changed the game speed I could try greatly speeding the game up, but that itself would probably cause lag.
multiple search areas per tick work just fine. I have a testmap flying around, if you need it.
Data. Attached you the testmap. Start the map and try the spells, the method used should be fairly obvious.
However, i am not sure, if this can be used easily for projectile collision. It works well for fast missile + slow target, but 2 fast missiles might still miss each other.
In case you are not aware: Make sure to never test performance in singleplayer and test modus. The test mode and especially the debug window cause the performance to drop significantly.
multiple search areas per tick work just fine. I have a testmap flying around, if you need it.