Página 1 de 1

Quebrar motor ao pegar fogo

Enviado: 13 Jun 2018, 17:42
por Israel
Atualizado
  • Corrigido o carro não freando ao pegar fogo;
  • Corrigido o CJ não saindo do carro ao pegar fogo.

Um mod simples que faz o motor do carro parar de funcionar ao pegar fogo, afinal, não faz muito sentido o motor do carro estar pegando fogo e continuar funcionando perfeitamente. :peepo8:

Imagem

O mod foi feito com base num outro, feito pelo @HybridTheory, apenas refiz em asi.

Autores: Israel & HybridTheory
DOWNLOAD
SourceAbrir

Código: Selecionar tudo

#include "plugin.h"

uintptr_t _006A70F3 = 0x006A70F3;
uintptr_t _006A75FF = 0x006A75FF;

void __declspec(naked) SetEngineBroken_ON() {
    __asm {
        push 0
        mov ecx, esi

        mov eax, 0x0041BDD0
        call eax

        mov eax, [esi + 0x57C]
        jmp [_006A70F3]
    }
}

void __declspec(naked) SetEngineBroken_OFF() {
    __asm {
        push 1
        mov ecx, esi

        mov eax, 0x0041BDD0
        call eax

        mov [esi + 0x57C], edi
        jmp [_006A75FF]
    }
}

class Broke_Engine {
public:
    Broke_Engine() {
        injector::MakeJMP(0x006A70ED, SetEngineBroken_ON);
        injector::MakeJMP(0x006A75F9, SetEngineBroken_OFF);
    }
} _;

Re: Quebrar motor ao pegar fogo

Enviado: 05 Abr 2019, 17:23
por AVAST MX
O CJ não sai do carro quando ele para de funcionar...

Re: Quebrar motor ao pegar fogo

Enviado: 06 Abr 2019, 09:52
por Israel
Isso é coisa do jogo mesmo.

Re: Quebrar motor ao pegar fogo

Enviado: 25 Set 2019, 17:06
por Israel
Atualizado
  • Corrigido o carro do CJ não freando ao pegar fogo.

AVAST MX escreveu:
05 Abr 2019, 17:23
O CJ não sai do carro quando ele para de funcionar...
Corrigido.

Re: Quebrar motor ao pegar fogo

Enviado: 25 Set 2019, 21:11
por GTA_GamerZ
Israel escreveu:
13 Jun 2018, 17:42
Atualizado
  • Corrigido o carro do CJ não freando ao pegar fogo.

Um mod simples que faz o motor do carro parar de funcionar ao pegar fogo, afinal, não faz muito sentido o motor do carro estar pegando fogo e continuar funcionando perfeitamente. :peepo8:

Imagem

O mod foi feito com base num outro, feito pelo @HybridTheory, apenas refiz em asi.

Autores: Israel & HybridTheory
DOWNLOAD
SourceAbrir

Código: Selecionar tudo

#include "plugin.h"

uintptr_t _006A70F3 = 0x006A70F3;
uintptr_t _006A75FF = 0x006A75FF;

void __declspec(naked) SetEngineBroken_ON() {
    __asm {
        or byte ptr [esi + 428h + 5], 2
        mov eax, [esi + 428h]
        and eax, 0xEF
        or [esi + 428h], eax

        mov eax, 0x00B7CE6D

        cmp byte ptr [eax], 0
        jz back

        and byte ptr[esi + 428h + 5], 0xFD

    back:
        mov eax, [esi + 57Ch]
        jmp [_006A70F3]
    }
}

void __declspec(naked) SetEngineBroken_OFF() {
    __asm {
        and byte ptr [esi + 428h + 5], 0xFD

        mov [esi + 57Ch], edi
        jmp [_006A75FF]
    }
}

class Init{
public:
    Init() {
        injector::MakeJMP(0x006A70ED, SetEngineBroken_ON);
        injector::MakeJMP(0x006A75F9, SetEngineBroken_OFF);
    }
} _;
 
Junior Djjr must take this to Mixset now

Re: Quebrar motor ao pegar fogo

Enviado: 26 Set 2019, 14:24
por Junior_Djjr
Ainda não foi corrigido, continua igual.

Re: Quebrar motor ao pegar fogo

Enviado: 26 Set 2019, 14:50
por Israel
Junior_Djjr escreveu:
26 Set 2019, 14:24
Ainda não foi corrigido, continua igual.
Agora funciona melhor.

Re: Quebrar motor ao pegar fogo

Enviado: 26 Set 2019, 22:19
por GTA_GamerZ
It's a bug who makes me deactivate this feature. It's very bad to don't have possibility to exit the car when the car is at a low speed (it's a game script). So I think you must change this game script by creating a separate mod or including this line code without making incompatibilities with other mod. Ask Junior to help you.

Re: Quebrar motor ao pegar fogo

Enviado: 26 Set 2019, 22:30
por Israel
GTA_GamerZ escreveu:
26 Set 2019, 22:19
It's a bug who makes me deactivate this feature. It's very bad to don't have possibility to exit the car when the car is at a low speed (it's a game script). So I think you must change this game script by creating a separate mod or including this line code without making incompatibilities with other mod. Ask Junior to help you.
did you download again after the fix?

Re: Quebrar motor ao pegar fogo

Enviado: 26 Set 2019, 22:36
por GTA_GamerZ
Israel escreveu:
26 Set 2019, 22:30
GTA_GamerZ escreveu:
26 Set 2019, 22:19
It's a bug who makes me deactivate this feature. It's very bad to don't have possibility to exit the car when the car is at a low speed (it's a game script). So I think you must change this game script by creating a separate mod or including this line code without making incompatibilities with other mod. Ask Junior to help you.
did you download again after the fix? 
Yes, but I didn't install it yet seen that it includes in Mixsets V4 (what I'm using now). So I want the fix to be includes in this mixsets. But just for you, I'm going to test your mod if it's fixed.

Re: Quebrar motor ao pegar fogo

Enviado: 26 Set 2019, 23:23
por GTA_GamerZ
Israel escreveu:
13 Jun 2018, 17:42
Atualizado
  • Corrigido o carro não freando ao pegar fogo;
  • Corrigido o CJ não saindo do carro ao pegar fogo.

Um mod simples que faz o motor do carro parar de funcionar ao pegar fogo, afinal, não faz muito sentido o motor do carro estar pegando fogo e continuar funcionando perfeitamente. :peepo8:

Imagem

O mod foi feito com base num outro, feito pelo @HybridTheory, apenas refiz em asi.

Autores: Israel & HybridTheory
DOWNLOAD
SourceAbrir

Código: Selecionar tudo

#include "plugin.h"

uintptr_t _006A70F3 = 0x006A70F3;
uintptr_t _006A75FF = 0x006A75FF;

void __declspec(naked) SetEngineBroken_ON() {
    __asm {
        push 0
        mov ecx, esi

        mov eax, 0x0041BDD0
        call eax

        mov eax, [esi + 0x57C]
        jmp [_006A70F3]
    }
}

void __declspec(naked) SetEngineBroken_OFF() {
    __asm {
        push 1
        mov ecx, esi

        mov eax, 0x0041BDD0
        call eax

        mov [esi + 0x57C], edi
        jmp [_006A75FF]
    }
}

class Broke_Engine {
public:
    Broke_Engine() {
        injector::MakeJMP(0x006A70ED, SetEngineBroken_ON);
        injector::MakeJMP(0x006A75F9, SetEngineBroken_OFF);
    }
} _;
 
Wow; your mod works so perfectly now. I tested it and CJ exit the car as fast as possible and let the car ran away and explode

Added after 36 seconds:
So Junior you must insert it now in Mixsets V4.