本文整理汇总了C++中CHL2MP_Player::DoGorePhase方法的典型用法代码示例。如果您正苦于以下问题:C++ CHL2MP_Player::DoGorePhase方法的具体用法?C++ CHL2MP_Player::DoGorePhase怎么用?C++ CHL2MP_Player::DoGorePhase使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CHL2MP_Player
的用法示例。
在下文中一共展示了CHL2MP_Player::DoGorePhase方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: PrimaryAttack
void CWeaponCrowbar::PrimaryAttack()
{
CHL2MP_Player *pPlayer = ToHL2MPPlayer( GetOwner() );
if (pPlayer)
{
#ifndef CLIENT_DLL
if (pPlayer->gorephased)
{
//BB: JAM Request... sneak attacks
pPlayer->DoGorePhase();
pPlayer->covenStatusEffects &= pPlayer->covenStatusEffects & ~COVEN_FLAG_PHASE;
pPlayer->SetStatusTime(COVEN_BUFF_PHASE, 0.0f);
}
if (pPlayer->covenClassID == COVEN_CLASSID_FIEND && pPlayer->covenStatusEffects & COVEN_FLAG_DODGE)
{
pPlayer->VampireUnDodge();
}
#else
/*C_BasePlayer *local = C_BasePlayer::GetLocalPlayer();
C_BaseHLPlayer *pPlayer2 = (C_BaseHLPlayer *)local;
if (pPlayer2->covenClassID == COVEN_CLASSID_FIEND && pPlayer2->GetRenderColor().a < 255)
return;*/
//second half of sneak attacks
/*C_BasePlayer *local = C_BasePlayer::GetLocalPlayer();
C_BaseHLPlayer *pPlayer2 = (C_BaseHLPlayer *)local;
if (pPlayer2->GetEffects() & EF_NODRAW)
{
return;
}*/
#endif
}
BaseClass::PrimaryAttack();
}