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

XWeapons.HitEffect


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
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
class HitEffect extends Effects;

var(HitEffect) class<Actor> HitEffectDefault;
var(HitEffect) class<Actor> HitEffectRock;
var(HitEffect) class<Actor> HitEffectDirt;
var(HitEffect) class<Actor> HitEffectMetal;
var(HitEffect) class<Actor> HitEffectWood;
var(HitEffect) class<Actor> HitEffectPlant;
var(HitEffect) class<Actor> HitEffectFlesh;
var(HitEffect) class<Actor> HitEffectIce;
var(HitEffect) class<Actor> HitEffectSnow;
var(HitEffect) class<Actor> HitEffectWater;
var(HitEffect) class<Actor> HitEffectGlass;

static function class<Actor> GetHitEffect( Actor Victim, Vector HitLocation, Vector HitNormal )
{
    if (Victim == None)
        return Default.HitEffectDefault;
        
    switch (Victim.SurfaceType)
    {
        case EST_Rock:
            return Default.HitEffectRock;
        case EST_Dirt:
            return Default.HitEffectDirt;
        case EST_Metal:
            return Default.HitEffectMetal;
        case EST_Wood:
            return Default.HitEffectWood;
        case EST_Plant:
            return Default.HitEffectPlant;
        case EST_Flesh:
            return Default.HitEffectFlesh;
        case EST_Ice:
            return Default.HitEffectIce;
        case EST_Snow:
            return Default.HitEffectSnow;
        case EST_Water:
            return Default.HitEffectWater;
        case EST_Glass:
            return Default.HitEffectGlass;
        default:
            return Default.HitEffectDefault;
    }
}

defaultproperties
{
     HitEffectDefault=Class'XEffects.xHeavyWallHitEffect'
     HitEffectRock=Class'XEffects.xHeavyWallHitEffect'
     HitEffectDirt=Class'XEffects.DirtImpact'
     HitEffectMetal=Class'XEffects.xHeavyWallHitEffect'
     HitEffectWood=Class'XEffects.pclImpactSmoke'
     HitEffectPlant=Class'XEffects.pclImpactSmoke'
     HitEffectFlesh=Class'XEffects.pclredsmoke'
     HitEffectIce=Class'XEffects.xHeavyWallHitEffect'
     HitEffectSnow=Class'XEffects.xHeavyWallHitEffect'
     HitEffectWater=Class'XEffects.xHeavyWallHitEffect'
     HitEffectGlass=Class'XEffects.xHeavyWallHitEffect'
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: pr 5-2-2018 12:35:52.000 - Creation time: sk 18-3-2018 09:50:10.840 - Created with UnCodeX