31.08.2016, 20:06
You should add some kind of ray casting...
Like put a proximity mine on inside a doorway, and point it's ray across the doorway. Instead of constant timers and inefficient looping you could detect every time a player moves at least 0.25 units, and when they do check which mines they are in range of, for each of those mines check if the ray collides the player's collision sphere (1 unit radius since players are 2 units tall).
Just a concept. I'll play with this concept myself to see what I can come up with.
Like put a proximity mine on inside a doorway, and point it's ray across the doorway. Instead of constant timers and inefficient looping you could detect every time a player moves at least 0.25 units, and when they do check which mines they are in range of, for each of those mines check if the ray collides the player's collision sphere (1 unit radius since players are 2 units tall).
Just a concept. I'll play with this concept myself to see what I can come up with.