Re: Problem with Proximity mine
Code:
if actor.Team ~= self.Team then
You can take this if statement out. If I remember correctly from the old IRC MOTD, thrown items such as grenades and stuff don't have a defined team.
If you want to use this line of code, you'll have to define the team yourself by adding some code to the Create function that searches for the nearest actor, since the nearest one is most likely the one who initially threw the bomb. Define that actor as the owner, and then use his team number for comparison instead of the bomb's.
Hope this helps your optimize the code a little.