void CNPC_Dog::InputTurnBoneFollowersOn( inputdata_t &inputdata ) { if ( !m_bBoneFollowersActive ) { m_bBoneFollowersActive = true; m_BoneFollowerManager.InitBoneFollowers( this, ARRAYSIZE(pFollowerBoneNames), pFollowerBoneNames ); } }
//--------------------------------------------------------- //--------------------------------------------------------- bool CNPC_Dog::CreateVPhysics( void ) { BaseClass::CreateVPhysics(); if ( m_bBoneFollowersActive == true && !m_BoneFollowerManager.GetNumBoneFollowers() ) { m_BoneFollowerManager.InitBoneFollowers( this, ARRAYSIZE(pFollowerBoneNames), pFollowerBoneNames ); } return true; }
bool CNPC_Tentacle::CreateVPhysics( void ) { BaseClass::CreateVPhysics(); IPhysicsObject *pPhysics = VPhysicsGetObject(); if( pPhysics ) { unsigned short flags = pPhysics->GetCallbackFlags(); flags |= CALLBACK_GLOBAL_TOUCH; pPhysics->SetCallbackFlags( flags ); } m_BoneFollowerManager.InitBoneFollowers( this, ARRAYSIZE(pTentacleFollowerBoneNames), pTentacleFollowerBoneNames ); return true; }
//----------------------------------------------------------------------------- // Purpose: // Output : Returns true on success, false on failure. //----------------------------------------------------------------------------- bool CPropCannon::CreateVPhysics( void ) { BaseClass::CreateVPhysics(); m_BoneFollowerManager.InitBoneFollowers( this, ARRAYSIZE(pCannonFollowerBoneNames), pCannonFollowerBoneNames ); return true; }
bool CNPC_RocketTurret::CreateVPhysics( void ) { m_BoneFollowerManager.InitBoneFollowers( this, ARRAYSIZE(pRocketTurretFollowerBoneNames), pRocketTurretFollowerBoneNames ); BaseClass::CreateVPhysics(); return true; }