View Single Post
  #4  
Old 01-12-2014, 02:24 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by sssssssssss View Post
does vectordist kill the need for my to calculate the xy for the sword distance and if the other player is in it?

Not sure why it's there to be honest.

Also I'm using clientr.vars for the hp, so wouldn't I have to trigger a weapon function for each player hurt to update that, since it's not accessible for anything like pl.clientr.hp?
Serverside positions aren't always going to match with the clientside so it does a proximity check.

Replace temp.pl.hp--; with your own variable or whatever you do to 'damage' the player. You shouldn't have to trigger the client then back to the server again.
__________________
Quote:
Reply With Quote