
Originally Posted by
ComboDance
this is source weapon Teleport?
void GetVa()
{
if(readyteleport)
{
if( *(DWORD *)(hShell + GUNBASE) )
{
MyObject = *(_Object **)(*(DWORD *)(hShell + GUNBASE) + 0x144); //CurentObject
*(D3DXVECTOR3 *)(WeaponObject) = GetBonePosition(MyObject,6);
}
}
}
__declspec( naked ) VOID WINAPI WeaponTeleport()
{
_asm PUSHAD;
_asm mov WeaponObject,edx;
_asm call GetVa;
_asm POPAD;
_asm MOV EDX,DWORD PTR SS:[ESP+0xA4];
_asm PUSH ESI;
_asm PUSH EDX;
_asm MOV ECX,EAX;
_asm jmp BackHook;
}
Code:
void HookWeaponDROP()
{
do
{
hShell = hShellModule();
}while(!hShell);
if(!hookweapondrop)
{
DWORD WeaponHook = FindPattern(hShell, 0xFFFFFF, (PBYTE)"\xE8\x00\x00\x00\x00\x8B\xF8\xEB\x02\x33\x FF\x6A\x00\x57\xC7\x84\x24", "x????xxxxxxx?xxxx");
BackHook = WeaponHook;
hookweapondrop = true;
}
}
BUt i don't know how to Put and combine source it.
can you give me example full source weapon teleport ?
no problem if source was patched.
i just try to make it.
sory bad english