ah, i have seen source Wingbright somewhere you using that, right?
ah, i have seen source Wingbright somewhere you using that, right?
Last edited by allexander; 14-09-18 at 08:25 PM. Reason: Refrain from moving / bringing topics off the board. Rule 27 http://forum.ragezone.com/f71/forum-rules-101410/
Last edited by allexander; 14-09-18 at 08:25 PM. Reason: Refrain from moving / bringing topics off the board. Rule 27 http://forum.ragezone.com/f71/forum-rules-101410/
That is right, what is more weird is another character moving will see the effect even if the character wearing the wing is not moving.
Dirty trick (104d main): Insert this before the offset 0x00566692, now you will have new parameter (10th) that you can use as move flag.
MOV EAX, DWORD PTR SS : [EBP + 0x14]
MOV DL, BYTE PTR DS : [EAX + 120]
PUSH EDX
for main 1.04.05
Code:void CEffect::SetItemEffect(ObjectPreview * lpObj, ObjectModel* lpModel, int ItemID, Vec3D * vColor, float Alpha, int ItemLevel, int NewOption, int SetOption, int Select, int RenderType);Code:if (lpObj && lpObj->IsMoving) { ... }Code:__declspec(naked) void _hSetItemEffect() { static DWORD Address1 = 0x005666C9; _asm { Mov Ecx, Dword Ptr Ss:[Ebp+0x30] Or Ecx, Dword Ptr Ss:[Ebp-0x528] Push Ecx Push 0x0 Push 0x0 Mov Edx, Dword Ptr Ss:[Ebp+0x24] Push Edx Mov Eax, Dword Ptr Ss:[Ebp+0x20] Shl Eax,0x3 Push Eax Mov Ecx, Dword Ptr Ss:[Ebp-0x70] Push Ecx Fld Dword Ptr Ds:[Ecx+0x98] Fstp Dword Ptr Ss:[Esp] Mov Edx, Dword Ptr Ss:[Ebp+0x14] Add Edx,0x0DC Push Edx Mov Eax, Dword Ptr Ss:[Ebp+0x1C] Push Eax Mov Ecx, Dword Ptr Ss:[Ebp-0x6C] Push Ecx Mov Edx, Dword Ptr Ss:[Ebp+0x14] Push Edx Lea Eax, gEffect Call [CEffect::SetItemEffect] Jmp Address1 } }Code:SetCompleteHook(0xE9, 0x00566689, &_hSetItemEffect);
share in main 1.05.30