1
0
KF2-Dev-Scripts/KFGameContent/Classes/KFProj_FlashBangGrenade_Mini.uc

86 lines
2.5 KiB
Ucode
Raw Permalink Normal View History

2020-12-13 15:01:13 +00:00
//=============================================================================
// KFProj_FlashBangGrenade
//=============================================================================
// High Explosive Grenade projectile class
//=============================================================================
// Killing Floor 2
// Copyright (C) 2016 Tripwire Interactive LLC
// - Chris "schneidezekk" Schneider
//=============================================================================
class KFProj_FlashBangGrenade_Mini extends KFProj_FlashBangGrenade
hidedropdown;
//==============
// Touching
simulated function ProcessTouch(Actor Other, Vector HitLocation, Vector HitNormal)
{
if (Other != Instigator && !Other.bWorldGeometry)
{
// Don't hit teammates
if (Other.GetTeamNum() == GetTeamNum())
{
return;
}
if (!bHasExploded && !bHasDisintegrated)
{
GetExplodeEffectLocation(HitLocation, HitNormal, Other);
TriggerExplosion(HitLocation, HitNormal, Other);
}
}
super.ProcessTouch(Other, HitLocation, HitNormal);
}
defaultproperties
{
LandedTranslationOffset=(X=2)
FuseTime=0.25 //0.5
Speed=4000
MaxSpeed=4000
TerminalVelocity=4000
TossZ=150
ProjFlightTemplate = ParticleSystem'WEP_3P_M79_EMIT.FX_M79_40mm_Projectile'
ProjFlightTemplateZedTime = ParticleSystem'WEP_3P_M79_EMIT.FX_M79_40mm_Projectile_ZEDTIME'
ExplosionActorClass=class'KFExplosionActor'
WeaponSelectTexture=Texture2D'ui_weaponselect_tex.UI_WeaponSelect_MK3_Grenade'
// explosion
Begin Object Class=KFGameExplosion Name=ExploTemplate0
Damage=60 //300
DamageRadius=350 //800
DamageFalloffExponent=2.f
DamageDelay=0.f
// Damage Effects
MyDamageType=class'KFDT_Explosive_FlashBangGrenade'
KnockDownStrength=0
FractureMeshRadius=200.0
FracturePartVel=500.0
ExplosionEffects=KFImpactEffectInfo'WEP_M84_ARCH.M84_Explosion'
ExplosionSound=AkEvent'WW_WEP_EXP_Grenade_Frag.Play_WEP_Flashbang'
// Dynamic Light
ExploLight=ExplosionPointLight
ExploLightStartFadeOutTime=0.0
ExploLightFadeOutTime=0.2
// Camera Shake
CamShake=CameraShake'FX_CameraShake_Arch.Grenades.Default_Grenade'
CamShakeInnerRadius=100
CamShakeOuterRadius=450
CamShakeFalloff=1.5f
bOrientCameraShakeTowardsEpicenter=true
End Object
ExplosionTemplate=ExploTemplate0
// Temporary effect (5.14.14)
ProjDisintegrateTemplate=ParticleSystem'ZED_Siren_EMIT.FX_Siren_grenade_disable_01'
AssociatedPerkClass=class'KFPerk_SWAT'
}