View Single Post
  #2  
Old 09-01-2011, 01:22 AM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Quote:
Originally Posted by Gunderak View Post
maybe only check for that if the player is on the screen?
PHP Code:
for(temp.pl players) { 
That will loop through all of the players within the entire level or nearby on the GMAP rather than players on your screen, in terms of serverside there is no screen.
The issue at hand is detecting damage from a single player, though if this was a serverside baddy the inefficiency of this method would be even more serious.
Reply With Quote