How to add teleport mode [Tele] to gunz?
Re: How to add teleport mode [Tele] to gunz?
ZGameInput.cpp
go to "bool ZGameInput::OnEvent(MEvent* pEvent)" and add "rvector PlayerPosHotKey;" above
find case VK_NUMPAD1
add
if (strstr(ZGetGameClient()->GetStageName(), "[TELE]")){
PlayerPosHotKey = pMyCharacter->GetPosition();
}
find case VK_NUMPAD2
add
if (strstr(ZGetGameClient()->GetStageName(), "[TELE]")){
pMyCharacter->SetPosition(PlayerPosHotKey);
}
Re: How to add teleport mode [Tele] to gunz?
can you make a runnable that has the tele mode in it cause i dont know how to use c++ please and thanks for replying at my request :*
Re: How to add teleport mode [Tele] to gunz?
Unfortunately I do not have any clean source
Re: How to add teleport mode [Tele] to gunz?
it worked finally thanks so much you're the best !!!!!!
Re: How to add teleport mode [Tele] to gunz?
Quote:
Originally Posted by
iFinn
ZGameInput.cpp
go to "bool ZGameInput::OnEvent(MEvent* pEvent)" and add "rvector PlayerPosHotKey;" above
find case VK_NUMPAD1
add
if (strstr(ZGetGameClient()->GetStageName(), "[TELE]")){
PlayerPosHotKey = pMyCharacter->GetPosition();
}
find case VK_NUMPAD2
add
if (strstr(ZGetGameClient()->GetStageName(), "[TELE]")){
pMyCharacter->SetPosition(PlayerPosHotKey);
}
shoud i add find case VK_NUMPAD1 ? or its already added ?
Re: How to add teleport mode [Tele] to gunz?
Quote:
Originally Posted by
mohamedmoka
shoud i add find case VK_NUMPAD1 ? or its already added ?
Perhaps must already exist case VK_NUMPAD1 in bool ZGameInput::OnEvent
if none, add
case VK_NUMPAD1:
//func here
break;
Re: How to add teleport mode [Tele] to gunz?
Quote:
Originally Posted by
iFinn
Perhaps must already exist case VK_NUMPAD1 in bool ZGameInput::OnEvent
if none, add
case VK_NUMPAD1:
//func here
break;
ifinn i add code but how can i use it in the room
Re: How to add teleport mode [Tele] to gunz?
Quote:
Originally Posted by
Abdo Khaled
ifinn i add code but how can i use it in the room
Use ROOMTAG: [TELE]
NUMPAD1: save pos
NUMPAD2: go pos
Re: How to add teleport mode [Tele] to gunz?
Quote:
Originally Posted by
iFinn
Use ROOMTAG: [TELE]
NUMPAD1: save pos
NUMPAD2: go pos
man iget this error
d:\Gunz\Gunz\Gunz 1.5 Repack by Jur13n #1 (Edited)\Source\Gunz\ZGameInput.cpp(100): error C3861: 'PlayerPosHotKey': identifier not found, even with argument-dependent lookup
d:\Gunz\Gunz\Gunz 1.5 Repack by Jur13n #1 (Edited)\Source\Gunz\ZGameInput.cpp(94): error C2065: 'PlayerPosHotKey' : undeclared identifier
Re: How to add teleport mode [Tele] to gunz?
Quote:
Originally Posted by
abdo khaled
man iget this error
d:\gunz\gunz\gunz 1.5 repack by jur13n #1 (edited)\source\gunz\zgameinput.cpp(100): Error c3861: 'playerposhotkey': Identifier not found, even with argument-dependent lookup
d:\gunz\gunz\gunz 1.5 repack by jur13n #1 (edited)\source\gunz\zgameinput.cpp(94): Error c2065: 'playerposhotkey' : Undeclared identifier
Quote:
Originally Posted by
ifinn
go to "bool zgameinput::onevent(mevent* pevent)" and add "rvector playerposhotkey;" above
Re: How to add teleport mode [Tele] to gunz?
Quote:
Originally Posted by
iFinn
[/font][/color]
bro i built it but it not do any thing in game
Re: How to add teleport mode [Tele] to gunz?
it's not working for me too in the edited source ... @iFinn please help
Re: How to add teleport mode [Tele] to gunz?
Quote:
Originally Posted by
Shadi Wakeem
it's not working for me too in the edited source ... @
iFinn please help
below " switch (pEvent->nKey){ "
Quote:
case VK_NUMPAD1:{
if (strstr(ZGetGameClient()->GetStageName(), "[TELE]")){
PlayerPosHotKey = pMyCharacter->GetPosition();
}
}
return true;
case VK_NUMPAD2:{
if (strstr(ZGetGameClient()->GetStageName(), "[TELE]")){
pMyCharacter->SetPosition(PlayerPosHotKey);
}
}
return true;
Re: How to add teleport mode [Tele] to gunz?
Didn't work :(
i build the source but when i go in game nothing happens ... @iFinn