is there a link to the app that lets you dev cam with both teams names showing?
Not really no. Redid it :O
Code:004ADAA0 |> /8B4C24 18 /MOV ECX,DWORD PTR SS:[ESP+18] 004ADAA4 |. |3BF1 |CMP ESI,ECX ; //Draw if it is not me 004ADAA6 |. |74 10 |JE SHORT haloce.004ADAB8 004ADAA8 |. |3B68 20 |CMP EBP,DWORD PTR DS:[EAX+20] ; //Draw if on my team *ke* 004ADAAB |. |75 0B |JNZ SHORT haloce.004ADAB8 ; 004ADAAD |. |8378 34 FF |CMP DWORD PTR DS:[EAX+34],-1 ; //no fucking idea tbh 0x16 bytes after team index 004ADAB1 |. |74 05 |JE SHORT haloce.004ADAB8 004ADAB3 |. |894C9C 20 |MOV DWORD PTRSo I guess yeah. That call draws the player names above their heads...and can you tell me what that constant is?Code:004AD8F7 |. 68 60A46000 PUSH haloce.0060A460 ; ASCII "ui\gamespy" 004AD8FC BF 746E6F66 MOV EDI,666F6E74 //? 004AD901 66:C74424 34 >MOV WORD PTR SS:[ESP+34],0 004AD908 |. 66:895424 4A MOV WORD PTR SS:[ESP+4A],DX 004AD90D E8 7E50F9FF CALL haloce.00442990
Last edited by CrAsHOvErRide; September 29th, 2009 at 10:46 AM.
EAX+34h is the SlaveUnitIndex aka ObjectIndex to the players(biped) unit cache structure. -1 = NONE, so it's making sure that player is spawned in the game.
That constant is 'font' TagGroup in ASCII and that is not the draw function. The draw function seems to be the last function in this one. It is the only one that has calls to all these d3d device functions: SetTexture, SetRenderState, SetVertexDeclaration, SetSoftwareVertexProcessing, SetVertexShader, SetPixelShader, SetVertexShaderConstantF, SetSamplerState, SetTextureStageState. Plus the last parameter loaded into ECX looks like a stack pointer to screen space coordinates(signed shorts). That's just what I think, I could be wrong. I'm still at the top of the function, but slowly reversing it to C++. Want to help me figure this out? We will get atleast 2 epic things out of this: drawtext with sexy font, which we can use any font tag and engine w2s.
Last edited by Skarma; September 29th, 2009 at 12:50 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks