Thread: Hitobjects
View Single Post
  #2  
Old 02-13-2008, 01:57 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
PLEASE don't use hitobjects -- remnant from GS1 for compatibility.

I would do something like this:

PHP Code:
function boomDaLaser()
{
  for ( 
temp.players )
  {
    if ( 
temp.a.x in player.xplayer.vecxplayer.dir ) * 10 | && temp.a.y in player.yplayer.vecyplayer.dir ) * 10 | )
    {
      
temp.BOOMLOL.addtemp.a.account );
    }
   
triggerserver"gui"name"PIMPINLOL"temp.BOOMLOL );
  }

Obviously that isn't perfected, but it would be easy to adjust the x & y's so it works well.

EDIT:
As an alternative to triggering the server, you could just send a triggeraction at their location. Would probably be better idea, you'd have to tinker with it. For npcs, do the same thing and just do like temp.BOOMSHAKALAKA[0].trigger( "PWNED", player.account ); or something.
__________________
Reply With Quote