Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

CTF flag not appearing on back

Newbie Spellweaver
Joined
Aug 12, 2016
Messages
99
Reaction score
0
Everything else works perfectly. The only issue I'm having is, it does not show CTF Flag on your back when you are holding it.

I checked and it seems all the models are in place (tha't shouldn't be the problem because it shows fine when it's on ground)

What could be a possible cause of this?

Thanks.
 
I'm retired, I'm already
Banned
Joined
Oct 3, 2011
Messages
832
Reaction score
155
Code:
search void ZRuleTeamCTF::AssignFlagEffect(MUID& uidOwner, int nTeam) add these

		if (nTeam == MMT_BLUE)
		{
			ZGetEffectManager()->AddBerserkerIcon(pFlagChar);
			ZGetEffectManager()->AddRedFlagIcon(pFlagChar);
			pFlagChar->SetTagger(true);
		}
		else if (nTeam == MMT_RED)
		{
			ZGetEffectManager()->AddBerserkerIcon(pFlagChar);
			ZGetEffectManager()->AddBlueFlagIcon(pFlagChar);
			pFlagChar->SetTagger(true);
		}

ZEffectManager.cpp
add these
void ZEffectManager::AddBlueFlagIcon(ZObject* pObj)
{
    ZEffect* pNew;
    pNew = new ZEffectBerserkerIconLoop(m_pBlueFlagEffect, pObj);
    ((ZEffectIconLoop)pNew)->SetAlignType(1);
    ((ZEffectIconLoop)pNew)->m_type = eq_parts_pos_info_Spine2;
    Add(pNew);

}

void ZEffectManager::AddRedFlagIcon(ZObject* pObj)
{
    ZEffect* pNew;
    pNew = new ZEffectBerserkerIconLoop(m_pRedFlagEffect, pObj);
    ((ZEffectIconLoop)pNew)->SetAlignType(1);
    ((ZEffectIconLoop)pNew)->m_type = eq_parts_pos_info_Spine2;
    Add(pNew);
}
ZEffectManager.h
add these
void AddBlueFlagIcon(ZObject* pObj);
    void AddRedFlagIcon(ZObject* pObj);
search m_pBerserkerEffect    = m_pEffectMeshMgr->Get("ef_berserker");
add above
m_pRedFlagEffect = m_pEffectMeshMgr->Get("capturer");
    m_pBlueFlagEffect = m_pEffectMeshMgr->Get("captureb");
 
Upvote 0
Back
Top