ASM-Code:
itr_effect_fall proc mov eax,dword ptr ss:[esp+0Ch] mov eax,dword ptr ds:[eax+2Ch] cmp eax,7 je short no_injure cmp eax,8 je short fall cmp eax,9 je short change_team mov eax,dword ptr ds:[esi+edi*4+194h] jmp dword ptr [ef_r1] r3: jmp dword ptr [ef_r3] change_team: mov eax, dword ptr ss:[esp+4] mov eax, dword ptr ds:[esi+eax*4+194h] push ecx mov ecx, dword ptr ds:[eax+364h] mov eax,dword ptr ds:[esi+edi*4+194h] mov edx,dword ptr ds:[eax+368h] ; this line isn't needed, but i left it anyway mov dword ptr ds:[eax+364h],ecx pop ecx jmp dword ptr [ef_r2] no_injure: mov eax,dword ptr ds:[esi+edi*4+194h] mov edx,dword ptr ds:[eax+368h] cmp dword ptr ds:[edx+6F8h],3 je short r3 jmp dword ptr [ef_r2] fall: mov eax,dword ptr ds:[esi+edi*4+194h] mov edx,dword ptr ds:[eax+368h] cmp dword ptr ds:[edx+6F8h],3 je short r3 mov dword ptr ds:[eax+0B0h],50h jmp dword ptr [ef_r2] itr_effect_fall endp |
TheNave asked me to help him make an effect which changes the an enemies team to your team... So I did :D.
Just replace the itr_effect_fall thing in generic.inc with this one. When you use effect 9, and someone gets hit, it changes team.
Enjoy! report any bugs.
![[Image: doty7Xn.gif]](http://i.imgur.com/doty7Xn.gif)
10 ʏᴇᴀʀs sɪɴᴄᴇ ɪʀᴄ ɢᴏᴏᴅ.ɪ ᴡᴀʟᴋ ᴛʜʀᴏᴜɢʜ ᴛʜᴇ ᴇᴍᴘᴛʏ sᴛʀᴇᴇᴛs ᴛʀʏɪɴɢ ᴛᴏ ᴛʜɪɴᴋ ᴏғ sᴏᴍᴇᴛʜɪɴɢ ᴇʟsᴇ ʙᴜᴛ ᴍʏ ᴘᴀᴛʜ ᴀʟᴡᴀʏs ʟᴇᴀᴅs ᴛᴏ ᴛʜᴇ ɪʀᴄ. ɪ sᴛᴀʀᴇ ᴀᴛ ᴛʜᴇ sᴄʀᴇᴇɴ ғᴏʀ ʜᴏᴜʀs ᴀɴᴅ ᴛʀʏ ᴛᴏ sᴜᴍᴍᴏɴ ᴛʜᴇ ɢᴏᴏᴅ ɪʀᴄ. ɪ ᴡᴀᴛᴄʜ ᴏᴛʜᴇʀ ɪʀᴄ ᴄʜᴀɴɴᴇʟs ʙᴜᴛ ɪᴛ ɪs ɴᴏ ɢᴏᴏᴅ. ɪ ᴘᴇsᴛᴇʀ ᴢᴏʀᴛ ᴀɴᴅ ᴛʀʏ ᴛᴏ ʀᴇsɪsᴛ ʜɪs sᴇxɪɴᴇss ʙᴜᴛ ɪᴛ ɪs ᴀʟʟ ᴍᴇᴀɴɪɴɢʟᴇss. ᴛʜᴇ ᴇɴᴅ ɪs ɴᴇᴀʀ.ɪ ᴛʜᴇɴ ᴜsᴜᴀʟʟʏ ʀᴇᴀᴅ sᴏᴍᴇ ᴏʟᴅ ɪʀᴄ ʟᴏɢs ᴀɴᴅ ᴄʀʏ ᴍʏsᴇʟғ ᴛᴏ sʟᴇᴇᴘ.