mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-16 13:43:00 +00:00
add source-sdk-2013
This commit is contained in:
@@ -396,12 +396,12 @@ void C_SmokeTrail::CleanupToolRecordingState( KeyValues *msg )
|
||||
{
|
||||
int nId = m_pSmokeEmitter->AllocateToolParticleEffectId();
|
||||
|
||||
KeyValues *oldmsg = new KeyValues( "OldParticleSystem_Create" );
|
||||
oldmsg->SetString( "name", "C_SmokeTrail" );
|
||||
oldmsg->SetInt( "id", nId );
|
||||
oldmsg->SetFloat( "time", gpGlobals->curtime );
|
||||
KeyValues *msg = new KeyValues( "OldParticleSystem_Create" );
|
||||
msg->SetString( "name", "C_SmokeTrail" );
|
||||
msg->SetInt( "id", nId );
|
||||
msg->SetFloat( "time", gpGlobals->curtime );
|
||||
|
||||
KeyValues *pRandomEmitter = oldmsg->FindKey( "DmeRandomEmitter", true );
|
||||
KeyValues *pRandomEmitter = msg->FindKey( "DmeRandomEmitter", true );
|
||||
pRandomEmitter->SetInt( "count", m_SpawnRate ); // particles per second, when duration is < 0
|
||||
pRandomEmitter->SetFloat( "duration", -1 );
|
||||
pRandomEmitter->SetInt( "active", bEmitterActive );
|
||||
@@ -487,18 +487,18 @@ void C_SmokeTrail::CleanupToolRecordingState( KeyValues *msg )
|
||||
pEmitter2->SetString( "material", "particle/particle_noisesphere" );
|
||||
pEmitterParent2->AddSubKey( pEmitter2 );
|
||||
|
||||
ToolFramework_PostToolMessage( HTOOLHANDLE_INVALID, oldmsg );
|
||||
oldmsg->deleteThis();
|
||||
ToolFramework_PostToolMessage( HTOOLHANDLE_INVALID, msg );
|
||||
msg->deleteThis();
|
||||
}
|
||||
else
|
||||
{
|
||||
KeyValues *oldmsg = new KeyValues( "OldParticleSystem_ActivateEmitter" );
|
||||
oldmsg->SetInt( "id", m_pSmokeEmitter->GetToolParticleEffectId() );
|
||||
oldmsg->SetInt( "emitter", 0 );
|
||||
oldmsg->SetInt( "active", bEmitterActive );
|
||||
oldmsg->SetFloat( "time", gpGlobals->curtime );
|
||||
ToolFramework_PostToolMessage( HTOOLHANDLE_INVALID, oldmsg );
|
||||
oldmsg->deleteThis();
|
||||
KeyValues *msg = new KeyValues( "OldParticleSystem_ActivateEmitter" );
|
||||
msg->SetInt( "id", m_pSmokeEmitter->GetToolParticleEffectId() );
|
||||
msg->SetInt( "emitter", 0 );
|
||||
msg->SetInt( "active", bEmitterActive );
|
||||
msg->SetFloat( "time", gpGlobals->curtime );
|
||||
ToolFramework_PostToolMessage( HTOOLHANDLE_INVALID, msg );
|
||||
msg->deleteThis();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -771,6 +771,8 @@ void C_RocketTrail::Update( float fTimeDelta )
|
||||
|
||||
if ( m_bDamaged )
|
||||
{
|
||||
SimpleParticle *pParticle;
|
||||
Vector offset;
|
||||
Vector offsetColor;
|
||||
|
||||
CSmartPtr<CEmberEffect> pEmitter = CEmberEffect::Create("C_RocketTrail::damaged");
|
||||
@@ -1507,6 +1509,7 @@ void C_FireTrail::Update( float fTimeDelta )
|
||||
numPuffs = clamp( numPuffs, 1, 32 );
|
||||
|
||||
SimpleParticle *pParticle;
|
||||
Vector offset;
|
||||
Vector offsetColor;
|
||||
float step = moveLength / numPuffs;
|
||||
|
||||
@@ -1915,12 +1918,12 @@ void C_DustTrail::CleanupToolRecordingState( KeyValues *msg )
|
||||
{
|
||||
int nId = m_pDustEmitter->AllocateToolParticleEffectId();
|
||||
|
||||
KeyValues *oldmsg = new KeyValues( "OldParticleSystem_Create" );
|
||||
oldmsg->SetString( "name", "C_DustTrail" );
|
||||
oldmsg->SetInt( "id", nId );
|
||||
oldmsg->SetFloat( "time", gpGlobals->curtime );
|
||||
KeyValues *msg = new KeyValues( "OldParticleSystem_Create" );
|
||||
msg->SetString( "name", "C_DustTrail" );
|
||||
msg->SetInt( "id", nId );
|
||||
msg->SetFloat( "time", gpGlobals->curtime );
|
||||
|
||||
KeyValues *pEmitter = oldmsg->FindKey( "DmeSpriteEmitter", true );
|
||||
KeyValues *pEmitter = msg->FindKey( "DmeSpriteEmitter", true );
|
||||
pEmitter->SetString( "material", "particle/smokesprites_0001" );
|
||||
pEmitter->SetInt( "count", m_SpawnRate ); // particles per second, when duration is < 0
|
||||
pEmitter->SetFloat( "duration", -1 ); // FIXME
|
||||
@@ -1994,17 +1997,17 @@ void C_DustTrail::CleanupToolRecordingState( KeyValues *msg )
|
||||
pUpdaters->FindKey( "DmeColorUpdater", true );
|
||||
pUpdaters->FindKey( "DmeSizeUpdater", true );
|
||||
|
||||
ToolFramework_PostToolMessage( HTOOLHANDLE_INVALID, oldmsg );
|
||||
oldmsg->deleteThis();
|
||||
ToolFramework_PostToolMessage( HTOOLHANDLE_INVALID, msg );
|
||||
msg->deleteThis();
|
||||
}
|
||||
else
|
||||
{
|
||||
KeyValues *oldmsg = new KeyValues( "OldParticleSystem_ActivateEmitter" );
|
||||
oldmsg->SetInt( "id", m_pDustEmitter->GetToolParticleEffectId() );
|
||||
oldmsg->SetInt( "emitter", 0 );
|
||||
oldmsg->SetInt( "active", bEmitterActive );
|
||||
oldmsg->SetFloat( "time", gpGlobals->curtime );
|
||||
ToolFramework_PostToolMessage( HTOOLHANDLE_INVALID, oldmsg );
|
||||
oldmsg->deleteThis();
|
||||
KeyValues *msg = new KeyValues( "OldParticleSystem_ActivateEmitter" );
|
||||
msg->SetInt( "id", m_pDustEmitter->GetToolParticleEffectId() );
|
||||
msg->SetInt( "emitter", 0 );
|
||||
msg->SetInt( "active", bEmitterActive );
|
||||
msg->SetFloat( "time", gpGlobals->curtime );
|
||||
ToolFramework_PostToolMessage( HTOOLHANDLE_INVALID, msg );
|
||||
msg->deleteThis();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user