ncProjectile: added callback method HasExploded(void)
This commit is contained in:
parent
ca316277e7
commit
dffc9dc832
2 changed files with 8 additions and 0 deletions
|
@ -79,6 +79,7 @@ public:
|
|||
|
||||
nonvirtual void _FuseEnded(void);
|
||||
nonvirtual void _Explode(entity);
|
||||
virtual void HasExploded(void);
|
||||
|
||||
virtual void _LaunchHitscan(vector, vector, float);
|
||||
|
||||
|
|
|
@ -747,6 +747,12 @@ ncProjectile::_FuseEnded(void)
|
|||
Destroy();
|
||||
}
|
||||
|
||||
void
|
||||
ncProjectile::HasExploded(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
ncProjectile::_Explode(entity explodedOn)
|
||||
{
|
||||
|
@ -843,6 +849,7 @@ ncProjectile::_Explode(entity explodedOn)
|
|||
#endif
|
||||
}
|
||||
|
||||
HasExploded();
|
||||
StartSoundDef(m_sndExplode, CHAN_VOICE, true);
|
||||
Destroy();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue