Addeed OnSpawningEntity, OnSpawnedEntity, OnSpawningMonster, OnSpawnedMonster hooks.
As requested in FS 418.
This commit is contained in:
@@ -121,10 +121,14 @@ cPlayer::~cPlayer(void)
|
||||
|
||||
|
||||
|
||||
void cPlayer::Initialize(cWorld * a_World)
|
||||
bool cPlayer::Initialize(cWorld * a_World)
|
||||
{
|
||||
super::Initialize(a_World);
|
||||
GetWorld()->AddPlayer(this);
|
||||
if (super::Initialize(a_World))
|
||||
{
|
||||
GetWorld()->AddPlayer(this);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user