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!

Taunt commands working after round is over

Status
Not open for further replies.
Joined
Dec 30, 2006
Messages
595
Reaction score
25
Hi! I'm bringing another easy fix for you guys (I seem to be getting good at those, huh).

Some of you may remember that back in the '05 and maybe '08 clients we used to be able to use the taunt commands even after the round was over. So, if you killed the last guy on the other team and won the Clan War, you could laugh at his corpse and be a douche. Well, I found the code that prevented this from happening in 1.5 and I'd like to share it with you guys.

Tbh I don't use this, but my friends like making fun of each other and they also enjoy blasting their ego here and there, so...

Open Gunz solution, then Game -> ZGame.cpp.

Find this:
Code:
void ZGame::PostSpMotion(ZC_SPMOTION_TYPE mtype){
    if(m_pMyCharacter==NULL) return;
    if(m_Match.GetRoundState() != MMATCH_ROUNDSTATE_PLAY) return;

And replace with this:
Code:
void ZGame::PostSpMotion(ZC_SPMOTION_TYPE mtype){
    if(m_pMyCharacter==NULL) return;
    if(m_Match.GetRoundState() != MMATCH_ROUNDSTATE_PLAY && m_Match.GetRoundState() != MMATCH_ROUNDSTATE_FINISH) return;

I don't recommend commenting the whole line because that would let your players use taunt commands in every situation, which can get annoying and isn't really necessary. Adding "&& m_Match.GetRoundState() != MMATCH_ROUNDSTATE_FINISH" simply lets you do it even after every player from another team is dead, or after you've won a duel match.

I hope someone finds this useful!
 
Newbie Spellweaver
Joined
Mar 9, 2014
Messages
41
Reaction score
1
and in the duel, when you kill the opponent to use the provocation? or just between teams?
 
Status
Not open for further replies.
Back
Top