Ejemplo n.º 1
0
//-----------------------------------------------------------------------------
bool CNetworkedPhysicsEntity::ReloadExtension( IGameObject * pGameObject, const SEntitySpawnParams &params )
{
	ResetGameObject();

	CRY_ASSERT_MESSAGE(false, "CCTFFlag::ReloadExtension not implemented");
	
	return false;
}
bool CRuntimeAreaObject::ReloadExtension( IGameObject * pGameObject, const SEntitySpawnParams &params )
{
	ResetGameObject();

	CRY_ASSERT_MESSAGE(false, "CRuntimeAreaObject::ReloadExtension not implemented");

	return false;
}
//------------------------------------------------------------------------
bool CInventory::ReloadExtension( IGameObject * pGameObject, const SEntitySpawnParams &params )
{
	ResetGameObject(); 

	Destroy();

	return true;
}
bool CDangerousRigidBody::ReloadExtension( IGameObject * pGameObject, const SEntitySpawnParams &params )
{
	ResetGameObject();

	CRY_ASSERT_MESSAGE(false, "CDangerousRigidBody::ReloadExtension not implemented");

	return true;
}
bool CVicinityDependentObjectMover::ReloadExtension( IGameObject * pGameObject, const SEntitySpawnParams &params )
{
	ResetGameObject();
	VICINITYDEPENDENTOBJECTMOVER::RegisterEvents( *this, *pGameObject );

	CRY_ASSERT_MESSAGE( false, "CVicinityDependentObjectMover::ReloadExtension not implemented" );

	return false;
}
bool CSmartMine::ReloadExtension( IGameObject * pGameObject, const SEntitySpawnParams &params )
{
	ResetGameObject();
	SM::RegisterEvents( *this, *pGameObject );

	CRY_ASSERT_MESSAGE(false, "CSmartMine::ReloadExtension not implemented");

	return false;
}
Ejemplo n.º 7
0
bool CBoundingContainer::ReloadExtension( IGameObject * pGameObject, const SEntitySpawnParams &params )
{
	ResetGameObject();
	BC::RegisterEvents( *this, *pGameObject );

	CRY_ASSERT_MESSAGE(false, "CBoundingContainer::ReloadExtension not implemented");

	return false;
}
//------------------------------------------------------------------------
bool CScriptControlledPhysics::ReloadExtension( IGameObject * pGameObject, const SEntitySpawnParams &params )
{
    ResetGameObject();
    if (IPhysicalEntity *pPE=GetEntity()->GetPhysics())
        {
            SCP::RegisterEvents(*this,*pGameObject);
        }
    else
        {
            pGameObject->UnRegisterExtForEvents( this, NULL, 0 );
        }

    CRY_ASSERT_MESSAGE(false, "CScriptControlledPhysics::ReloadExtension not implemented");

    return false;
}
Ejemplo n.º 9
0
bool CMonoActor::ReloadExtension( IGameObject *pGameObject, const SEntitySpawnParams &params )
{
	CRY_ASSERT(GetGameObject() == pGameObject);

	ResetGameObject();

	if (!GetGameObject()->CaptureView(this))
		return false;
	if (!GetGameObject()->CaptureProfileManager(this))
		return false;

	// Re-enable the physics post step callback and CollisionLogging (were cleared during ResetGameObject()).
	GetGameObject()->EnablePhysicsEvent( true, eEPE_OnPostStepImmediate | eEPE_OnCollisionLogged);

	if (!GetGameObject()->BindToNetwork())
		return false;

	gEnv->pGameFramework->GetIActorSystem()->RemoveActor(params.prevId);
	gEnv->pGameFramework->GetIActorSystem()->AddActor(GetEntityId(), this);

	SetAspectProfile(eEA_Physics, eAP_NotPhysicalized);

	return true;
}
Ejemplo n.º 10
0
bool CDeflectorShield::ReloadExtension(IGameObject * pGameObject, const SEntitySpawnParams &params)
{
	ResetGameObject();
	DS::RegisterEvents( *this, *pGameObject );
	return true;
}
Ejemplo n.º 11
0
bool CLipSync_TransitionQueue::ReloadExtension(IGameObject* pGameObject, const SEntitySpawnParams &params)
{
	ResetGameObject();
	return true;
}
Ejemplo n.º 12
0
//------------------------------------------------------------------------
bool CMPPath::ReloadExtension( IGameObject * pGameObject, const SEntitySpawnParams &params )
{
    ResetGameObject();
    CRY_ASSERT(!"CMPPath::ReloadExtension not implemented");
    return false;
}
bool CWaterPuddle::ReloadExtension(IGameObject * pGameObject, const SEntitySpawnParams &params)
{
	ResetGameObject();
	return true;
}