Do not break Save/Restore.

This commit is contained in:
Andrey Akhmichin 2019-08-04 02:05:00 +05:00
parent 6b40dbd7e8
commit 9b7e267a9e
3 changed files with 13 additions and 18 deletions

View File

@ -888,12 +888,13 @@ Schedule_t *CMassn::GetScheduleOfType( int Type )
// CMassnRepel - when triggered, spawns a monster_nari_grunt
// repelling down a line.
//=========================================================
class CMassnRepel : public CHGruntRepel
class CMassnRepel : public CBaseMonster
{
public:
void Spawn(void);
void Precache(void);
void EXPORT RepelUse(CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value);
void Spawn( void );
void Precache( void );
void EXPORT RepelUse( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value );
int m_iSpriteTexture; // Don't save, precache
};
LINK_ENTITY_TO_CLASS( monster_massn_repel, CMassnRepel )

View File

@ -2192,6 +2192,14 @@ Schedule_t *CHGrunt::GetScheduleOfType( int Type )
// CHGruntRepel - when triggered, spawns a monster_human_grunt
// repelling down a line.
//=========================================================
class CHGruntRepel : public CBaseMonster
{
public:
void Spawn(void);
void Precache(void);
void EXPORT RepelUse( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value );
int m_iSpriteTexture; // Don't save, precache
};
LINK_ENTITY_TO_CLASS( monster_grunt_repel, CHGruntRepel )

View File

@ -171,18 +171,4 @@ typedef enum
HGRUNT_SENT_TAUNT
} HGRUNT_SENTENCE_TYPES;
//=========================================================
// CHGruntRepel - when triggered, spawns a monster_human_grunt
// repelling down a line.
//=========================================================
class CHGruntRepel : public CBaseMonster
{
public:
virtual void Spawn(void);
virtual void Precache(void);
virtual void EXPORT RepelUse(CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value);
int m_iSpriteTexture; // Don't save, precache
};
#endif // HGRUNT_H