- Joined
- Oct 29, 2007
- Messages
- 1,288
- Reaction score
- 1,308
Hello for all, in this ocassion I like share this small decompilation work from glow color effect on main.exe and with new information about this.. and anothers effects
Download Full Source (must have: Visual Studio 2015 + Visual ToolKit 2010) for Compile:
View attachment Glow Source.rar
Credits: Nemesis (Me).
Code:
#include "Stdafx.h"
void gObjItemGlowEx(int ObjectId, float Arg2, float Arg3, [B][COLOR=#33cc99]vec3_t[/COLOR][/B] Color, bool Mode)
{
switch (ObjectId)
{
case ObjectId(0, 14): // Lightning Sword
{
[B][COLOR=#ff00cc]Vector[/COLOR][/B](0.52f, 0.51f, 0.50f, Color);
}
break;
default:
{
gObjItemGlow(ObjectId, Arg2, Arg3, Color, Mode);
}
break;
}
}
void InitGlow()
{
SetHook((LPVOID)gObjItemGlowEx, (LPVOID)0x004F9E1B, ASM::CALL);
SetHook((LPVOID)gObjItemGlowEx, (LPVOID)0x005CD032, ASM::CALL);
}
Code:
#ifndef __GLOW_H__
#define __GLOW_H__
#define ItemId(x, y) ((x * 512) + y)
#define ObjectId(x, y) ((x * 512) + y + [COLOR=#ff0000]834[/COLOR]) [COLOR=#ff0000]-> 834 is: 0x342 or Item offset in array from: 1.03K[/COLOR]
#define gObjItemGlow ((void(__cdecl*)(int ObjectId, float Arg2, float Arg3, vec3_t Color, bool Mode)) 0x005C2744)
void InitGlow();
#endif
Download Full Source (must have: Visual Studio 2015 + Visual ToolKit 2010) for Compile:
View attachment Glow Source.rar
Credits: Nemesis (Me).
Attachments
You must be registered for see attachments list