Post: close
01-04-2014, 02:09 AM #1
$ticky
Banned
(adsbygoogle = window.adsbygoogle || []).push({}); Close
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked $ticky for this useful post:

kiwi_modz
01-04-2014, 02:16 AM #2
Source Code
Bounty hunter
Originally posted by Malicious View Post
Hey guys I was wondering around the MW3 thread today and came across xRevolutions release of Typewriter text and notice he released full struct with it, so today I will be releasing my functions for MoveOverTime, MoveOverTimeCustom, ScaleOverTime, and ScaleOverTime custom. These functions are used for moving and resizing the you HUD elements without any lag. Because these functions involve level time it eliminates all lag accompanied!

I used PS3Lib to make these functions!

    
public class HElems
{
public static uint
xOffset = 0x08,
yOffset = 0x04,
textOffset = 0x84,
fontOffset = 0x24,
fontSizeOffset = 0x14,
colorOffset = 0x30,
relativeOffset = 0x2c,
widthOffset = 0x44,
heightOffset = 0x48,
shaderOffset = 0x4c,
GlowColor = 0x8C,
alignOffset = 0x2C,
fadeStartTime = 0x38,
fadeTime = 0x3c,
label = 0x40,
clientOffset = 0xA8,
fromWidth = 0x50,
fromHeight = 0x54,
scaleStartTime = 0x58,
scaleTime = 0x5c,
fromX = 0x60,
fromY = 0x64,
fromAlignOrg = 0x68,
fromAlignScreen = 0x6c,
moveStartTime = 0x70,
moveTime = 0x74,
time = 0x78,
duration = 0x7c,
value = 0x80,
sort = 0x88,
fxBirthTime = 0x90,
fxLetterTime = 0x94,
fxDecayStartTime = 0x98,
fxDecayDuration = 0x9c,
soundID = 0xa0,
flags = 0xa4;
}

public static void MoveOverTime(uint elemIndex, int Time, float X, float Y)
{
uint Elem = 0xF0E10C + ((elemIndex) * 0xB4);
PS3.Extension.WriteInt32(Elem + Huds.HElems.fromAlignOrg, PS3.Extension.ReadInt32(Elem + Huds.HElems.fromAlignScreen));
PS3.Extension.WriteInt32(Elem + Huds.HElems.fromAlignScreen, PS3.Extension.ReadInt32(Elem + Huds.HElems.fromAlignOrg));
PS3.Extension.WriteFloat(Elem + Huds.HElems.fromY, PS3.Extension.ReadFloat(Elem + Huds.HElems.yOffset));
PS3.Extension.WriteFloat(Elem + Huds.HElems.fromX, PS3.Extension.ReadFloat(Elem + Huds.HElems.xOffset));
PS3.Extension.WriteInt32(Elem + Huds.HElems.moveStartTime, GetLevelTime(CheckHost()));
PS3.Extension.WriteInt32(Elem + Huds.HElems.moveTime, (int)((double)(Time * 1000) + 0.5));
PS3.Extension.WriteFloat(Elem + Huds.HElems.xOffset, X);
PS3.Extension.WriteFloat(Elem + Huds.HElems.yOffset, Y);
}
public static void MoveOverTimeCustom(uint elemIndex, int Time, float X, float Y, float NewX, float NewY)
{
uint Elem = 0xF0E10C + ((elemIndex) * 0xB4);
PS3.Extension.WriteInt32(Elem + Huds.HElems.fromAlignOrg, PS3.Extension.ReadInt32(Elem + Huds.HElems.fromAlignScreen));
PS3.Extension.WriteInt32(Elem + Huds.HElems.fromAlignScreen, PS3.Extension.ReadInt32(Elem + Huds.HElems.fromAlignOrg));
PS3.Extension.WriteFloat(Elem + Huds.HElems.fromY, X);
PS3.Extension.WriteFloat(Elem + Huds.HElems.fromX, Y);
PS3.Extension.WriteInt32(Elem + Huds.HElems.moveStartTime, GetLevelTime(CheckHost()));
PS3.Extension.WriteInt32(Elem + Huds.HElems.moveTime, (int)((double)(Time * 1000) + 0.5));
PS3.Extension.WriteFloat(Elem + Huds.HElems.xOffset, NewX);
PS3.Extension.WriteFloat(Elem + Huds.HElems.yOffset, NewY);
}
public static void ScaleOverTime(uint elemIndex, int Time, int Width, int Height)
{
uint Elem = 0xF0E10C + ((elemIndex) * 0xB4);
byte[] buffer = new byte[4];
PS3.GetMemory(Elem + Huds.HElems.widthOffset, buffer);
byte[] buffer2 = new byte[4];
PS3.GetMemory(Elem + Huds.HElems.heightOffset, buffer2);
PS3.Extension.WriteInt32(Elem + Huds.HElems.scaleStartTime, GetLevelTime(CheckHost()));
PS3.Extension.WriteInt32(Elem + Huds.HElems.fromHeight, PS3.Extension.ReadInt32(Elem + Huds.HElems.widthOffset));
PS3.Extension.WriteInt32(Elem + Huds.HElems.fromWidth, PS3.Extension.ReadInt32(Elem + Huds.HElems.heightOffset));
PS3.Extension.WriteInt32(Elem + Huds.HElems.widthOffset, Width);
PS3.Extension.WriteInt32(Elem + Huds.HElems.heightOffset, Height);
PS3.Extension.WriteInt32(Elem + Huds.HElems.scaleTime, (int)((double)(Time * 1000) + 0.5));
}
public static void ScaleOverTimeCustom(uint elemIndex, int Time, int Width, int Height, int NewWidth, int NewHeight)
{
uint Elem = 0xF0E10C + ((elemIndex) * 0xB4);
byte[] buffer = new byte[4];
PS3.GetMemory(Elem + Huds.HElems.widthOffset, buffer);
byte[] buffer2 = new byte[4];
PS3.GetMemory(Elem + Huds.HElems.heightOffset, buffer2);
PS3.Extension.WriteInt32(Elem + Huds.HElems.scaleStartTime, GetLevelTime(CheckHost()));
PS3.Extension.WriteInt32(Elem + Huds.HElems.fromHeight, Width);
PS3.Extension.WriteInt32(Elem + Huds.HElems.fromWidth, Height);
PS3.Extension.WriteInt32(Elem + Huds.HElems.widthOffset, NewWidth);
PS3.Extension.WriteInt32(Elem + Huds.HElems.heightOffset, NewHeight);
PS3.Extension.WriteInt32(Elem + Huds.HElems.scaleTime, (int)((double)(Time * 1000) + 0.5));
}

static int GetLevelTime(uint clientIndex)
{
byte[] buffer = new byte[4];
PS3.GetMemory(0x0110a280 + (clientIndex * 0x3980), buffer);
return BitConverter.ToInt32(ReverseBytes(buffer), 0);
}
public static uint CheckHost()
{
byte[] buffer = new byte[16];
PS3.GetMemory(0x01BBBC2C, buffer);
string myname = ByteArrayToString(buffer);
for (uint i = 0; i < 18; i++)
{
if (myname == GetNames(i))
{
return i;
}
}
return 0;
}
public static string GetNames(uint clientIndex)
{
byte[] nameb = new byte[16];
PS3.GetMemory(0x110a280 + (clientIndex * 0x3980) + 0x338C, nameb);
return ByteArrayToString(nameb).Replace(Convert.ToChar(0x00).ToString(), string.Empty);
}


Credits mainly to xRevolutions for the full HUD Structure Smile
iMCSx for PS3Lib


"Your" functions... Ninja
01-04-2014, 02:17 AM #3
Source Code
Bounty hunter
"Your" functions... Ninja
01-04-2014, 02:20 AM #4
$ticky
Banned
Originally posted by Source
"Your" functions... Ninja

did you read the credits?
01-04-2014, 02:21 AM #5
Originally posted by Malicious View Post
Hey guys I was wondering around the MW3 thread today and came across xRevolutions release of Typewriter text and notice he released full struct with it, so today I will be releasing my functions for MoveOverTime, MoveOverTimeCustom, ScaleOverTime, and ScaleOverTime custom. These functions are used for moving and resizing the you HUD elements without any lag. Because these functions involve level time it eliminates all lag accompanied!

I used PS3Lib to make these functions!

    
public class Huds
{
public class HElems
{
public static uint
xOffset = 0x08,
yOffset = 0x04,
textOffset = 0x84,
fontOffset = 0x24,
fontSizeOffset = 0x14,
colorOffset = 0x30,
relativeOffset = 0x2c,
widthOffset = 0x44,
heightOffset = 0x48,
shaderOffset = 0x4c,
GlowColor = 0x8C,
alignOffset = 0x2C,
fadeStartTime = 0x38,
fadeTime = 0x3c,
label = 0x40,
clientOffset = 0xA8,
fromWidth = 0x50,
fromHeight = 0x54,
scaleStartTime = 0x58,
scaleTime = 0x5c,
fromX = 0x60,
fromY = 0x64,
fromAlignOrg = 0x68,
fromAlignScreen = 0x6c,
moveStartTime = 0x70,
moveTime = 0x74,
time = 0x78,
duration = 0x7c,
value = 0x80,
sort = 0x88,
fxBirthTime = 0x90,
fxLetterTime = 0x94,
fxDecayStartTime = 0x98,
fxDecayDuration = 0x9c,
soundID = 0xa0,
flags = 0xa4;
}

public static void MoveOverTime(uint elemIndex, int Time, float X, float Y)
{
uint Elem = 0xF0E10C + ((elemIndex) * 0xB4);
PS3.Extension.WriteInt32(Elem + Huds.HElems.fromAlignOrg, PS3.Extension.ReadInt32(Elem + Huds.HElems.fromAlignScreen));
PS3.Extension.WriteInt32(Elem + Huds.HElems.fromAlignScreen, PS3.Extension.ReadInt32(Elem + Huds.HElems.fromAlignOrg));
PS3.Extension.WriteFloat(Elem + Huds.HElems.fromY, PS3.Extension.ReadFloat(Elem + Huds.HElems.yOffset));
PS3.Extension.WriteFloat(Elem + Huds.HElems.fromX, PS3.Extension.ReadFloat(Elem + Huds.HElems.xOffset));
PS3.Extension.WriteInt32(Elem + Huds.HElems.moveStartTime, GetLevelTime(CheckHost()));
PS3.Extension.WriteInt32(Elem + Huds.HElems.moveTime, (int)((double)(Time * 1000) + 0.5));
PS3.Extension.WriteFloat(Elem + Huds.HElems.xOffset, X);
PS3.Extension.WriteFloat(Elem + Huds.HElems.yOffset, Y);
}
public static void MoveOverTimeCustom(uint elemIndex, int Time, float X, float Y, float NewX, float NewY)
{
uint Elem = 0xF0E10C + ((elemIndex) * 0xB4);
PS3.Extension.WriteInt32(Elem + Huds.HElems.fromAlignOrg, PS3.Extension.ReadInt32(Elem + Huds.HElems.fromAlignScreen));
PS3.Extension.WriteInt32(Elem + Huds.HElems.fromAlignScreen, PS3.Extension.ReadInt32(Elem + Huds.HElems.fromAlignOrg));
PS3.Extension.WriteFloat(Elem + Huds.HElems.fromY, X);
PS3.Extension.WriteFloat(Elem + Huds.HElems.fromX, Y);
PS3.Extension.WriteInt32(Elem + Huds.HElems.moveStartTime, GetLevelTime(CheckHost()));
PS3.Extension.WriteInt32(Elem + Huds.HElems.moveTime, (int)((double)(Time * 1000) + 0.5));
PS3.Extension.WriteFloat(Elem + Huds.HElems.xOffset, NewX);
PS3.Extension.WriteFloat(Elem + Huds.HElems.yOffset, NewY);
}
public static void ScaleOverTime(uint elemIndex, int Time, int Width, int Height)
{
uint Elem = 0xF0E10C + ((elemIndex) * 0xB4);
byte[] buffer = new byte[4];
PS3.GetMemory(Elem + Huds.HElems.widthOffset, buffer);
byte[] buffer2 = new byte[4];
PS3.GetMemory(Elem + Huds.HElems.heightOffset, buffer2);
PS3.Extension.WriteInt32(Elem + Huds.HElems.scaleStartTime, GetLevelTime(CheckHost()));
PS3.Extension.WriteInt32(Elem + Huds.HElems.fromHeight, PS3.Extension.ReadInt32(Elem + Huds.HElems.widthOffset));
PS3.Extension.WriteInt32(Elem + Huds.HElems.fromWidth, PS3.Extension.ReadInt32(Elem + Huds.HElems.heightOffset));
PS3.Extension.WriteInt32(Elem + Huds.HElems.widthOffset, Width);
PS3.Extension.WriteInt32(Elem + Huds.HElems.heightOffset, Height);
PS3.Extension.WriteInt32(Elem + Huds.HElems.scaleTime, (int)((double)(Time * 1000) + 0.5));
}
public static void ScaleOverTimeCustom(uint elemIndex, int Time, int Width, int Height, int NewWidth, int NewHeight)
{
uint Elem = 0xF0E10C + ((elemIndex) * 0xB4);
byte[] buffer = new byte[4];
PS3.GetMemory(Elem + Huds.HElems.widthOffset, buffer);
byte[] buffer2 = new byte[4];
PS3.GetMemory(Elem + Huds.HElems.heightOffset, buffer2);
PS3.Extension.WriteInt32(Elem + Huds.HElems.scaleStartTime, GetLevelTime(CheckHost()));
PS3.Extension.WriteInt32(Elem + Huds.HElems.fromHeight, Width);
PS3.Extension.WriteInt32(Elem + Huds.HElems.fromWidth, Height);
PS3.Extension.WriteInt32(Elem + Huds.HElems.widthOffset, NewWidth);
PS3.Extension.WriteInt32(Elem + Huds.HElems.heightOffset, NewHeight);
PS3.Extension.WriteInt32(Elem + Huds.HElems.scaleTime, (int)((double)(Time * 1000) + 0.5));
}

static int GetLevelTime(uint clientIndex)
{
byte[] buffer = new byte[4];
PS3.GetMemory(0x0110a280 + (clientIndex * 0x3980), buffer);
return BitConverter.ToInt32(ReverseBytes(buffer), 0);
}
public static uint CheckHost()
{
byte[] buffer = new byte[16];
PS3.GetMemory(0x01BBBC2C, buffer);
string myname = ByteArrayToString(buffer);
for (uint i = 0; i < 18; i++)
{
if (myname == GetNames(i))
{
return i;
}
}
return 0;
}
public static string GetNames(uint clientIndex)
{
byte[] nameb = new byte[16];
PS3.GetMemory(0x110a280 + (clientIndex * 0x3980) + 0x338C, nameb);
return ByteArrayToString(nameb).Replace(Convert.ToChar(0x00).ToString(), string.Empty);
}
}


Credits mainly to seb5594for the full HUD Structure and the original MoveOverTime funcs and stuff from GhostsSmile
iMCSx for PS3Lib


So many errors, such wow
01-04-2014, 02:23 AM #6
Source Code
Bounty hunter
Originally posted by Malicious View Post
I will be releasing my functions for MoveOverTime, MoveOverTimeCustom, ScaleOverTime, and ScaleOverTime custom.


errrrm.. Needa
01-04-2014, 02:25 AM #7
$ticky
Banned
Originally posted by Source
errrrm.. Needa


I made them work on MW3 seb's are from Ghosts :P
01-04-2014, 02:25 AM #8
$ticky
Banned
Originally posted by Corey View Post
So many errors, such wow


Fixed Smile
01-04-2014, 02:28 AM #9
Originally posted by Malicious View Post
I made them work on MW3 seb's are from Ghosts :P

It's not that hard to copy and paste and change a few things out...
01-04-2014, 02:43 AM #10
Originally posted by Malicious View Post
Hey guys I was wondering around the MW3 thread today and came across xRevolutions release of Typewriter text and notice he released full struct with it, so today I will be releasing my functions for MoveOverTime, MoveOverTimeCustom, ScaleOverTime, and ScaleOverTime custom. These functions are used for moving and resizing the you HUD elements without any lag. Because these functions involve level time it eliminates all lag accompanied!

I used PS3Lib to make these functions!

    
public class Huds
{
public class HElems
{
public static uint
xOffset = 0x08,
yOffset = 0x04,
textOffset = 0x84,
fontOffset = 0x24,
fontSizeOffset = 0x14,
colorOffset = 0x30,
relativeOffset = 0x2c,
widthOffset = 0x44,
heightOffset = 0x48,
shaderOffset = 0x4c,
GlowColor = 0x8C,
alignOffset = 0x2C,
fadeStartTime = 0x38,
fadeTime = 0x3c,
label = 0x40,
clientOffset = 0xA8,
fromWidth = 0x50,
fromHeight = 0x54,
scaleStartTime = 0x58,
scaleTime = 0x5c,
fromX = 0x60,
fromY = 0x64,
fromAlignOrg = 0x68,
fromAlignScreen = 0x6c,
moveStartTime = 0x70,
moveTime = 0x74,
time = 0x78,
duration = 0x7c,
value = 0x80,
sort = 0x88,
fxBirthTime = 0x90,
fxLetterTime = 0x94,
fxDecayStartTime = 0x98,
fxDecayDuration = 0x9c,
soundID = 0xa0,
flags = 0xa4;
}
public static string ByteArrayToString(byte[] bytes)
{
System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding();
return enc.GetString(bytes);
}
public static byte[] ReverseBytes(byte[] inArray) { Array.Reverse(inArray); return inArray; }
public static void MoveOverTime(uint elemIndex, int Time, float X, float Y)
{
uint Elem = 0xF0E10C + ((elemIndex) * 0xB4);
PS3.Extension.WriteInt32(Elem + Huds.HElems.fromAlignOrg, PS3.Extension.ReadInt32(Elem + Huds.HElems.fromAlignScreen));
PS3.Extension.WriteInt32(Elem + Huds.HElems.fromAlignScreen, PS3.Extension.ReadInt32(Elem + Huds.HElems.fromAlignOrg));
PS3.Extension.WriteFloat(Elem + Huds.HElems.fromY, PS3.Extension.ReadFloat(Elem + Huds.HElems.yOffset));
PS3.Extension.WriteFloat(Elem + Huds.HElems.fromX, PS3.Extension.ReadFloat(Elem + Huds.HElems.xOffset));
PS3.Extension.WriteInt32(Elem + Huds.HElems.moveStartTime, GetLevelTime(CheckHost()));
PS3.Extension.WriteInt32(Elem + Huds.HElems.moveTime, (int)((double)(Time * 1000) + 0.5));
PS3.Extension.WriteFloat(Elem + Huds.HElems.xOffset, X);
PS3.Extension.WriteFloat(Elem + Huds.HElems.yOffset, Y);
}
public static void MoveOverTimeCustom(uint elemIndex, int Time, float X, float Y, float NewX, float NewY)
{
uint Elem = 0xF0E10C + ((elemIndex) * 0xB4);
PS3.Extension.WriteInt32(Elem + Huds.HElems.fromAlignOrg, PS3.Extension.ReadInt32(Elem + Huds.HElems.fromAlignScreen));
PS3.Extension.WriteInt32(Elem + Huds.HElems.fromAlignScreen, PS3.Extension.ReadInt32(Elem + Huds.HElems.fromAlignOrg));
PS3.Extension.WriteFloat(Elem + Huds.HElems.fromY, X);
PS3.Extension.WriteFloat(Elem + Huds.HElems.fromX, Y);
PS3.Extension.WriteInt32(Elem + Huds.HElems.moveStartTime, GetLevelTime(CheckHost()));
PS3.Extension.WriteInt32(Elem + Huds.HElems.moveTime, (int)((double)(Time * 1000) + 0.5));
PS3.Extension.WriteFloat(Elem + Huds.HElems.xOffset, NewX);
PS3.Extension.WriteFloat(Elem + Huds.HElems.yOffset, NewY);
}
public static void ScaleOverTime(uint elemIndex, int Time, int Width, int Height)
{
uint Elem = 0xF0E10C + ((elemIndex) * 0xB4);
byte[] buffer = new byte[4];
PS3.GetMemory(Elem + Huds.HElems.widthOffset, buffer);
byte[] buffer2 = new byte[4];
PS3.GetMemory(Elem + Huds.HElems.heightOffset, buffer2);
PS3.Extension.WriteInt32(Elem + Huds.HElems.scaleStartTime, GetLevelTime(CheckHost()));
PS3.Extension.WriteInt32(Elem + Huds.HElems.fromHeight, PS3.Extension.ReadInt32(Elem + Huds.HElems.widthOffset));
PS3.Extension.WriteInt32(Elem + Huds.HElems.fromWidth, PS3.Extension.ReadInt32(Elem + Huds.HElems.heightOffset));
PS3.Extension.WriteInt32(Elem + Huds.HElems.widthOffset, Width);
PS3.Extension.WriteInt32(Elem + Huds.HElems.heightOffset, Height);
PS3.Extension.WriteInt32(Elem + Huds.HElems.scaleTime, (int)((double)(Time * 1000) + 0.5));
}
public static void ScaleOverTimeCustom(uint elemIndex, int Time, int Width, int Height, int NewWidth, int NewHeight)
{
uint Elem = 0xF0E10C + ((elemIndex) * 0xB4);
byte[] buffer = new byte[4];
PS3.GetMemory(Elem + Huds.HElems.widthOffset, buffer);
byte[] buffer2 = new byte[4];
PS3.GetMemory(Elem + Huds.HElems.heightOffset, buffer2);
PS3.Extension.WriteInt32(Elem + Huds.HElems.scaleStartTime, GetLevelTime(CheckHost()));
PS3.Extension.WriteInt32(Elem + Huds.HElems.fromHeight, Width);
PS3.Extension.WriteInt32(Elem + Huds.HElems.fromWidth, Height);
PS3.Extension.WriteInt32(Elem + Huds.HElems.widthOffset, NewWidth);
PS3.Extension.WriteInt32(Elem + Huds.HElems.heightOffset, NewHeight);
PS3.Extension.WriteInt32(Elem + Huds.HElems.scaleTime, (int)((double)(Time * 1000) + 0.5));
}

static int GetLevelTime(uint clientIndex)
{
byte[] buffer = new byte[4];
PS3.GetMemory(0x0110a280 + (clientIndex * 0x3980), buffer);
return BitConverter.ToInt32(ReverseBytes(buffer), 0);
}
public static uint CheckHost()
{
byte[] buffer = new byte[16];
PS3.GetMemory(0x01BBBC2C, buffer);
string myname = ByteArrayToString(buffer);
for (uint i = 0; i < 18; i++)
{
if (myname == GetNames(i))
{
return i;
}
}
return 0;
}
public static string GetNames(uint clientIndex)
{
byte[] nameb = new byte[16];
PS3.GetMemory(0x110a280 + (clientIndex * 0x3980) + 0x338C, nameb);
return ByteArrayToString(nameb).Replace(Convert.ToChar(0x00).ToString(), string.Empty);
}
}


Credits mainly to seb5594for the full HUD Structure and the original MoveOverTime funcs and stuff from GhostsSmile
iMCSx for PS3Lib


Yo dog I heard you like broken functions so I gave you some of stickies

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo