Thread: Little help.
View Single Post
  #7  
Old 02-02-2009, 09:32 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
This is the katana script:
PHP Code:
//#CLIENTSIDE
function onWeaponFired() {
  
temp.dx player.vecx(player.dir) * 1.5;
  
temp.dy player.vecy(player.dir) * 2;
  
triggeraction(dxdy"AttackPlayer"player.account.5);

Put this in a script that all players have:

PHP Code:
//#CLIENTSIDE
function onActionAttackPlayer(accdamage) {
  if (
acc == player.account) {
    return; 
// this ends the function
  
}
  if (
damage <= 0) {
     return;
  }
  
  
hurt(damage);
  
setAni("HURTGANI"null);

Let me know if you need anything explained.
__________________
Reply With Quote