[TUTORIAL] Easy tutorial - SpawnProtection Time +Extra

Results 1 to 8 of 8
  1. #1
    My Status --> LukasCCB is offline
    MemberRank
    Apr 2013 Join Date
    CracolandiaLocation
    1,190Posts

    [TUTORIAL] Easy tutorial - SpawnProtection Time +Extra

    Hello Haters =D

    WarZ.sln (Last CodexPO)

    Chance RED line (time in seconds)
    Search
    Code:
    m_SpawnProtectedUntil = r3dGetTime() + 30.0f;
    don't forgot
    warz_server.sln
    chance in
    Code:
    if(needsSpawnProtection)
            plr->m_SpawnProtectedUntil = r3dGetTime() + 30.0f; // 30 seconds of spawn protection
    and all in, don't forgot!! all in source
    Code:
    m_SpawnProtectedUntil = r3dGetTime() + 30.0f;
    extra, show Spawn Protection time in HUD player in-game

    search
    Code:
    if (isGameHardcore == true) //gamehardcore
    add
    Code:
    if(m_SpawnProtectedUntil > 0 && hudPause && !hudPause->isActive())
            {
                float timeSP = m_SpawnProtectedUntil - r3dGetTime();
                if(m_ZombieRepelentTime>0)
                    Font_Label->PrintF(2, 15, r3dColor(255,255,255), "Spawn Protection Time: %.1f",timeSP);
                else
                    Font_Label->PrintF(2, 0, r3dColor(255,255,255), "Spawn Protection Time: %.1f",timeSP);
                if (timeSP<=0)
                    m_SpawnProtectedUntil=0;
            }
    Bye Haters =(
    Last edited by LukasCCB; 29-12-15 at 10:54 AM. Reason: extra :D


  2. #2
    Enthusiast LukeFire is offline
    MemberRank
    Jul 2015 Join Date
    43Posts

    Re: [TUTORIAL] Easy tutorial - SpawnProtection Time +Extra

    Thanks for sharing :)

  3. #3
    Member arnoza085 is offline
    MemberRank
    Dec 2014 Join Date
    Thailand <3Location
    57Posts

    Re: [TUTORIAL] Easy tutorial - SpawnProtection Time +Extra

    Quote Originally Posted by lukasccb View Post
    Hello Haters =D

    WarZ.sln (Last CodexPO)

    Chance RED line (time in seconds)
    Search
    Code:
    m_SpawnProtectedUntil = r3dGetTime() + 30.0f;
    don't forgot
    warz_server.sln
    chance in
    Code:
    if(needsSpawnProtection)
            plr->m_SpawnProtectedUntil = r3dGetTime() + 30.0f; // 30 seconds of spawn protection
    and all in, don't forgot!! all in source
    Code:
    m_SpawnProtectedUntil = r3dGetTime() + 30.0f;
    extra, show Spawn Protection time in HUD player in-game

    search
    Code:
    if (isGameHardcore == true) //gamehardcore
    add
    Code:
    if(m_SpawnProtectedUntil > 0 && hudPause && !hudPause->isActive())
            {
                float timeSP = m_SpawnProtectedUntil - r3dGetTime();
                if(m_ZombieRepelentTime>0)
                    Font_Label->PrintF(2, 15, r3dColor(255,255,255), "Spawn Protection Time: %.1f",timeSP);
                else
                    Font_Label->PrintF(2, 0, r3dColor(255,255,255), "Spawn Protection Time: %.1f",timeSP);
                if (timeSP<=0)
                    m_SpawnProtectedUntil=0;
            }
    Bye Haters =(
    I'am using Untouch source . i can't find
    Code:
    if (isGameHardcore == true) //gamehardcore

    in my source . how to find it

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

    Re: [TUTORIAL] Easy tutorial - SpawnProtection Time +Extra

    Quote Originally Posted by arnoza085 View Post
    I'am using Untouch source . i can't find
    Code:
    if (isGameHardcore == true) //gamehardcore

    in my source . how to find it
    then try search
    Code:
    Font_Label->PrintF((r3dRenderer->ScreenW) / 2, 0, r3dColor(243,43,37), "FPS: %.1f", r3dGetAvgFPS());

  5. #5
    Member arnoza085 is offline
    MemberRank
    Dec 2014 Join Date
    Thailand <3Location
    57Posts

    Re: [TUTORIAL] Easy tutorial - SpawnProtection Time +Extra

    Quote Originally Posted by lukasccb View Post
    then try search
    Code:
    Font_Label->PrintF((r3dRenderer->ScreenW) / 2, 0, r3dColor(243,43,37), "FPS: %.1f", r3dGetAvgFPS());
    no i can't.

    ---- update ----

    found thanks :)

  6. #6

    Re: [TUTORIAL] Easy tutorial - SpawnProtection Time +Extra

    error C2065: 'm_ZombieRepelentTime' : undeclared identifier

  7. #7
    DeadZone The Unknown is offline
    MemberRank
    Feb 2014 Join Date
    CanadaLocation
    442Posts

    Re: [TUTORIAL] Easy tutorial - SpawnProtection Time +Extra

    Quote Originally Posted by Sakata Gintoki View Post
    error C2065: 'm_ZombieRepelentTime' : undeclared identifier
    Hi;

    Did you declare M_ZombieRepelentTime?. There really isn't allot of info on this error you have.

  8. #8

    Re: [TUTORIAL] Easy tutorial - SpawnProtection Time +Extra

    [IMG][/IMG]



Advertisement