Skip to content

Commit

Permalink
dissolve fx
Browse files Browse the repository at this point in the history
  • Loading branch information
BenLubar committed Jun 13, 2024
1 parent 39ada39 commit 61acef8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Binary file modified reactivedrop/particles/asw_weapon_fx_7a.pcf
Binary file not shown.
7 changes: 7 additions & 0 deletions src/game/client/c_entitydissolve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ PRECACHE_REGISTER_BEGIN( GLOBAL, PrecacheEffectBuild )
PRECACHE( MATERIAL,"effects/tesla_glow_noz" )
PRECACHE( MATERIAL,"effects/spark" )
PRECACHE( MATERIAL,"effects/combinemuzzle2" )
PRECACHE( PARTICLE_SYSTEM, "dissolve" )
PRECACHE( PARTICLE_SYSTEM, "dissolve_tesla_arc" )
PRECACHE_REGISTER_END()

Expand Down Expand Up @@ -429,6 +430,10 @@ void C_EntityDissolve::SetupEmitter( void )
{
m_pEmitter = CSimpleEmitter::Create( "C_EntityDissolve" );
m_pEmitter->SetSortOrigin( GetAbsOrigin() );

#ifdef INFESTED_DLL
DispatchParticleEffect( "dissolve", PATTACH_ABSORIGIN_FOLLOW, GetMoveParent() );
#endif
}
}

Expand Down Expand Up @@ -614,6 +619,7 @@ int C_EntityDissolve::DrawModel( int flags, const RenderableInstance_t &instance
DoSparks( set, hitboxbones );
}

#ifndef INFESTED_DLL
// Skew the particles in front or in back of their targets
vecSkew = CurrentViewForward() * ( 8.0f - ( ( 1.0f - fadePerc ) * 32.0f ) );

Expand Down Expand Up @@ -775,6 +781,7 @@ int C_EntityDissolve::DrawModel( int flags, const RenderableInstance_t &instance
}
}
}
#endif

return 1;
}
2 changes: 1 addition & 1 deletion src/game/shared/swarm/asw_weapon_energy_shield_shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ void CASW_Energy_Shield::TouchThink()
{
if ( !IsShieldInactive() )
{
CTakeDamageInfo info( this, m_hCreatorMarine, m_hCreatorWeapon, MarineSkills()->GetSkillBasedValueByMarine( m_hCreatorMarine, ASW_MARINE_SKILL_ENGINEERING, ASW_MARINE_SUBSKILL_ENGINEERING_SHIELD_DAMAGE ), DMG_DISSOLVE | DMG_SHOCK );
CTakeDamageInfo info( this, m_hCreatorMarine, m_hCreatorWeapon, MarineSkills()->GetSkillBasedValueByMarine( m_hCreatorMarine, ASW_MARINE_SKILL_ENGINEERING, ASW_MARINE_SUBSKILL_ENGINEERING_SHIELD_DAMAGE ), DMG_DISSOLVE );
info.SetAmmoType( m_hCreatorWeapon->GetSecondaryAmmoType() );
info.SetDamagePosition( m_hCreatorMarine->Weapon_ShootPosition() );
info.SetDamageForce( m_hCreatorMarine->Forward() );
Expand Down

0 comments on commit 61acef8

Please sign in to comment.