Results 1 to 4 of 4
  1. #1
    J's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    East Coast
    Posts
    2,159
    Reputation
    379
    Thanks
    5,760
    My Mood
    In Love

    CharacterFX player index different from PlayerInfo index?

    How come for some of the players, the CharacterFX index is different from the same player's PlayerInfo index. Heres and example log:

    Code:
    Lizardbeotch 	info[0, 0x148D0C28] fx[4, 0x14BB6610]
    pinocchiosnz 	info[1, 0x14A00B58] fx[1, 0x149EFD98]
    SGT-NUMBNUTS 	info[2, 0x14A00E68] fx[2, 0x149F05D0]
    _soldiers_ 	info[3, 0x14A01178] fx[5, 0x149F0E08]
    spritedwolf 	info[4, 0x14A00848] fx[7, 0x149F1640]
    ghostdaniels 	info[5, 0x14A01488] fx[9, 0x149F1E78]
    starwarg 	info[6, 0x14A026E8] fx[10, 0x149F26B0]
    narch0s 	info[7, 0x14A01798] fx[11, 0x149F2EE8]
    MrMerfin 	info[8, 0x14A03728] fx[13, 0x149F3720]
    monteyno 	info[9, 0x14A01AA8] fx[6, 0x149F3F58]
    sccaz 		info[10, 0x14A01DB8] fx[12, 0x149F4790]
    P-Apl-Expres 	info[11, 0x14A020C8] fx[14, 0x149F4FC8]
    OFH_RedSkull 	info[12, 0x14A029F8] fx[15, 0x149F8230]
    MrsBubblegum 	info[13, 0x14A023D8] fx[0, 0x149F9F80]
    chromedge 	info[14, 0x14A02D08] fx[3, 0x149FA7B8]
    ironoliver 	info[15, 0x14A03018] fx[8, 0x14A00010]
    Here is the code i am using TO log this:

    Code:
    for(int i = 0; i < 16; ++i) {
    	cPlayerInfo* localinfo = GetLocalPlayer();
    	cPlayerInfo* playerinfo = GetPlayerByIndex(i);
    	cCharacterFX* playerfx = (cCharacterFX*)pSFXMgr->SFXList[0x18].List[i];
    
    	if(!localinfo || !playerinfo || !playerfx)
    		continue;
    
    	if(!playerfx->isPlayer)
    		continue;
    
    	Tools::log("%s info[%i, 0x%X] fx[%i, 0x%X]", playerinfo->name, playerinfo->index, playerinfo, playerfx->index, playerfx);
    }

  2. The Following User Says Thank You to J For This Useful Post:

    pDevice (11-14-2013)

  3. #2
    Acea's Avatar
    Join Date
    Oct 2012
    Gender
    female
    Location
    Home of the elks
    Posts
    346
    Reputation
    80
    Thanks
    2,204
    My Mood
    Stressed
    Quote Originally Posted by J View Post
    How come for some of the players, the CharacterFX index is different from the same player's PlayerInfo index. Heres and example log:

    Code:
    Lizardbeotch 	info[0, 0x148D0C28] fx[4, 0x14BB6610]
    pinocchiosnz 	info[1, 0x14A00B58] fx[1, 0x149EFD98]
    SGT-NUMBNUTS 	info[2, 0x14A00E68] fx[2, 0x149F05D0]
    _soldiers_ 	info[3, 0x14A01178] fx[5, 0x149F0E08]
    spritedwolf 	info[4, 0x14A00848] fx[7, 0x149F1640]
    ghostdaniels 	info[5, 0x14A01488] fx[9, 0x149F1E78]
    starwarg 	info[6, 0x14A026E8] fx[10, 0x149F26B0]
    narch0s 	info[7, 0x14A01798] fx[11, 0x149F2EE8]
    MrMerfin 	info[8, 0x14A03728] fx[13, 0x149F3720]
    monteyno 	info[9, 0x14A01AA8] fx[6, 0x149F3F58]
    sccaz 		info[10, 0x14A01DB8] fx[12, 0x149F4790]
    P-Apl-Expres 	info[11, 0x14A020C8] fx[14, 0x149F4FC8]
    OFH_RedSkull 	info[12, 0x14A029F8] fx[15, 0x149F8230]
    MrsBubblegum 	info[13, 0x14A023D8] fx[0, 0x149F9F80]
    chromedge 	info[14, 0x14A02D08] fx[3, 0x149FA7B8]
    ironoliver 	info[15, 0x14A03018] fx[8, 0x14A00010]
    Here is the code i am using TO log this:

    Code:
    for(int i = 0; i < 16; ++i) {
    	cPlayerInfo* localinfo = GetLocalPlayer();
    	cPlayerInfo* playerinfo = GetPlayerByIndex(i);
    	cCharacterFX* playerfx = (cCharacterFX*)pSFXMgr->SFXList[0x18].List[i];
    
    	if(!localinfo || !playerinfo || !playerfx)
    		continue;
    
    	if(!playerfx->isPlayer)
    		continue;
    
    	Tools::log("%s info[%i, 0x%X] fx[%i, 0x%X]", playerinfo->name, playerinfo->index, playerinfo, playerfx->index, playerfx);
    }
    One's about when they joined the room, one's about the systematic order of the roster

  4. #3
    Ch40zz-C0d3r's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    839
    Reputation
    44
    Thanks
    400
    My Mood
    Twisted
    What about using reclass and watch yourself whats going on?
    Probably just a double pointer redirection xD
    However, who really cares about something like this? I mean the game is fucked anyway^^

    Progress with my game - "Disbanded"
    • Fixed FPS lag on spawning entities due to the ent_preload buffer!
    • Edit the AI code to get some better pathfinding
    • Fixed the view bug within the sniper scope view. The mirror entity is invisible now!
    • Added a new silencer for ALL weapons. Also fixed the rotation bugs
    • Added a ton of new weapons and the choice to choose a silencer for every weapon
    • Created a simple AntiCheat, noobs will cry like hell xD
    • The name will be Disbanded, the alpha starts on the 18th august 2014



    Some new physics fun (Serversided, works on every client)



    My new AI
    http://www.youtube.com/watch?v=EMSB1GbBVl8

    And for sure my 8 months old gameplay with 2 friends
    http://www.youtube.com/watch?v=Na2kUdu4d_k

  5. #4
    J's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    East Coast
    Posts
    2,159
    Reputation
    379
    Thanks
    5,760
    My Mood
    In Love
    Quote Originally Posted by Acea View Post
    One's about when they joined the room, one's about the systematic order of the roster
    EDIT: Fixed by using a make-shift function to test playerfx->index against index of the loop. /close pls
    Last edited by J; 11-14-2013 at 05:00 PM.

Similar Threads

  1. Files different from server
    By BMW_M3_GTR in forum Call of Duty Modern Warfare 2 Help
    Replies: 1
    Last Post: 12-10-2010, 12:00 PM
  2. [SOLVED] Files different from server
    By JosHSL14 in forum Call of Duty Modern Warfare 2 Help
    Replies: 21
    Last Post: 10-21-2010, 11:58 PM
  3. iw_07.iwd DIFFERENT FROM SERVER!
    By rovald in forum Call of Duty Modern Warfare 2 Help
    Replies: 26
    Last Post: 07-21-2010, 11:14 PM
  4. Files different from server
    By powner in forum Call of Duty Modern Warfare 2 Help
    Replies: 2
    Last Post: 01-29-2010, 03:17 AM
  5. ItemShop Hex Different From p to p what next?
    By khaid in forum WarRock - International Hacks
    Replies: 10
    Last Post: 07-26-2007, 12:58 AM