void CEntHost::Spawn() { m_iDejectedTimes = 0; m_flHelpProgress = 0.0f; m_flClimbingHold = 0.0f; m_bUnderAttack = false; m_bOnCombat = false; m_Components.PurgeAndDeleteElements(); m_Attributes.PurgeAndDeleteElements(); m_LastDamageTimer.Invalidate(); if ( GetState() == PLAYER_STATE_NONE ) { SetState( PLAYER_STATE_WELCOME ); } else { SetState( PLAYER_STATE_ACTIVE ); } CreateComponents(); CreateAttributes(); if ( GetBotController() ) { GetBotController()->Spawn(); } SetSquad( (CSquad *)NULL ); SetStatus( PLAYER_STATUS_NONE ); }
CXMLAttributesImpl::CXMLAttributesImpl(TiXmlElement& Node, bool bUseIDs) : m_bUsingIDs(bUseIDs), m_Node(Node) { // Init m_bCanRemoveFromList = true; // Create the attributes CreateAttributes(); }