Пример #1
0
 public override void serverSideHit(Projector target, int damageAmount)
 {
     gunHitSound = target.loadSound(target.soundPath + "gun1-" + Common.getRandom(1, 5) + ".wav");
     target.playSound(gunHitSound, true, false);
     fireHitEvent(target, damageAmount);
     finished = true;
 }
Пример #2
0
 public override void serverSideHit(Projector target, int remainingDamage)
 {
     missileSound.stop();
     hitSound = target.loadSound(target.soundPath + "m3-" + Common.getRandom(1, 2) + ".wav");
     target.playSound(hitSound, true, false);
     fireHitEvent(target, remainingDamage);
     finished = true;
 }
Пример #3
0
 public override void serverSideHit(Projector target, int damageAmount)
 {
     missileSound.Stop();
     missileHitSound = target.loadSound(target.soundPath + "m3-" + Common.getRandom(1, 3) + ".wav");
     target.playSound(missileHitSound, true, false);
     fireHitEvent(target, damageAmount);
     finished = true;
 }