Ejemplo n.º 1
0
 public void DoDamage(Vector3 origin, Vector3[] direction, int damage, float distance, int penetrate, string id, string team)
 {
     //Debug.Log("do damage: "+damage);
     if (rayActive)
     {
         if (rayActive.ShootRay(origin, direction, damage, distance, penetrate, id, team))
         {
             PlayDamageSound();
         }
     }
 }
Ejemplo n.º 2
0
 public void doDamage(Vector3 origin, Vector3 direction, byte num, byte spread, byte seed, byte damage, float distance, byte penetrate, int id, byte team)
 {
     if (rayActive)
     {
         if (rayActive.ShootRay(origin, direction, num, spread, seed, damage, distance, penetrate, id, team))
         {
             PlayDamageSound();
         }
     }
     if (inventory && !IsMine)
     {
         inventory.EquipmentOnAction(direction, num, spread, seed);
     }
 }