[Request] Riot Shield Cooldown, Switch items while sprinting

Results 1 to 2 of 2
  1. #1
    Novice WarZLover is offline
    MemberRank
    Aug 2016 Join Date
    4Posts

    config [Request] Riot Shield Cooldown, Switch items while sprinting

    Hello guys I need help for the following 2 things:

    1st:
    I'm not able to switch items when im sprinting.
    Maybe can someone ask me how to do this tutorial I absolutely have no clue
    http://forum.ragezone.com/f791/tutor...-ammo-1060092/

    2nd:
    When I use medics and after that trying to place a shield it also has a cooldown.
    How do I fix this?

    Please help me as fast as possible!

    Thank you guys!


  2. #2
    Apprentice Nixdk is offline
    MemberRank
    Sep 2014 Join Date
    Vejle, Fyn, DenLocation
    20Posts

    Re: [Request] Riot Shield Cooldown, Switch items while sprinting

    Switch Weapons while running:
    Search in WarZ.sln in AI_Player.cpp for:
    Code:
    else if(InputMappingMngr->wasPressed(r3dInputMappingMngr::KS_NEXTITEM))
    and scroll up until u see something like that:
    Code:
    if(PlayerState != PLAYER_MOVE_SPRINT )
    and remove that check and the else (there r 2 of that (for final & release))

    place old ammo in backpack instead of dropping it:
    in WarZ_Server.sln in obj_ServerPlayer.cpp search for:
    Code:
    void obj_ServerPlayer::OnNetPacket(const PKT_C2C_PlayerReload_s& n)
    and scroll down until u see something like that:
    Code:
    if(wpn->getPlayerItem().Var1 > 0 && wpn->getPlayerItem().Var2 > 0)
    {
    obj_DroppedItem* obj = (obj_DroppedItem*)srv_CreateGameObject("obj_DroppedItem", "obj_DroppedItem", GetRandomPosForItemDrop());
    obj->SetNetworkID(gServerLogic.GetFreeNetId());
    obj->NetworkLocal = true;
    // vars
    obj->m_Item.itemID = wpn->getPlayerItem().Var2;
    obj->m_Item.quantity = 1;
    obj->m_Item.Var1 = wpn->getPlayerItem().Var1;
    }
    and change it to:
    Code:
    if(wpn->getPlayerItem().Var1 > 0 && wpn->getPlayerItem().Var2 > 0)
    {
    wiInventoryItem wi;
    wi.itemID = wpn->getPlayerItem().Var2;
    wi.quantity = 1;
    wi.Var1 = wpn->getPlayerItem().Var1;
    BackpackAddItem(wi);
    }
    Credits: TH4D3U5!



Advertisement