How to add teleport mode [Tele] to gunz?

Results 1 to 17 of 17
  1. #1
    Member Shadi Wakeem is offline
    MemberRank
    Jul 2015 Join Date
    77Posts

    config How to add teleport mode [Tele] to gunz?

    Last edited by Shadi Wakeem; 23-09-16 at 08:11 PM.


  2. #2
    Member iFinn is offline
    MemberRank
    Dec 2013 Join Date
    62Posts

    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);
    }

  3. #3
    Member Shadi Wakeem is offline
    MemberRank
    Jul 2015 Join Date
    77Posts

    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 :*
    Last edited by Shadi Wakeem; 14-05-16 at 02:17 PM.

  4. #4
    Member iFinn is offline
    MemberRank
    Dec 2013 Join Date
    62Posts

    Re: How to add teleport mode [Tele] to gunz?

    Unfortunately I do not have any clean source

  5. #5
    Member Shadi Wakeem is offline
    MemberRank
    Jul 2015 Join Date
    77Posts

    Re: How to add teleport mode [Tele] to gunz?

    it worked finally thanks so much you're the best !!!!!!
    Last edited by Shadi Wakeem; 18-05-16 at 12:25 PM.

  6. #6
    Enthusiast mohamedmoka is offline
    MemberRank
    Jul 2014 Join Date
    Cairo, Egypt, ELocation
    25Posts

    Re: How to add teleport mode [Tele] to gunz?

    Quote Originally Posted by iFinn View Post
    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 ?

  7. #7
    Member iFinn is offline
    MemberRank
    Dec 2013 Join Date
    62Posts

    Re: How to add teleport mode [Tele] to gunz?

    Quote Originally Posted by mohamedmoka View Post
    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;

  8. #8
    Apprentice Abdo Khaled is offline
    MemberRank
    Jul 2014 Join Date
    8Posts

    Re: How to add teleport mode [Tele] to gunz?

    Quote Originally Posted by iFinn View Post
    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

  9. #9
    Member iFinn is offline
    MemberRank
    Dec 2013 Join Date
    62Posts

    Re: How to add teleport mode [Tele] to gunz?

    Quote Originally Posted by Abdo Khaled View Post
    ifinn i add code but how can i use it in the room
    Use ROOMTAG: [TELE]

    NUMPAD1: save pos
    NUMPAD2: go pos

  10. #10
    Apprentice Abdo Khaled is offline
    MemberRank
    Jul 2014 Join Date
    8Posts

    Re: How to add teleport mode [Tele] to gunz?

    Quote Originally Posted by iFinn View Post
    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

  11. #11
    Member iFinn is offline
    MemberRank
    Dec 2013 Join Date
    62Posts

    Re: How to add teleport mode [Tele] to gunz?

    Quote Originally Posted by abdo khaled View Post
    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 View Post
    go to "bool zgameinput::onevent(mevent* pevent)" and add "rvector playerposhotkey;" above

  12. #12
    Apprentice Abdo Khaled is offline
    MemberRank
    Jul 2014 Join Date
    8Posts

    Re: How to add teleport mode [Tele] to gunz?

    Quote Originally Posted by iFinn View Post
    [/font][/color]
    bro i built it but it not do any thing in game

  13. #13
    Member Shadi Wakeem is offline
    MemberRank
    Jul 2015 Join Date
    77Posts

    Re: How to add teleport mode [Tele] to gunz?

    it's not working for me too in the edited source ... @iFinn please help

  14. #14
    Member iFinn is offline
    MemberRank
    Dec 2013 Join Date
    62Posts

    Re: How to add teleport mode [Tele] to gunz?

    Quote Originally Posted by Shadi Wakeem View Post
    it's not working for me too in the edited source ... @iFinn please help
    below " switch (pEvent->nKey){ "

    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;

  15. #15
    Member Shadi Wakeem is offline
    MemberRank
    Jul 2015 Join Date
    77Posts

    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

  16. #16
    Member iFinn is offline
    MemberRank
    Dec 2013 Join Date
    62Posts

    Re: How to add teleport mode [Tele] to gunz?

    Quote Originally Posted by Shadi Wakeem View Post
    Didn't work :(
    i build the source but when i go in game nothing happens ... @iFinn
    @Abdo Khaled We had a problem, when it creates a room, automatically writes all texts changes to tiny in room name
    change [TELE] to [tele] in source
    if not work, just seeing ...

  17. #17
    Apprentice Abdo Khaled is offline
    MemberRank
    Jul 2014 Join Date
    8Posts

    Re: How to add teleport mode [Tele] to gunz?

    Quote Originally Posted by Shadi Wakeem View Post
    Didn't work :(
    i build the source but when i go in game nothing happens ... @iFinn
    case VK_NUMPAD1:{


    If (strstr (strlwr (ZGetGameClient ()-> GetStageName ()), "[tele]")){
    PlayerPosHotKey = pMyCharacter->GetPosition();
    ZChatOutput(MCOLOR(255,0,0),"Pos Saved");
    }
    }
    return true;
    case VK_NUMPAD2:{
    If (strstr (strlwr (ZGetGameClient ()-> GetStageName ()), "[tele]")){
    pMyCharacter->SetPosition(PlayerPosHotKey);
    ZChatOutput(MCOLOR(255,0,0), "Pos Loaded");
    }//no room tag test
    }
    return true;

    ifinn give me that put it
    Last edited by Abdo Khaled; 09-08-16 at 09:30 PM.



Advertisement