Exemplo n.º 1
0
void CCoupleHelper::PlayProposeAnimation( CUser* pProposer, CUser* pTarget )
{
	ASSERT( pProposer );
	ASSERT( pTarget );
	FLOAT fAngle	= GetDegree( pTarget->GetPos(), pProposer->GetPos());
	pProposer->SetAngle( fAngle );
	pProposer->SendActMsg( OBJMSG_MOTION, MTI_CHEEROTHER, ANILOOP_1PLAY );
	g_UserMng.AddCreateSfxObj( pProposer, XI_CHEERSENDEFFECT );
	g_UserMng.AddCreateSfxObj( pTarget, XI_CHEERRECEIVEEFFECT );
	g_UserMng.AddMoverBehavior( pProposer, pProposer->GetPos(), pProposer->m_pActMover->m_vDelta,
		pProposer->GetAngle(), pProposer->m_pActMover->GetState(), pProposer->m_pActMover->GetStateFlag(), 
		pProposer->m_dwMotion, pProposer->m_pActMover->m_nMotionEx, pProposer->m_pModel->m_nLoop, pProposer->m_dwMotionOption, g_TickCount.GetTickCount(), TRUE );
}
Exemplo n.º 2
0
void CQuiz::RemoveNPC()
{
	CMover* pMover = prj.GetMover( m_sNPC.idNpc );
	if( IsValidObj( pMover ) )
	{
		g_UserMng.AddCreateSfxObj( pMover, XI_SKILL_MER_ONE_SPECIALHIT02 );
		pMover->Delete();
	}
}