not getting items during spawn protection

Results 1 to 10 of 10
  1. #1
    Enthusiast codex4129 is offline
    MemberRank
    Nov 2021 Join Date
    31Posts

    not getting items during spawn protection

    How can I do it for those who want to prevent getting items with spawn protection?

    https://www.hizliresim.com/7jmpfge


  2. #2
    My Status --> LukasCCB is offline
    MemberRank
    Apr 2013 Join Date
    CracolandiaLocation
    1,190Posts

    Re: not getting items during spawn protection

    You want "spawn protector activated" can't pick up the item ?

    Code:
    void obj_Player::UpdateActionUI()
    Code:
    *** DO HERE TO DETECT YOUR SPAWN PROTECTOR AND DISABLE THE INTERACT
    hudActionUI->Deactivate();

  3. #3
    Enthusiast codex4129 is offline
    MemberRank
    Nov 2021 Join Date
    31Posts

    Re: not getting items during spawn protection

    I don't want it to receive items while spawned

    - - - Updated - - -

    I don't want it to receive items while spawned

  4. #4
    Account Upgraded | Title Enabled! IKaruzI15 is offline
    MemberRank
    May 2017 Join Date
    197Posts

    Re: not getting items during spawn protection

    just think of it, there is a timer, just if(timer > 0.0f) then do not allow to process the pickup packet... just add a return to it??!?!?!?!?! is it that hard?

  5. #5
    Enthusiast codex4129 is offline
    MemberRank
    Nov 2021 Join Date
    31Posts

    Re: not getting items during spawn protection

    how can I do I don't know what to do from this part

    //Cynthia: 202 Delay 0.5 second picking up items when shooting. if(m_Weapons[m_SelectedWeapon] && (r3dGetTime() < m_Weapons[m_SelectedWeapon]->getLastTimeFired() + 0.5f)) return;

  6. #6
    Play Alpha MMO DouglasPro is offline
    MemberRank
    Nov 2014 Join Date
    //HKEY//RJ_BRLocation
    390Posts

    Re: not getting items during spawn protection

    Code:
    if(distance < 1.0f) // distance to ray. if more than 1, then it is outside of ray
        {
            
           // in case if you are standing right next to pile of objects, we need to re-init ui each time we pick different item from pile
    
            static GameObject* prevHUDItem = NULL;
            static uint32_t meantToShare = 0;//Cynthia:1142. medical items local player intended to heal other player.
            static bool bIsPrimaryInteraction = true;
    
             //DouglasPro:: oh fuck! new logic for test spawn protection, I don't know if this shit will work!!
            if(hudActionUI->isActive() && (m_AuraType != AT_SPAWNPROTECTION || prevHUDItem != dropObj || (m_Weapons[m_SelectedWeapon] && meantToShare!=m_Weapons[m_SelectedWeapon]->getItemID())))
            {
                bIsPrimaryInteraction = true;
                hudActionUI->Deactivate(); 
                ActionUI_pressedKeyTimer = 0;
            }

  7. #7
    Enthusiast codex4129 is offline
    MemberRank
    Nov 2021 Join Date
    31Posts

    Re: not getting items during spawn protection

    thank you bro

    - - - Updated - - -

    It takes it while spawned but not when it's over

  8. #8
    Account Upgraded | Title Enabled! Oosmar02 is offline
    MemberRank
    Sep 2013 Join Date
    FranceLocation
    893Posts

    Re: not getting items during spawn protection

    Search :
    if(distance < 1.0f)

    replace :
    if(distance < 1.0f && !m_SpawnProtectedUntil) // distance to ray. if more than 1, then it is outside of ray

  9. #9
    Enthusiast codex4129 is offline
    MemberRank
    Nov 2021 Join Date
    31Posts

    Re: not getting items during spawn protection

    You can only get the item when you punch

  10. #10
    Account Upgraded | Title Enabled! IKaruzI15 is offline
    MemberRank
    May 2017 Join Date
    197Posts

    Re: not getting items during spawn protection

    People already posted a solution, but please keep in mind, do not only do it on the clientside, add the same check to the serverside where the pickup packets get processed...



Advertisement