• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

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