nuclide/Source/gs-entbase/server/env_sprite.cpp
Marco Hladik 5fa7002844 - Added everything needed for networked sprays
- Switched to custom pmove code (early, WIP) instead of the engine one, again
- Made nightvision compatible with splitscreen modes
- Player animation fixes
- Prediction fixes
- Fixed radius damage, so grenades and bombs should apply proper damage now
- Added func_wall_toggle
- Small entity fixes
2019-01-03 02:26:39 +01:00

40 lines
598 B
C++

/***
*
* Copyright (c) 2016-2019 Marco 'eukara' Hladik. All rights reserved.
*
* See the file LICENSE attached with the sources for usage details.
*
****/
/* https://twhl.info/wiki/page/env_sprite_(Half-Life) */
enumflags
{
ENVS_STARTON,
ENVS_PLAYONCE
};
class env_sprite : CBaseTrigger
{
void() env_sprite;
virtual void() Trigger;
};
void env_sprite::Trigger(void)
{
Respawn();
if (spawnflags & ENVS_PLAYONCE) {
}
}
void env_sprite::env_sprite(void)
{
CBaseTrigger::CBaseTrigger();
precache_model(m_oldModel);
Respawn();
if (!(spawnflags & ENVS_STARTON)) {
Hide();
}
}