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; }
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; }
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; }