NicePack/sources/Weapons/BaseWeaponClasses/Medic/NiceMedicProjectile.uc
Anton Tarasenko 12d95e387e Revert weapon conversion
This patch reverts first step of global weapon conversion
that would have halted the release of the next version for too long.
2020-04-17 23:06:41 +07:00

21 lines
876 B
Ucode

class NiceMedicProjectile extends NiceBullet;
function GenerateImpactEffects(ImpactEffect effect, Vector hitLocation, Vector hitNormal,
optional bool bWallImpact, optional bool bGenerateDecal){
if(bWallImpact){
effect.EmitterClass = none;
effect.bPlayROEffect = true;
effect.bImportanEffect = false;
effect.noise = none;
}
super.GenerateImpactEffects(effect, hitLocation, hitNormal, bWallImpact, bGenerateDecal);
}
defaultproperties
{
trailXClass=None
regularImpact=(bImportanEffect=True,bPlayROEffect=False,decalClass=Class'KFMod.ShotgunDecal',EmitterClass=Class'KFMod.healingFX',emitterShiftWall=20.000000,emitterShiftPawn=20.000000,noiseRef="KF_MP7Snd.MP7_DartImpact",noiseVolume=2.000000)
bGenRegEffectOnPawn=True
StaticMeshRef="KF_pickups2_Trip.MP7_Dart"
AmbientSoundRef="KF_MP7Snd.MP7_DartFlyLoop"
}