GS-Entbase: env_particle needed setorigin() and setsize(), since that's
how FTE will now set a pvs sample in CSQC
This commit is contained in:
parent
49632b9dd1
commit
60313aa3ce
1 changed files with 8 additions and 10 deletions
|
@ -44,13 +44,9 @@ void env_particle::customphysics(void)
|
|||
{
|
||||
vector vecPlayer;
|
||||
|
||||
#ifdef WASTES
|
||||
vecPlayer = viewClient.vecPlayerOrigin;
|
||||
#else
|
||||
int s = (float)getproperty(VF_ACTIVESEAT);
|
||||
pSeat = &g_seats[s];
|
||||
vecPlayer = pSeat->m_vecPredictedOrigin;
|
||||
#endif
|
||||
|
||||
if (checkpvs(vecPlayer, this) == FALSE) {
|
||||
return;
|
||||
|
@ -73,12 +69,6 @@ void env_particle::customphysics(void)
|
|||
m_flNextTime = time + m_flWait;
|
||||
}
|
||||
|
||||
void env_particle::env_particle(void)
|
||||
{
|
||||
drawmask = MASK_ENGINE;
|
||||
Init();
|
||||
}
|
||||
|
||||
void env_particle::SpawnKey(string strField, string strKey)
|
||||
{
|
||||
switch (strField) {
|
||||
|
@ -101,3 +91,11 @@ void env_particle::SpawnKey(string strField, string strKey)
|
|||
CBaseEntity::SpawnKey(strField, strKey);
|
||||
}
|
||||
}
|
||||
|
||||
void env_particle::env_particle(void)
|
||||
{
|
||||
drawmask = MASK_ENGINE;
|
||||
Init();
|
||||
setorigin(this, origin);
|
||||
setsize(this, [0,0,0], [0,0,0]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue