[Tutorial] Fix attach scope in third person (aiming)

Results 1 to 8 of 8
  1. #1
    Account Upgraded | Title Enabled! Dragonbooss is offline
    MemberRank
    May 2013 Join Date
    BrazilLocation
    267Posts

    [Tutorial] Fix attach scope in third person (aiming)

    This is a tutorial setting the sights on 3rd person using any attachment, instead of aiming his camera and change it to first person, it will usually aim (as without the attach) equal to I:SS.



    In AI_Player.cpp search for:

    Code:
    bool obj_Player::hasScopeMode() const
    And make it like look this:

    Code:
    bool obj_Player::hasScopeMode() const 
    {
        if(bDead)
            return false;
        if(forcedEmptyHands)
            return false;
    
    
        bool isFirstPerson = g_camera_mode->GetInt()==2 && NetworkLocal;
    
    
        Weapon* wpn = m_Weapons[m_SelectedWeapon];
        if(wpn)
        {
            if(!isFirstPerson && wpn->getCategory() != storecat_SNP && wpn->getItemID() != 101315 && wpn->getItemID() != 101319 && NetworkLocal)
                return false;
        }
    
    
        return (m_Weapons[m_SelectedWeapon] && m_Weapons[m_SelectedWeapon]->hasScopeMode(isFirstPerson)); 
    }
    Done :D Contratz!


  2. #2
    Enthusiast zD4RK is offline
    MemberRank
    Mar 2014 Join Date
    localhostLocation
    48Posts

    Re: [Tutorial] Fix attach scope in third person (aiming)

    Nice man (y)

  3. #3
    Proficient Member rollwow is offline
    MemberRank
    Sep 2013 Join Date
    LisbonLocation
    153Posts

    Re: [Tutorial] Fix attach scope in third person (aiming)

    Really nice! +1

  4. #4
    Account Upgraded | Title Enabled! Dragonbooss is offline
    MemberRank
    May 2013 Join Date
    BrazilLocation
    267Posts

    Re: [Tutorial] Fix attach scope in third person (aiming)

    Quote Originally Posted by zD4RK View Post
    Nice man (y)
    Quote Originally Posted by rollwow View Post
    Really nice! +1
    Thanks :)

  5. #5
    Proficient Member rollwow is offline
    MemberRank
    Sep 2013 Join Date
    LisbonLocation
    153Posts

    Re: [Tutorial] Fix attach scope in third person (aiming)

    I Think src WarZTHSrc2 don't work because it's making conflict with other things

    Fix for this ?
    I Have alot of errors.

    Last edited by rollwow; 12-11-14 at 03:44 AM.

  6. #6
    Account Upgraded | Title Enabled! Dragonbooss is offline
    MemberRank
    May 2013 Join Date
    BrazilLocation
    267Posts

    Re: [Tutorial] Fix attach scope in third person (aiming)

    Quote Originally Posted by rollwow View Post
    I Think src WarZTHSrc2 don't work because it's making conflict with other things

    Fix for this ?
    I Have alot of errors.

    You forgot any " } " ;)

  7. #7
    Proficient Member rollwow is offline
    MemberRank
    Sep 2013 Join Date
    LisbonLocation
    153Posts

    Re: [Tutorial] Fix attach scope in third person (aiming)

    Quote Originally Posted by Dragonbooss View Post
    You forgot any " } " ;)
    Omg.. nvm i forgot yes ^.^

  8. #8
    Account Upgraded | Title Enabled! Dragonbooss is offline
    MemberRank
    May 2013 Join Date
    BrazilLocation
    267Posts

    Re: [Tutorial] Fix attach scope in third person (aiming)

    Quote Originally Posted by rollwow View Post
    Omg.. nvm i forgot yes ^.^
    Hehe XD



Advertisement