View Single Post
  #33  
Old 08-26-2007, 10:11 PM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
This is what I have now.

PHP Code:
function checkPath(oxdxoydy) {
  
temp.dx = (dx 1.25) - (ox 1.25);
  
temp.dy = (dy 1.25) - (oy 1.25);
  
temp.delta getDist((ox 1.25), (oy 1.25), (dx 1.25), (dy 1.25));
  
0;
  
temp.onwall false;
  while (
temp.delta) {
    
this.chat temp.onwall;
    
//putnpc2((ox + 1.25) + ((temp.dx/temp.delta) * i), (oy + 1.25) + ((temp.dy/temp.delta) * i), "join(\"object_chair\");");
    
if (onwall2((ox 1.25) + ((temp.dx/temp.delta) * i), (oy 1.25) + ((temp.dy/temp.delta) * i),.5,.5)) {
      
temp.onwall true;
      
this.chat temp.onwall;
      break;
    }
    
+= .75;
  }
  return 
temp.onwall;

It's always returning true, and it isn't always working correctly.

All the + 1.25 and all that is so that it's centered from the center of the baddy to the center of the player, so that it's not going from the left corner of the baddy to the left corner of the player.
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote