Osiris: How to modify default colors Allies/Enemies (Glow and ESP)

Created on 26 Jan 2020  路  28Comments  路  Source: danielkrupinski/Osiris

Good Morning,

I need to know how to modify the default colors of Glow and ESP for the Allies and the Enemies

Regards

@danielkrupinski

Most helpful comment

I need to know how to modify the default colors of Glow and ESP for the Allies and the Enemies

I would like to apply my own default colors after injection. In my hack I would not like to give access to the color adjustment. You understand ?

please tell me how to do it ?

Just last question @danielkrupinski how to enable esp name ?

Joined 2 days ago

thats a whole lot of learning i see there. you are not practicing, you are pasting. you cannot learn programming by pasting

as i said before, go learn general programming before you try to do game hacking,
if you cannot understand basic c++ then you definitely won't be able to reverse engineer an entire game.

for instance, whats the difference between stdcall, thiscall, and fastcall? you will crash if you use the wrong one on a function hook.
additionally, how can we use a pointer to an object to call a member function?

If you really want to step into hacking before general programming then I recommend you try externals first, you will actually be able to learn off of that unlike internals where you probably won't understand whats going on for the first few months.

I do not have a problem with you, I just don't like it when people leech off others without giving any real effort to improve themselves.

All 28 comments

What do you mean?

I would like to modify the default configuration of esp and glow, now I can modify elements in Config.h but this applies the same modifications for all Category, (Allies Enemies Planting Defusing Local player Weapons C4 Planted C4 Chickens Defuse kits Projectiles Hostages Ragdolls ). For example, I would select only Allies and apply the color blue and red for Enemies.

Sorry my english is bad

struct Glow {
    bool enabled{ true };
    bool healthBased{ false };
    float thickness{ 1.0f };
    float alpha{ 1.0f };
    int style{ 0 };
    Color color{ 255,0,0 };

};

You can still have different colors for allies and enemies, I don't get you

I would like to apply my own default colors after injection. In my hack I would not like to give access to the color adjustment. You understand ?

A solution might be to make a config with your desired colors and load it on inject

please tell me how to do it ?

find the function that runs when you click load and call it with your desired default config in Osiris.cpp at the bottom, in theory everything should initialize and then it will load the config.
^ or you could modify the options file but that doesn't let you easily modify the default without recompiling.

Not on my computer so I can't test but I think config.load() is what you're looking for

Tell me what to modify exactly. I'm a beginner. And It is possible to put my config file in the dll ? @xAkiraMiura @MinecraftGoodGame Many thanks for your answers

Are you gonna share the dll? If not you can just create a normal config and just load it on inject

I really want to automatically activate a default config after injection without accessing the settings. I will lock the settings to users in my hack. I would like to impose my own settings, my own colors.

if you're a beginner then game hacking is not the place for you. learncpp.com

if you're a beginner then game hacking is not the place for you. learncpp.com

I think u meant game hack programming

I don't want cpp training, i just need help to make my own default configuration. Tell me what to change and where.

You have to add appropriate constructors, example for glow:

struct Glow {
    Glow(float r, float g, float b) : color{ r, g, b } { }
    Glow() = default;

    bool enabled{ false };
    bool healthBased{ false };
    float thickness{ 1.0f };
    float alpha{ 1.0f };
    int style{ 0 };
    Color color;
};

std::array<Glow, 21> glow{ {
    { 0.003f, 1.0f, 0.439f }, // Allies All
    {}, // Allies Visible - default
    {}, // Allies Occluded - default
    {}, // Enemies All - default
    { 0.94f, 0.07f, 0.745f } // Enemies Visible
    // rest - default
} };

You have to add appropriate constructors, example for glow:

struct Glow {
    Glow(float r, float g, float b) : color{ r, g, b } { }
    Glow() = default;

    bool enabled{ false };
    bool healthBased{ false };
    float thickness{ 1.0f };
    float alpha{ 1.0f };
    int style{ 0 };
    Color color;
};

std::array<Glow, 21> glow{ {
    { 0.003f, 1.0f, 0.439f }, // Allies All
    {}, // Allies Visible - default
    {}, // Allies Occluded - default
    {}, // Enemies All - default
    { 0.94f, 0.07f, 0.745f } // Enemies Visible
    // rest - default
} };

Nice thank you i love u @danielkrupinski it's perfect

Just last question @danielkrupinski how to enable esp name ?

struct Esp {
struct Shared {
bool enabled{ true };
int font{ 0x1d };
ColorToggle snaplines;
ColorToggle box;
int boxType{ 0 };
ColorToggle name;
ColorToggle outline{ 0.0f, 0.0f, 0.0f };
ColorToggle distance;
float maxDistance{ 0.0f };
};

    struct Player : public Shared {
        ColorToggle eyeTraces;
        ColorToggle health;
        ColorToggle healthBar;
        ColorToggle armor;
        ColorToggle armorBar;
        ColorToggle money;
        ColorToggle headDot;
        ColorToggle activeWeapon;
        bool deadesp { false };
    };
struct ColorToggle : public Color {
    ColorToggle() = default;
    ColorToggle(bool enabled) : enabled{ enabled } { }
    ColorToggle(float r, float g, float b) : Color{ r, g, b } { }

    bool enabled{ false };
};

// inside esp struct
ColorToggle name{ true };

it works but i can't combine :

ColorToggle name{ true };
and
ColorToggle name{ 0.003f, 1.0f, 0.439f };

How to enable esp name and select the color of esp name @danielkrupinski

Define appropriate constructor for that, I'm not gonna do everything for you.

I think he defined it already

if you're a beginner then game hacking is not the place for you. learncpp.com

I think u meant game hack programming

we are on a programming platform so its implied.

@thomas0aotian explain why you disliked my comment? would you say that game hacking is a beginner friendly safe space where absolutely nobody gets flamed for pasting or not knowing basic programming things?
^ stop being spiteful that you're on the wrong side.

Define appropriate constructor for that, I'm not gonna do everything for you.

@danielkrupinski I really tried for hours I can't do it I only have errors.

stop trying to reap the benefits without working for it.

learn c++ half of us here did and maybe you can do it.
if you're not going to learn to code then just go buy a p2c like aimware

stop trying to reap the benefits without working for it.

learn c++ half of us here did and maybe you can do it.
if you're not going to learn to code then just go buy a p2c like aimware

I learn by practicing leave me alone, do you have a problem with me ?

I will propose an improved code to create default configurations. I work on it

I need to know how to modify the default colors of Glow and ESP for the Allies and the Enemies

I would like to apply my own default colors after injection. In my hack I would not like to give access to the color adjustment. You understand ?

please tell me how to do it ?

Just last question @danielkrupinski how to enable esp name ?

Joined 2 days ago

thats a whole lot of learning i see there. you are not practicing, you are pasting. you cannot learn programming by pasting

as i said before, go learn general programming before you try to do game hacking,
if you cannot understand basic c++ then you definitely won't be able to reverse engineer an entire game.

for instance, whats the difference between stdcall, thiscall, and fastcall? you will crash if you use the wrong one on a function hook.
additionally, how can we use a pointer to an object to call a member function?

If you really want to step into hacking before general programming then I recommend you try externals first, you will actually be able to learn off of that unlike internals where you probably won't understand whats going on for the first few months.

I do not have a problem with you, I just don't like it when people leech off others without giving any real effort to improve themselves.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

LeYesnt picture LeYesnt  路  3Comments

Flaam picture Flaam  路  4Comments

GeorgieeeDev picture GeorgieeeDev  路  3Comments

nikita-tarasov3 picture nikita-tarasov3  路  3Comments

deprale picture deprale  路  3Comments