• The Definitive Guide To MW3 Hacks, Mods and Cheats In 2019!

    You are interested in MW3 Hacks, Mods, Cheats or Trainers. Check our guide! Click here!

Question SPRX Help Plez XD Rawr KKK

Messages
17
Reaction score
1
Points
8
so basically im making a sprx
But i cant find the right dimensions for me
X/Y/Width/Height
im trying to find the dimensions to make my menu look like yet another engine V1 or something like that but for MW3
if anyone can help then thanks i guess
okie bye
 

Harry

Certified Sick ℂunt
Premium Member
Messages
1,263
Reaction score
968
Points
973
Using the RefDef structure, you could use these:
Code:
float getScreenPercentX(float percent) {
    Get_cgs()->refdef.Width*percent;
}
float getScreenPercentY(float percent) {
    Get_cgs()->refdef.Height*percent;
}

Call like:
Code:
getScreenPercentX(0.5); //50%
or
getScreenPercentX(0.25) //25%

The structure:
Code:
typedef struct
{
    /* 0000 */ int X;
    /* 0004 */ int Y;
    /* 0008 */ int Width;
    /* 000C */ int Height;
    /* 0010 */ Vector2 Fov;
    /* 0018 */ Vector3 viewOrigin;
    /* 0024 */ Vector3 viewAxis[3];
    /* 0048 */
} RefDef_s;

You'll need to fill the structure, but you should be able to do this easily, with all the sources that have been released for MW3
 
Last edited:
Messages
17
Reaction score
1
Points
8
Using the RefDef structure, you could use these:
Code:
float getScreenPercentX(float percent) {
    Get_cgs()->refdef.Width*percent;
}
float getScreenPercentY(float percent) {
    Get_cgs()->refdef.Height*percent;
}

Call like:
Code:
getScreenPercentX(0.5); //50%
or
getScreenPercentX(0.25) //25%

The structure:
Code:
typedef struct
{
    /* 0000 */ int X;
    /* 0004 */ int Y;
    /* 0008 */ int Width;
    /* 000C */ int Height;
    /* 0010 */ Vector2 Fov;
    /* 0018 */ Vector3 viewOrigin;
    /* 0024 */ Vector3 viewAxis[3];
    /* 0048 */
} RefDef_s;

You'll need to fill the structure, but you should be able to do this easily, with all the sources that have been released for MW3
thanks, but i want it like the same as yet another engine and ye thanks anyway ill use that for my other menu :smile:
 

Harry

Certified Sick ℂunt
Premium Member
Messages
1,263
Reaction score
968
Points
973
thanks, but i want it like the same as yet another engine and ye thanks anyway ill use that for my other menu :smile:
If you have the source, just copy the shaders.
If you don't, just spend some time trying to copy the shaders by eye
 

oDezire-

Known Member
Messages
13
Reaction score
2
Points
108
Message me on Discord @iPonyOG and ill send you the shaders :smile: i have already made the Base :smile:
 

Harry

Certified Sick ℂunt
Premium Member
Messages
1,263
Reaction score
968
Points
973
Message me on Discord @iPonyOG and ill send you the shaders :smile: i have already made the Base :smile:
You mean you have the menu source and you're just going to copy and paste the shaders?
Or have you spent "8 hours" "ripping apart the menu and remaking it", but just keeping everything the same? You've just rewritten it :wink:
 
Messages
17
Reaction score
1
Points
8
You mean you have the menu source and you're just going to copy and paste the shaders?
Or have you spent "8 hours" "ripping apart the menu and remaking it", but just keeping everything the same? You've just rewritten it :wink:
lol
 
Messages
17
Reaction score
1
Points
8
that refdef struct you gave me, what game is that for cause you said you will need to fill out the structure but it should be easy because of how many sources have been released, i was wondering how do i fill the structure ?
 
Last edited by a moderator:

zommer0532

Veteran
Messages
172
Reaction score
66
Points
813
s
that refdef struct you gave me, what game is that for cause you said you will need to fill out the structure but it should be easy because of how many sources have been released, i was wondering how do i fill the structure ?
see you cant code. you dont even know what a struct is. Please use google and find out ffs.
 
Top