[Tutorial] Changing aura color

Results 1 to 6 of 6
  1. #1
    Member Novoc is offline
    MemberRank
    May 2013 Join Date
    ThailandLocation
    98Posts

    idea [Tutorial] Changing aura color

    This will be the most basic tutorial I have posted yet.

    in WarZ.sln

    in AI_Player.CPP

    find
    Code:
                float r(1.0f), g(1.0), b(1.0f);
    
                if( This->PlayerAuraType == obj_Player::AT_HEALING )
                {
                    r = 0.f ;
                    g = 1.f ;
                    b = 0.25f ;
                }
                else if(This->PlayerAuraType == obj_Player::AT_MORHINE)
                {
                    r = 0.f ;
                    g = 0.f ;
                    b = 1.0f ;
                }
                else if(This->PlayerAuraType == obj_Player::AT_BERSERK)
                {
                    r = 1.f ;
                    g = 0.f ;
                    b = 0.f ;
                }
                else if(This->PlayerAuraType == obj_Player::AT_SPAWNPROTECTION) // golden color
                {
                    r = 1.0f ;
                    g = 0.62f ;
                    b = 0.15f ;
                }
    R = Red
    G = Green
    B = Blue

    Ranges from 0.0f to 1.0f, just like 0 to 255 or 00 to FF if that's your cup of tea.

    If you do not know how RGB system works, may god help you.

    Cyan aura

    Code:
                    r = 0.0f ;
                    g = 0.62f ;
                    b = 1.15f ;
    Purple aura

    Code:
                    r = 1.f ;
                    g = 0.f ;
                    b = 1.f ;
    etc.

    You can for example add it so a moderator/admin/dev always has an aura of a specific color. See my spawn protection tutorial for advice.


  2. #2
    Account Upgraded | Title Enabled! Poster13 is offline
    MemberRank
    Jun 2013 Join Date
    395Posts

    Re: [Tutorial] Changing aura color

    NIce)) Thanks Friend!

  3. #3
    Novice phytoplankton is offline
    MemberRank
    Aug 2013 Join Date
    4Posts

    Re: [Tutorial] Changing aura color

    Thanks mate, you're awesome!

  4. #4
    Proficient Member ccleanerz is offline
    MemberRank
    Jan 2011 Join Date
    FRALocation
    171Posts

    Re: [Tutorial] Changing aura color


  5. #5
    f793 eXtremousZ is offline
    MemberRank
    May 2013 Join Date
    Planet ShearLocation
    857Posts

    Re: [Tutorial] Changing aura color

    Thanks a lot!

  6. #6
    Yuri-BR#1559 Yuri-BR is offline
    DeveloperRank
    Apr 2013 Join Date
    ☣️❤️Location
    1,040Posts

    Re: [Tutorial] Changing aura color

    thanks



Advertisement