[ASM] Grenade exploding timer

Results 1 to 4 of 4
  1. #1
    Mocro.net Mocro is offline
    MemberRank
    Feb 2008 Join Date
    Amsterdam.Location
    891Posts

    information [ASM] Grenade exploding timer

    I found this from 2004 gunz.exe can someone tell me where to change number of timer or wat to jmp to make the grenade explode faster

    Code:
    004A7CD0 > . 83EC 18        SUB ESP,18
    004A7CD3   . D905 6CEC6600  FLD DWORD PTR DS:[RealSpace2::RCameraDir>
    004A7CD9   . 56             PUSH ESI
    004A7CDA   . 8BF1           MOV ESI,ECX
    004A7CDC   . D9E0           FCHS
    004A7CDE   . 8D46 28        LEA EAX,DWORD PTR DS:[ESI+28]
    004A7CE1   . D95C24 10      FSTP DWORD PTR SS:[ESP+10]
    004A7CE5   . 8B08           MOV ECX,DWORD PTR DS:[EAX]
    004A7CE7   . D905 70EC6600  FLD DWORD PTR DS:[66EC70]
    004A7CED   . 8B50 04        MOV EDX,DWORD PTR DS:[EAX+4]
    004A7CF0   . D9E0           FCHS
    004A7CF2   . 8B40 08        MOV EAX,DWORD PTR DS:[EAX+8]
    004A7CF5   . D95C24 14      FSTP DWORD PTR SS:[ESP+14]
    004A7CF9   . 894C24 04      MOV DWORD PTR SS:[ESP+4],ECX
    004A7CFD   . 8D4C24 10      LEA ECX,DWORD PTR SS:[ESP+10]
    004A7D01   . 895424 08      MOV DWORD PTR SS:[ESP+8],EDX
    004A7D05   . 51             PUSH ECX
    004A7D06   . 8D5424 08      LEA EDX,DWORD PTR SS:[ESP+8]
    004A7D0A   . 52             PUSH EDX
    004A7D0B   . 894424 14      MOV DWORD PTR SS:[ESP+14],EAX
    004A7D0F   . C74424 20 0000>MOV DWORD PTR SS:[ESP+20],0
    004A7D17   . E8 0474FFFF    CALL Gunz.ZGetEffectManager
    004A7D1C   . 8BC8           MOV ECX,EAX                              ; |
    004A7D1E   . E8 3D41FCFF    CALL Gunz.ZEffectManager::AddGrenadeEffe>; \ZEffectManager::AddGrenadeEffect
    004A7D23   . 8B46 18        MOV EAX,DWORD PTR DS:[ESI+18]
    004A7D26   . 8B4E 1C        MOV ECX,DWORD PTR DS:[ESI+1C]
    004A7D29   . 50             PUSH EAX
    004A7D2A   . 8B4424 08      MOV EAX,DWORD PTR SS:[ESP+8]
    004A7D2E   . 68 0000803F    PUSH 3F800000
    004A7D33   . 68 CDCC4C3E    PUSH 3E4CCCCD
    004A7D38   . 68 0000C843    PUSH 43C80000
    004A7D3D   . 51             PUSH ECX
    004A7D3E   . 8B4C24 1C      MOV ECX,DWORD PTR SS:[ESP+1C]
    004A7D42   . 83EC 0C        SUB ESP,0C
    004A7D45   . 8BD4           MOV EDX,ESP                              ; |
    004A7D47   . 8902           MOV DWORD PTR DS:[EDX],EAX               ; |
    004A7D49   . 8B4424 2C      MOV EAX,DWORD PTR SS:[ESP+2C]            ; |
    004A7D4D   . 894A 04        MOV DWORD PTR DS:[EDX+4],ECX             ; |
    004A7D50   . 8B4E 14        MOV ECX,DWORD PTR DS:[ESI+14]            ; |
    004A7D53   . 8942 08        MOV DWORD PTR DS:[EDX+8],EAX             ; |
    004A7D56   . 8B56 10        MOV EDX,DWORD PTR DS:[ESI+10]            ; |
    004A7D59   . 51             PUSH ECX                                 ; |Arg2
    004A7D5A   . 8B0D BC276400  MOV ECX,DWORD PTR DS:[g_pGame]           ; |
    004A7D60   . 52             PUSH EDX                                 ; |Arg1
    004A7D61   . E8 7AFEFEFF    CALL Gunz.ZGame::OnExplosionGrenade      ; \ZGame::OnExplosionGrenade
    004A7D66   . 6A 00          PUSH 0
    004A7D68   . 6A 00          PUSH 0
    004A7D6A   . 6A 00          PUSH 0
    004A7D6C   . 8D4424 10      LEA EAX,DWORD PTR SS:[ESP+10]
    004A7D70   . 50             PUSH EAX
    004A7D71   . 68 FC2D5D00    PUSH OFFSET Gunz.??_C@_0BF@BNGFJGDI@we_g>;  ASCII "we_grenade_explosion"
    004A7D76   . E8 E572FFFF    CALL Gunz.ZGetSoundEngine
    004A7D7B   . 8BC8           MOV ECX,EAX                              ; |
    004A7D7D   . E8 9E13FEFF    CALL Gunz.ZSoundEngine::PlaySoundA       ; \ZSoundEngine::PlaySoundA
    004A7D82   . E8 895DFEFF    CALL Gunz.ZApplication::GetInstance
    004A7D87   . 8B88 B0020000  MOV ECX,DWORD PTR DS:[EAX+2B0]
    004A7D8D   . 05 9C020000    ADD EAX,29C
    004A7D92   . 51             PUSH ECX
    004A7D93   . 8BC8           MOV ECX,EAX
    004A7D95   . E8 06DCFFFF    CALL Gunz.ZWorldManager::GetWorld
    004A7D9A   . 68 00803B45    PUSH 453B8000
    004A7D9F   . 8D5424 08      LEA EDX,DWORD PTR SS:[ESP+8]
    004A7DA3   . 52             PUSH EDX
    004A7DA4   . 8D48 1C        LEA ECX,DWORD PTR DS:[EAX+1C]
    004A7DA7   . E8 54520000    CALL Gunz.ZEmblemList::SetExplosion
    004A7DAC   . 5E             POP ESI
    004A7DAD   . 83C4 18        ADD ESP,18
    004A7DB0   . C3             RETN
    I have been looking for 2 hours now still dont get it ...


  2. #2
    Account Upgraded | Title Enabled! gsterv900 is offline
    MemberRank
    Jun 2009 Join Date
    573Posts

    Re: [ASM] Grenade exploding timer

    im not really good at asm and i looked at the code and couldent find it i may be off but the best i found was

    Code:
    004A7CD0 > . 83EC 18        SUB ESP,18
    004A7CD3   . D905 6CEC6600  FLD DWORD PTR DS:[RealSpace2::RCameraDir>
    004A7CD9   . 56             PUSH ESI
    004A7CDA   . 8BF1           MOV ESI,ECX
    004A7CDC   . D9E0           FCHS
    004A7CDE   . 8D46 28        LEA EAX,DWORD PTR DS:[ESI+28]
    004A7CE1   . D95C24 10      FSTP DWORD PTR SS:[ESP+10]
    004A7CE5   . 8B08           MOV ECX,DWORD PTR DS:[EAX]
    004A7CE7   . D905 70EC6600  FLD DWORD PTR DS:[66EC70]
    004A7CED   . 8B50 04        MOV EDX,DWORD PTR DS:[EAX+4]
    004A7CF0   . D9E0           FCHS
    004A7CF2   . 8B40 08        MOV EAX,DWORD PTR DS:[EAX+8]
    004A7CF5   . D95C24 14      FSTP DWORD PTR SS:[ESP+14]
    004A7CF9   . 894C24 04      MOV DWORD PTR SS:[ESP+4],ECX
    004A7CFD   . 8D4C24 10      LEA ECX,DWORD PTR SS:[ESP+10]
    004A7D01   . 895424 08      MOV DWORD PTR SS:[ESP+8],EDX
    004A7D05   . 51             PUSH ECX
    004A7D06   . 8D5424 08      LEA EDX,DWORD PTR SS:[ESP+8]
    004A7D0A   . 52             PUSH EDX
    004A7D0B   . 894424 14      MOV DWORD PTR SS:[ESP+14],EAX
    004A7D0F   . C74424 20 0000>MOV DWORD PTR SS:[ESP+20],0
    004A7D17   . E8 0474FFFF    CALL Gunz.ZGetEffectManager
    004A7D1C   . 8BC8           MOV ECX,EAX                              ; |
    i think its one of those because it should be before the effect gets called

  3. #3
    Mocro.net Mocro is offline
    MemberRank
    Feb 2008 Join Date
    Amsterdam.Location
    891Posts

    Re: [ASM] Grenade exploding timer

    I noticed that , but donno wat to edit. the only thing i could do is to trow the grenade and not make it explode but to make it faster didnt work

  4. #4
    2D > 3D Wucas is offline
    MemberRank
    Dec 2008 Join Date
    In your bed :3Location
    2,523Posts

    Re: [ASM] Grenade exploding timer

    I didn't really look at this, but if I assume correctly,
    Maiet would have called a timer elsewhere, do to the fact
    that there are 3 different types of grenades. Look for
    a call elsewhere, and find an area where you see a place
    for xxxx ms. o.o



Advertisement