env_shooter: set skin on the gib entity.
This commit is contained in:
parent
ff7ce15399
commit
466787b3ff
1 changed files with 13 additions and 12 deletions
|
@ -40,18 +40,6 @@ This entity was introduced in Half-Life (1998).
|
||||||
class
|
class
|
||||||
env_shooter:NSRenderableEntity
|
env_shooter:NSRenderableEntity
|
||||||
{
|
{
|
||||||
int m_iGibs;
|
|
||||||
int m_iGibsLeft;
|
|
||||||
|
|
||||||
float m_flDelay;
|
|
||||||
float m_flVelocity;
|
|
||||||
float m_flVariance;
|
|
||||||
float m_flGibLife;
|
|
||||||
string m_strShootModel;
|
|
||||||
float m_flShootSounds;
|
|
||||||
float m_flScale;
|
|
||||||
float m_flSkin;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
void env_shooter(void);
|
void env_shooter(void);
|
||||||
|
|
||||||
|
@ -63,6 +51,18 @@ public:
|
||||||
virtual void ShootGib(void);
|
virtual void ShootGib(void);
|
||||||
virtual void Trigger(entity, triggermode_t);
|
virtual void Trigger(entity, triggermode_t);
|
||||||
|
|
||||||
|
private:
|
||||||
|
int m_iGibs;
|
||||||
|
int m_iGibsLeft;
|
||||||
|
|
||||||
|
float m_flDelay;
|
||||||
|
float m_flVelocity;
|
||||||
|
float m_flVariance;
|
||||||
|
float m_flGibLife;
|
||||||
|
string m_strShootModel;
|
||||||
|
float m_flShootSounds;
|
||||||
|
float m_flScale;
|
||||||
|
float m_flSkin;
|
||||||
};
|
};
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -234,6 +234,7 @@ env_shooter::ShootGib(void)
|
||||||
eGib.SetRenderFX(m_iRenderFX);
|
eGib.SetRenderFX(m_iRenderFX);
|
||||||
eGib.SetRenderAmt(m_flRenderAmt);
|
eGib.SetRenderAmt(m_flRenderAmt);
|
||||||
eGib.SetScale(m_flScale);
|
eGib.SetScale(m_flScale);
|
||||||
|
eGib.SetSkin(m_flSkin);
|
||||||
|
|
||||||
switch (m_flShootSounds) {
|
switch (m_flShootSounds) {
|
||||||
case 0: /* glass */
|
case 0: /* glass */
|
||||||
|
|
Loading…
Reference in a new issue