Hey ,, I wanted to share something small with You
It's not a really good function but i wanted to share it
BTW My English is really bad ,, and i know that !
[ #NanoCharacter Manager ]
[ #Pattern ]
Code:
DWORD FPNanoCharMgr = FindPattern((DWORD)CShell, 0xFFFFFF, (PBYTE)"\x50\xFF\xD7\x8B\x0D\x00\x00\x00\x00\x83\xC4\x04\x89\x44\x29\x1C\x8B\x4C\x24\x30", "xxxxx????xxxxxxxxxxx");
if(FPNanoCharMgr!=NULL){
NanoCharMgr = *(DWORD*)(FPNanoCharMgr + 5);
NanoCharMgr -= CShell;
}
[ #Class ]
Code:
class NanoCharacter
{
public:
__int32 NanoType; //0x0000
__int32 NanoAbility; //0x0004
__int32 NanoSkill; //0x0008
__int32 NanoAddHp; //0x000C
__int32 NanoDefaultWepIndex; //0x0010
__int32 NanoDefaultWepInvisible; //0x0014
__int32 NanoSpecialWepIndex; //0x0018
__int32 NanoSpecialWepInvisible; //0x001C
__int32 NanoSkillWepIndex; //0x0020
__int32 NextLevelNanoType; //0x0024
char ModelFileName[81]; //0x0028
char ChildModelFile[81]; //0x0079
char RenderStyleFile[81]; //0x00CA
char RenderStyleFile_1[81]; //0x011B
char RenderStyleFile_2[81]; //0x016C
char RenderStyleFile_3[81]; //0x01BD
char RenderStyleFile_4[81]; //0x020E
char SkinFileName[81]; //0x025F
char SkinFileName1[81]; //0x02B0
char SkinFileName2[81]; //0x0301
char SocketModelFile1[81]; //0x0352
char SocketModelFile2[81]; //0x03A3
char SocketSkinFile1[81]; //0x03F4
char SocketSkinFile2[81]; //0x0445
char PvHandSkinFile[81]; //0x0496
char PvArmSkinFile[81]; //0x04E7
char AtkEffectName[84]; //0x0538
float ModelScale; //0x058C
float NormalDmg; //0x0590
float BigShotDmg; //0x0594
};//Size=0x0598
[ #Change Function ]
Code:
void NanoCharacterChange(int cid, int targetid){
DWORD pNanoCharacterMgr=(*(DWORD*)(CShell + NanoCharMgr));
memcpy((void*)(pNanoCharacterMgr + (0x0598*cid) + 0x4),(void*)(pNanoCharacterMgr + (0x0598*targetid) + 0x4),0x0598-0x4);
}
[ #Data ]
[ #Screen(s) ]
[IMG]https://i1332.photobucke*****m/albums/w607/DarkPLadin/Crossfire20131116_0003_zps8a139591.png[/IMG]
[IMG]https://i1332.photobucke*****m/albums/w607/DarkPLadin/Crossfire20131118_0000_zps5c374e38.png[/IMG]
[ #Bonus ]
U Can Use It To Make CHAMS !!
Change The Texture To Any Color ! ,, i don't know the textures in cf that contain color ,, so i use this 2 Txtures
#1 : "ModelTextures/PlayerView/pv-AWM-Blue Crystal.dtx" // AWM BLUE CRYSTAL = BLUE
#2 : "ModelTextures/PlayerView/PV-M14EBR_RedCrystal.DTX" // M14Ebr Red Crystal = RED
I didn't test it for mutant but i tried with the normal characters and it works !!
Code:
DWORD pNanoCharacterMgr=(*(DWORD*)(CShell + NanoCharMgr));
if(NanoCharacterCH){
NanoCharacter* Character = (NanoCharacter*)(pNanoCharacterMgr + (0x598*id));
if(Character){
memcpy((Character->SkinFileName),"ModelTextures/PlayerView/pv-AWM-Blue Crystal.dtx", 81); //Blue
// Or
memcpy((Character->SkinFileName),"ModelTextures\PlayerView\PV-M14EBR_RedCrystal.DTX", 81); //Red
}
}
[ #Credits ]
@I2espect // Enjoy @DrUnKeN ChEeTaH