Post: [C++]BO1 SPRX HudElements
07-29-2014, 07:06 PM #1
ItsLollo1000
Little One
(adsbygoogle = window.adsbygoogle || []).push({});
Hey guys,
Here are BO1 Huds i've made shortly i haven't tested them!
So dont be mad at me if they dont work just report it to me and/or just send me fixed ones,
if u have them! Shiver
Enough talking enjoy the release!!
(made for SPRX)

    struct opd_s{
uint32_t sub;
uint32_t toc;
};
union color_s
{
struct
{
int8_t r;
int8_t g;
int8_t b;
int8_t a;
};
int32_t color_s;
};

struct hudelem_s
{
float x;
float y;
float z;
float fontScale;
color_s color;
color_s fromColor;
int fadeStartTime;
int scaleStartTime;
int fromX;
int fromY;
int moveStartTime;
int time;
int duration;
float value;
float sort;
color_s glowColor;
int fxBirthTime;
int targetEntNum;
short label;
short width;
short height;
short fromWidth;
short fromHeight;
short scaleTime;
short moveTime;
short text;
short fxLetterTime;
short fxDecayStartTime;
short fxDecayDuration;
short fxRedactDecayStartTime;
short fxRedactDecayDuration;
short flags;
char type;
char font;
char alignOrg;
char alignScreen;
char materialIndex;
char offscreenMaterialIdx;
char fromAlignOrg;
char fromAlignScreen;
char soundID;
char ui3dWindow;
short unknown;
};

struct game_hudelem_s
{
hudelem_s elem;
int clientNum;
int teamNum;
int archived;
};

opd_s GLS = { 0x00370638, 0x00A43AA0 };
int(*G_LocalizedStringIndex)(const char* String) = (int(*)(const char*))&GLS;

opd_s GMI = { 0x003705D0, 0x00A43AA0 };
int(*G_MaterialIndex)(const char* Material) = (int(*)(const char*))&GMI;

opd_s HEA = { 0x00370238, 0x00A43AA0 };
game_hudelem_s*(*HudElemAlloc)(int32_t client, int32_t teamNum) = (game_hudelem_s*(*)(int32_t, int32_t))&HEA;

game_hudelem_s* setShader(int clientIndex, const char* Shader, int Width, int Height, float X, float Y, int Allign = 5, unsigned char R = 0, unsigned char G = 0, unsigned char B = 0, unsigned char A = 0)
{
game_hudelem_s* elem = HudElemAlloc(clientIndex, 0);
elem->clientNum = clientIndex;
elem->elem.type = 6;
elem->elem.materialIndex = G_MaterialIndex(Shader);
elem->elem.width = Width;
elem->elem.height = Height;
elem->elem.x = X;
elem->elem.y = Y;
elem->elem.alignOrg = Allign;
elem->elem.color.r = R;
elem->elem.color.g = G;
elem->elem.color.b = B;
elem->elem.color.a = A;
return elem;
}

game_hudelem_s* setText(int clientIndex, const char* Text, int Font, float FontScale, float X, float Y, int Allign, unsigned char R = 0, unsigned char G = 0, unsigned char B = 0, unsigned char A = 0,unsigned char glowR = 0, unsigned char glowG = 0, unsigned char glowB = 0, unsigned char glowA = 0)
{
game_hudelem_s* elem = HudElemAlloc(clientIndex, 0);
elem->clientNum = clientIndex;
elem->elem.type = 1;
elem->elem.text = G_LocalizedStringIndex(Text);
elem->elem.font = Font;
elem->elem.fontScale = FontScale;
elem->elem.x = X;
elem->elem.y = Y;
elem->elem.alignOrg = Allign;
elem->elem.alignScreen = 6;
elem->elem.color.r = R;
elem->elem.color.g = G;
elem->elem.color.b = B;
elem->elem.color.a = A;
elem->elem.glowColor.r = glowR;
elem->elem.glowColor.g = glowG;
elem->elem.glowColor.b = glowB;
elem->elem.glowColor.a = glowA;
return elem;
}

Credits to:
droseum20
uSkeezR
seb5594[/CENTER]
(adsbygoogle = window.adsbygoogle || []).push({});

The following 6 users say thank you to ItsLollo1000 for this useful post:

A Friend, LaRip8, MaNamesTyler, Swaqq, xPAQz
07-29-2014, 07:10 PM #2
Originally posted by ItsLollo1000 View Post
Hey guys,
Here are BO1 Huds i've made shortly i haven't tested them!
So dont be mad at me if they dont work just report it to me and/or just send me fixed ones,
if u have them! Shiver
Enough talking enjoy the release!!
(made for SPRX)

    struct opd_s{
uint32_t sub;
uint32_t toc;
};
union color_s
{
struct
{
int8_t r;
int8_t g;
int8_t b;
int8_t a;
};
int32_t color_s;
};

struct hudelem_s
{
float x;
float y;
float z;
float fontScale;
color_s color;
color_s fromColor;
int fadeStartTime;
int scaleStartTime;
int fromX;
int fromY;
int moveStartTime;
int time;
int duration;
float value;
float sort;
color_s glowColor;
int fxBirthTime;
int targetEntNum;
short label;
short width;
short height;
short fromWidth;
short fromHeight;
short scaleTime;
short moveTime;
short text;
short fxLetterTime;
short fxDecayStartTime;
short fxDecayDuration;
short fxRedactDecayStartTime;
short fxRedactDecayDuration;
short flags;
char type;
char font;
char alignOrg;
char alignScreen;
char materialIndex;
char offscreenMaterialIdx;
char fromAlignOrg;
char fromAlignScreen;
char soundID;
char ui3dWindow;
short unknown;
};

struct game_hudelem_s
{
hudelem_s elem;
int clientNum;
int teamNum;
int archived;
};

opd_s GLS = { 0x00370638, 0x00A43AA0 };
int(*G_LocalizedStringIndex)(const char* String) = (int(*)(const char*))&GLS;

opd_s GMI = { 0x003705D0, 0x00A43AA0 };
int(*G_MaterialIndex)(const char* Material) = (int(*)(const char*))&GMI;

opd_s HEA = { 0x00370238, 0x00A43AA0 };
game_hudelem_s*(*HudElemAlloc)(int32_t client, int32_t teamNum) = (game_hudelem_s*(*)(int32_t, int32_t))&HEA;

game_hudelem_s* setShader(int clientIndex, const char* Shader, int Width, int Height, float X, float Y, int Allign = 5, unsigned char R = 0, unsigned char G = 0, unsigned char B = 0, unsigned char A = 0)
{
game_hudelem_s* elem = HudElemAlloc(clientIndex, 0);
elem->clientNum = clientIndex;
elem->elem.type = 6;
elem->elem.materialIndex = G_MaterialIndex(Shader);
elem->elem.width = Width;
elem->elem.height = Height;
elem->elem.x = X;
elem->elem.y = Y;
elem->elem.alignOrg = Allign;
elem->elem.color.r = R;
elem->elem.color.g = G;
elem->elem.color.b = B;
elem->elem.color.a = A;
return elem;
}

game_hudelem_s* setText(int clientIndex, const char* Text, int Font, float FontScale, float X, float Y, int Allign, unsigned char R = 0, unsigned char G = 0, unsigned char B = 0, unsigned char A = 0,unsigned char glowR = 0, unsigned char glowG = 0, unsigned char glowB = 0, unsigned char glowA = 0)
{
game_hudelem_s* elem = HudElemAlloc(clientIndex, 0);
elem->clientNum = clientIndex;
elem->elem.type = 1;
elem->elem.text = G_LocalizedStringIndex(Text);
elem->elem.font = Font;
elem->elem.fontScale = FontScale;
elem->elem.x = X;
elem->elem.y = Y;
elem->elem.alignOrg = Allign;
elem->elem.alignScreen = 6;
elem->elem.color.r = R;
elem->elem.color.g = G;
elem->elem.color.b = B;
elem->elem.color.a = A;
elem->elem.glowColor.r = glowR;
elem->elem.glowColor.g = glowG;
elem->elem.glowColor.b = glowB;
elem->elem.glowColor.a = glowA;
return elem;
}

Credits to:
droseum20
uSkeezR
seb5594[/CENTER]

I don't play BO1, but i hope someone can verify this working. That would be cool Smile

The following user thanked BaSs_HaXoR for this useful post:

cyberghosts
07-29-2014, 07:39 PM #3
A Friend
League Champion
I was just gonna say why no one's even looking at bo1 anymore. Nice release :yes:
07-29-2014, 07:57 PM #4
MaNamesTyler
Little One
I play it a lot, awesome release man ! Love seeing people still doing things for Black ops 1.
07-29-2014, 09:25 PM #5
xPAQz
Bounty hunter
very usefull <3
07-30-2014, 05:47 AM #6
seb5594
Proud Former Admin
You should also say, this are the hud for MP, not Zombie mode :p

The following user thanked seb5594 for this useful post:

cyberghosts
07-30-2014, 04:58 PM #7
xPAQz
Bounty hunter
Originally posted by seb5594 View Post
You should also say, this are the hud for MP, not Zombie mode :p


toc ist doch was schönes....
07-30-2014, 05:05 PM #8
SC58
Former Staff
Originally posted by ItsLollo1000 View Post
Hey guys,
Here are BO1 Huds i've made shortly i haven't tested them!
So dont be mad at me if they dont work just report it to me and/or just send me fixed ones,
if u have them! Shiver
Enough talking enjoy the release!!
(made for SPRX)

    struct opd_s{
uint32_t sub;
uint32_t toc;
};
union color_s
{
struct
{
int8_t r;
int8_t g;
int8_t b;
int8_t a;
};
int32_t color_s;
};

struct hudelem_s
{
float x;
float y;
float z;
float fontScale;
color_s color;
color_s fromColor;
int fadeStartTime;
int scaleStartTime;
int fromX;
int fromY;
int moveStartTime;
int time;
int duration;
float value;
float sort;
color_s glowColor;
int fxBirthTime;
int targetEntNum;
short label;
short width;
short height;
short fromWidth;
short fromHeight;
short scaleTime;
short moveTime;
short text;
short fxLetterTime;
short fxDecayStartTime;
short fxDecayDuration;
short fxRedactDecayStartTime;
short fxRedactDecayDuration;
short flags;
char type;
char font;
char alignOrg;
char alignScreen;
char materialIndex;
char offscreenMaterialIdx;
char fromAlignOrg;
char fromAlignScreen;
char soundID;
char ui3dWindow;
short unknown;
};

struct game_hudelem_s
{
hudelem_s elem;
int clientNum;
int teamNum;
int archived;
};

opd_s GLS = { 0x00370638, 0x00A43AA0 };
int(*G_LocalizedStringIndex)(const char* String) = (int(*)(const char*))&GLS;

opd_s GMI = { 0x003705D0, 0x00A43AA0 };
int(*G_MaterialIndex)(const char* Material) = (int(*)(const char*))&GMI;

opd_s HEA = { 0x00370238, 0x00A43AA0 };
game_hudelem_s*(*HudElemAlloc)(int32_t client, int32_t teamNum) = (game_hudelem_s*(*)(int32_t, int32_t))&HEA;

game_hudelem_s* setShader(int clientIndex, const char* Shader, int Width, int Height, float X, float Y, int Allign = 5, unsigned char R = 0, unsigned char G = 0, unsigned char B = 0, unsigned char A = 0)
{
game_hudelem_s* elem = HudElemAlloc(clientIndex, 0);
elem->clientNum = clientIndex;
elem->elem.type = 6;
elem->elem.materialIndex = G_MaterialIndex(Shader);
elem->elem.width = Width;
elem->elem.height = Height;
elem->elem.x = X;
elem->elem.y = Y;
elem->elem.alignOrg = Allign;
elem->elem.color.r = R;
elem->elem.color.g = G;
elem->elem.color.b = B;
elem->elem.color.a = A;
return elem;
}

game_hudelem_s* setText(int clientIndex, const char* Text, int Font, float FontScale, float X, float Y, int Allign, unsigned char R = 0, unsigned char G = 0, unsigned char B = 0, unsigned char A = 0,unsigned char glowR = 0, unsigned char glowG = 0, unsigned char glowB = 0, unsigned char glowA = 0)
{
game_hudelem_s* elem = HudElemAlloc(clientIndex, 0);
elem->clientNum = clientIndex;
elem->elem.type = 1;
elem->elem.text = G_LocalizedStringIndex(Text);
elem->elem.font = Font;
elem->elem.fontScale = FontScale;
elem->elem.x = X;
elem->elem.y = Y;
elem->elem.alignOrg = Allign;
elem->elem.alignScreen = 6;
elem->elem.color.r = R;
elem->elem.color.g = G;
elem->elem.color.b = B;
elem->elem.color.a = A;
elem->elem.glowColor.r = glowR;
elem->elem.glowColor.g = glowG;
elem->elem.glowColor.b = glowB;
elem->elem.glowColor.a = glowA;
return elem;
}

Credits to:
droseum20
uSkeezR
seb5594[/CENTER]


TOC is 0xB576E8

and HudElem_Alloc is wrong it one of these addresses 0x2E3D40, 0x2E3FF0, 0x2E4478

The following 3 users say thank you to SC58 for this useful post:

ItsLollo1000, gopro_2027, TheGreenPlanet
11-07-2016, 12:15 AM #9
K51
Haxor!
Originally posted by SC58 View Post
TOC is 0xB576E8

and HudElem_Alloc is wrong it one of these addresses 0x2E3D40, 0x2E3FF0, 0x2E4478


hey they don't work, do you by chance have an idea of anymore that may be possibly it?

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo