Results 1 to 8 of 8
  1. #1
    skip's Avatar
    Join Date
    Aug 2008
    Posts
    181
    Reputation
    10
    Thanks
    8

    [Request]Enemy Name Color Change

    Can someone make me a hack where it changes the enemies name to something like bright green. Or any hex color of the choosing.

    Code:
    #include <iostream>
    #include <string>
    #include <vector>
     
    using namespace std;
     
    int convertFromHex(string hex)
    {
        int value = 0;
        
        int a = 0;
        int b = hex.length() - 1;
        for (; b >= 0; a++, b--)
        {
            if (hex[b] >= '0' && hex[b] <= '9')
            {
                value += (hex[b] - '0') * (1 << (a * 4));
            }
            else
            {
                switch (hex[b])
                {
                    case 'A':
                    case 'a':
                        value += 10 * (1 << (a * 4));
                        break;
                        
                    case 'B':
                    case 'b':
                        value += 11 * (1 << (a * 4));
                        break;
                        
                    case 'C':
                    case 'c':
                        value += 12 * (1 << (a * 4));
                        break;
                        
                    case 'D':
                    case 'd':
                        value += 13 * (1 << (a * 4));
                        break;
                        
                    case 'E':
                    case 'e':
                        value += 14 * (1 << (a * 4));
                        break;
                        
                    case 'F':
                    case 'f':
                        value += 15 * (1 << (a * 4));
                        break;
                        
                    default:
                        cout << "Error, invalid charactare '" << hex[a] << "' in hex number" << endl;
                        break;
                }
            }
        }
        
        return value;
    }
     
    void hextodec(string hex, vector<unsigned char>& rgb)
    {
        // since there is no prefix attached to hex, use this code
        string redString = hex.substr(0, 2);
        string greenString = hex.substr(2, 2);
        string blueString = hex.substr(4, 2);
        
    /*
        if the prefix # was attached to hex, use the following code
        string redString = hex.substr(1, 2);
        string greenString = hex.substr(3, 2);
        string blueString = hex.substr(5, 2);
    */
        
    /*
        if the prefix 0x was attached to hex, use the following code
        string redString = hex.substr(2, 2);
        string greenString = hex.substr(4, 2);
        string blueString = hex.substr(6, 2);
    */
        
        unsigned char red = (unsigned char)(convertFromHex(redString));
        unsigned char green = (unsigned char)(convertFromHex(greenString));
        unsigned char blue = (unsigned char)(convertFromHex(blueString));
        
        rgb[0] = red;
        rgb[1] = green;
        rgb[2] = blue;
    }
     
    int main()
    {
        string hexColor;
        vector<unsigned char> rgbColor(3);
        
        cout << "Enter Hex value (must be 6 valid Hex digits): 0x";
        cin >> hexColor;
        
        hextodec(hexColor, rgbColor);
        
        cout << "\nWhen 0x" << hexColor << " is converted to RGB, it becomes:" << endl;
        cout << "R: " << int(rgbColor[0]) << endl;
        cout << "G: " << int(rgbColor[1]) << endl;
        cout << "B: " << int(rgbColor[2]) << endl;
        
        system("pause");
    }
    Found the code gamdev if thats any help Been a while since I officially made a Hex to RGB but if you can make this mod where it brightens up the color that would own, maybe text file setting? (It sucks when shooting at wrong guy when my partners are near me In Close Combat)

  2. #2
    Threadstarter
    Advanced Member
    skip's Avatar
    Join Date
    Aug 2008
    Posts
    181
    Reputation
    10
    Thanks
    8
    Wondering if is possible or not? I seen by default enemies name colors are red, dark red, real hard to see. Possibly someone could make something to modify it?

  3. #3
    woody77's Avatar
    Join Date
    Jul 2008
    Gender
    male
    Posts
    302
    Reputation
    10
    Thanks
    1,173
    I am going to check the combat arms folder I am sure they have some stuff to change in there.

  4. The Following User Says Thank You to woody77 For This Useful Post:

    skip (08-09-2008)

  5. #4
    Threadstarter
    Advanced Member
    skip's Avatar
    Join Date
    Aug 2008
    Posts
    181
    Reputation
    10
    Thanks
    8
    Okay thanks man.

    I know its possible, you guys make "Chams" lol come on now xD. If its hard can you possible just make the enemies names "x3" the normal size?
    Last edited by skip; 08-09-2008 at 12:19 PM.

  6. #5
    GOD's Avatar
    Join Date
    Jul 2008
    Gender
    male
    Location
    I am the God
    Posts
    11,084
    Reputation
    15
    Thanks
    1,516
    My Mood
    Amazed
    lol it would be cool if they had BIG HEADS lol
    I am the God.

  7. #6
    Threadstarter
    Advanced Member
    skip's Avatar
    Join Date
    Aug 2008
    Posts
    181
    Reputation
    10
    Thanks
    8
    :'( not one hacker attempts :'(

  8. #7
    Threadstarter
    Advanced Member
    skip's Avatar
    Join Date
    Aug 2008
    Posts
    181
    Reputation
    10
    Thanks
    8
    Well last time here it goes, anyone think they could hook a brotha up? If no one responds tomorrow a mod should close this.

  9. #8
    Threadstarter
    Advanced Member
    skip's Avatar
    Join Date
    Aug 2008
    Posts
    181
    Reputation
    10
    Thanks
    8
    fuq, mod close this no body can do this..

Similar Threads

  1. player name color change
    By Brecht Algoet in forum Combat Arms Discussions
    Replies: 31
    Last Post: 04-24-2011, 06:49 PM
  2. MAJ1 With 2 Perms (Eliete mod spec, name color change ECT)
    By D3rknesSnper in forum Selling Accounts/Keys/Items
    Replies: 11
    Last Post: 08-12-2010, 07:57 AM
  3. [REQUEST] Stephen5206 Name Change
    By Stephen in forum General
    Replies: 98
    Last Post: 12-28-2009, 01:36 PM
  4. i request a name change
    By -V- in forum General
    Replies: 16
    Last Post: 07-17-2009, 03:15 PM
  5. [Request] Quick Name Change...
    By -TM- in forum Suggestions, Requests & Help
    Replies: 0
    Last Post: 05-07-2008, 05:04 PM

Tags for this Thread