Can anyone give me a code or something shows how to freeze a player?
Can anyone give me a code or something shows how to freeze a player?
ZGameInput.cpp
lol i edited like that:
BUT w , s , a ,d , hit , jump works anD ALL DASH'S + CHAT + DEFENCE are locked.Code:bool ZGameInput::OnEvent(MEvent* pEvent) { int sel = 0; if ((ZGetGameInterface()->GetState() != GUNZ_GAME)) return false; if ( ZGetGameInterface()->GetGame() == NULL ) return false; MWidget* pMenuWidget = ZGetGameInterface()->GetIDLResource()->FindWidget("CombatMenuFrame"); if ((pMenuWidget) && (pMenuWidget->IsVisible())) return false; MWidget* pChatWidget = ZGetGameInterface()->GetIDLResource()->FindWidget("CombatChatInput"); if ((pChatWidget) && (pChatWidget->IsVisible())) return false; MWidget* p112ConfirmWidget = ZGetGameInterface()->GetIDLResource()->FindWidget("112Confirm"); if (p112ConfirmWidget->IsVisible()) return false; if(ZGetGame()->m_pMyCharacter->GetStatus().Ref().Freeze) return false;
HOW TO freeze with no jump and all this..
Last edited by ofiritsmeeee; 16-12-12 at 04:03 PM.
ZChat::Input.
Last edited by ofiritsmeeee; 18-12-12 at 02:23 PM.
Bump , i did it like that but it freezing only the dashes.. I want a full freeze that the player cant move:
Code:case MWM_ACTIONPRESSED: if( ZGetGame()->m_pMyCharacter->GetStatus().Ref().Freeze != 1) if (!ZGetGame()->IsReservedSuicide()) // ְ»ל ¿¹ֱ₪ְ־ °ז¿ל ´כ½¬¸¦ ַׂ¼צ¾ר°װ ¸·´ֲ´ { switch(pEvent->nKey){ case ZACTION_FORWARD: case ZACTION_BACK: case ZACTION_LEFT: case ZACTION_RIGHT: case ZACTION_JUMP: if (m_pInstance) m_pInstance->m_ActionKeyHistory.push_back(ZACTIONKEYITEM(ZGetGame()->GetTime(),true,pEvent->nKey)); return true;