IMPLEMENT_RMI(CGameRules, SvVoteNo) { CActor* pActor = GetActorByChannelId(m_pGameFramework->GetGameChannelId(pNetChannel)); if(pActor) Vote(pActor, false); return true; }
IMPLEMENT_RMI(CGameRules, SvStartVoting) { CActor* pActor = GetActorByChannelId(m_pGameFramework->GetGameChannelId(pNetChannel)); if(pActor) StartVoting(pActor,params.vote_type,params.entityId,params.param); return true; }
IMPLEMENT_RMI(CGameRules, ClEnteredGame) { if(!gEnv->bServer && m_pGameFramework->GetClientActor()) { CActor* pActor = GetActorByChannelId(m_pGameFramework->GetClientActor()->GetChannelId()); if(pActor) { int status[2]; status[0] = GetTeam(pActor->GetEntityId()); status[1] = pActor->GetSpectatorMode(); m_pGameplayRecorder->Event(pActor->GetEntity(), GameplayEvent(eGE_Connected, 0, 0, (void*)status)); } } return true; }