Announcement

Collapse
No announcement yet.

2 different particle systems for enforcer.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    2 different particle systems for enforcer.

    I want the primary fire to be this but am unsure where to put in the fire mode data. Its silly as heck(not that my stuff aint silly just well...er....) with the fully auto alt fire having sniper trails LOL

    Code:
    //var ParticleSystem TracerTemplate;
    
    simulated function SpawnTracer(vector EffectLocation, vector HitLocation)
    {
    	local ParticleSystemComponent E;
    	local vector Dir;
    
    	Dir = HitLocation - EffectLocation;
    	if ( VSizeSq(Dir) > 14400.0 )
    	{
    		E = WorldInfo.MyEmitterPool.SpawnEmitter(TracerTemplate, EffectLocation, rotator(Dir));
    		E.SetVectorParameter('Sniper_Endpoint', HitLocation);
    	}
    }
    
    simulated function FirstPersonFireEffects(Weapon PawnWeapon, vector HitLocation)
    {
    	Super.FirstPersonFireEffects(PawnWeapon, HitLocation);
    
    	SpawnTracer(UTWeapon(PawnWeapon).GetEffectLocation(), HitLocation);
    }
    
    simulated function ThirdPersonFireEffects(vector HitLocation)
    {
    	Super.ThirdPersonFireEffects(HitLocation);
    
    	SpawnTracer(GetEffectLocation(), HitLocation);
    }
    
    
    defaultproperties
    {
    	TracerTemplate=ParticleSystem'WP_SniperRifle.Effects.P_WP_SniperRifle_Beam'
    }
Working...
X