Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

KFMod.DamTypeFlareProjectileImpact


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
//=============================================================================
// DamTypeFlareProjectileImpact
//=============================================================================
// Damage type for the flare gun projectile impacting something
//=============================================================================
// Killing Floor Source
// Copyright (C) 2012 Tripwire Interactive LLC
// - IJC Weapon Development and John "Ramm-Jaeger" Gibson
//=============================================================================
class DamTypeFlareProjectileImpact extends KFProjectileWeaponDamageType;

static function GetHitEffects(out class<xEmitter> HitEffects[4], int VictimHealth)
{
	HitEffects[0] = class'HitSmoke';
	if( VictimHealth <= 0 )
		HitEffects[1] = class'KFHitFlame';
	else if ( FRand() < 0.8 )
		HitEffects[1] = class'KFHitFlame';
}

static function AwardDamage(KFSteamStatsAndAchievements KFStatsAndAchievements, int Amount)
{
	KFStatsAndAchievements.AddFlameThrowerDamage(Amount);
}

defaultproperties
{
     HeadShotDamageMult=1.500000
     WeaponClass=Class'KFMod.FlareRevolver'
     DeathString="%k killed %o (Flare Revolver)."
     FemaleSuicide="%o blew up."
     MaleSuicide="%o blew up."
     bRagdollBullet=True
     bBulletHit=True
     DeathOverlayMaterial=Combiner'Effects_Tex.GoreDecals.PlayerDeathOverlay'
     DeathOverlayTime=999.000000
     KDamageImpulse=6000.000000
     KDeathVel=250.000000
     KDeathUpKick=75.000000
     HumanObliterationThreshhold=200
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Fri 13-10-2023 03:17:26.000 - Creation time: Fri 13-10-2023 03:19:01.044 - Created with UnCodeX