mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-08 01:39:36 +00:00
fpersmissive fixes
This commit is contained in:
@@ -968,7 +968,7 @@ void C_ParticleSmokeGrenade::CleanupToolRecordingState( KeyValues *msg )
|
||||
pLifetime->SetFloat( "maxLifetime", m_FadeEndTime );
|
||||
|
||||
KeyValues *pVelocity = pInitializers->FindKey( "DmeAttachmentVelocityInitializer", true );
|
||||
pVelocity->SetPtr( "entindex", (void*)entindex() );
|
||||
pVelocity->SetPtr( "entindex", (void*)(intp)entindex() );
|
||||
pVelocity->SetFloat( "minRandomSpeed", 10 );
|
||||
pVelocity->SetFloat( "maxRandomSpeed", 20 );
|
||||
|
||||
|
||||
@@ -418,7 +418,7 @@ void C_SmokeTrail::CleanupToolRecordingState( KeyValues *msg )
|
||||
|
||||
// FIXME: Until we can interpolate ent logs during emission, this can't work
|
||||
KeyValues *pPosition = pInitializers->FindKey( "DmePositionPointToEntityInitializer", true );
|
||||
pPosition->SetPtr( "entindex", (void*)pEnt->entindex() );
|
||||
pPosition->SetPtr( "entindex", (void*)(intp)pEnt->entindex() );
|
||||
pPosition->SetInt( "attachmentIndex", m_nAttachment );
|
||||
pPosition->SetFloat( "randomDist", m_SpawnRadius );
|
||||
pPosition->SetFloat( "startx", pEnt->GetAbsOrigin().x );
|
||||
@@ -430,7 +430,7 @@ void C_SmokeTrail::CleanupToolRecordingState( KeyValues *msg )
|
||||
pLifetime->SetFloat( "maxLifetime", m_ParticleLifetime );
|
||||
|
||||
KeyValues *pVelocity = pInitializers->FindKey( "DmeAttachmentVelocityInitializer", true );
|
||||
pVelocity->SetPtr( "entindex", (void*)entindex() );
|
||||
pVelocity->SetPtr( "entindex", (void*)(intp)entindex() );
|
||||
pVelocity->SetFloat( "minAttachmentSpeed", m_MinDirectedSpeed );
|
||||
pVelocity->SetFloat( "maxAttachmentSpeed", m_MaxDirectedSpeed );
|
||||
pVelocity->SetFloat( "minRandomSpeed", m_MinSpeed );
|
||||
@@ -1933,7 +1933,7 @@ void C_DustTrail::CleanupToolRecordingState( KeyValues *msg )
|
||||
|
||||
// FIXME: Until we can interpolate ent logs during emission, this can't work
|
||||
KeyValues *pPosition = pInitializers->FindKey( "DmePositionPointToEntityInitializer", true );
|
||||
pPosition->SetPtr( "entindex", (void*)pEnt->entindex() );
|
||||
pPosition->SetPtr( "entindex", (void*)(intp)pEnt->entindex() );
|
||||
pPosition->SetInt( "attachmentIndex", GetParentAttachment() );
|
||||
pPosition->SetFloat( "randomDist", m_SpawnRadius );
|
||||
pPosition->SetFloat( "startx", pEnt->GetAbsOrigin().x );
|
||||
|
||||
@@ -132,7 +132,7 @@ static void RecordEffect( const char *pEffectName, const CEffectData &data )
|
||||
msg->SetInt( "attachmentindex", data.m_nAttachmentIndex );
|
||||
|
||||
// NOTE: Ptrs are our way of indicating it's an entindex
|
||||
msg->SetPtr( "entindex", (void*)data.entindex() );
|
||||
msg->SetPtr( "entindex", (void*)(intp)data.entindex() );
|
||||
|
||||
ToolFramework_PostToolMessage( HTOOLHANDLE_INVALID, msg );
|
||||
msg->deleteThis();
|
||||
@@ -213,7 +213,7 @@ void TE_DispatchEffect( IRecipientFilter& filter, float delay, KeyValues *pKeyVa
|
||||
|
||||
// NOTE: Ptrs are our way of indicating it's an entindex
|
||||
ClientEntityHandle_t hWorld = ClientEntityList().EntIndexToHandle( 0 );
|
||||
data.m_hEntity = (intp)pKeyValues->GetPtr( "entindex", (void*)hWorld.ToInt() );
|
||||
data.m_hEntity = (intp)pKeyValues->GetPtr( "entindex", (void*)(intp)hWorld.ToInt() );
|
||||
|
||||
const char *pEffectName = pKeyValues->GetString( "effectname" );
|
||||
|
||||
|
||||
@@ -240,7 +240,7 @@ void TE_PlayerDecal( IRecipientFilter& filter, float delay,
|
||||
color32 rgbaColor = { 255, 255, 255, 255 };
|
||||
effects->PlayerDecalShoot(
|
||||
logo,
|
||||
(void *)player,
|
||||
(void *)(intp)player,
|
||||
entity,
|
||||
ent->GetModel(),
|
||||
ent->GetAbsOrigin(),
|
||||
|
||||
+1
-1
@@ -403,7 +403,7 @@ void FX_MuzzleEffectAttached(
|
||||
KeyValues *pInitializers = pEmitter->FindKey( "initializers", true );
|
||||
|
||||
KeyValues *pPosition = pInitializers->FindKey( "DmeLinearAttachedPositionInitializer", true );
|
||||
pPosition->SetPtr( "entindex", (void*)pEnt->entindex() );
|
||||
pPosition->SetPtr( "entindex", (void*)(intp)pEnt->entindex() );
|
||||
pPosition->SetInt( "attachmentIndex", attachmentIndex );
|
||||
pPosition->SetFloat( "linearOffsetX", 2.0f * scale );
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include "cbase.h"
|
||||
|
||||
#ifdef POSIX
|
||||
#define HICON int
|
||||
#define HICON intp
|
||||
const int DT_LEFT = 1;
|
||||
const int DT_CENTER = 2;
|
||||
const int DT_RIGHT = 3;
|
||||
|
||||
@@ -1014,7 +1014,7 @@ bool CParticleEffectBinding::RecalculateBoundingBox()
|
||||
CEffectMaterial* CParticleEffectBinding::GetEffectMaterial( CParticleSubTexture *pSubTexture )
|
||||
{
|
||||
// Hash the IMaterial pointer.
|
||||
unsigned int index = (((unsigned int)pSubTexture->m_pGroup) >> 6) % EFFECT_MATERIAL_HASH_SIZE;
|
||||
unsigned int index = (((intp)pSubTexture->m_pGroup) >> 6) % EFFECT_MATERIAL_HASH_SIZE;
|
||||
for ( CEffectMaterial *pCur=m_EffectMaterialHash[index]; pCur; pCur = pCur->m_pHashedNext )
|
||||
{
|
||||
if ( pCur->m_pGroup == pSubTexture->m_pGroup )
|
||||
|
||||
Reference in New Issue
Block a user