Jump to content

[III/VC] Exclusive Bang


Recommended Posts

spaceeinstein

Introduction

Exclusive Bang is a modification for Grand Theft Auto III and Grand Theft Auto: Vice City utilizing the CLEO Library. The built-in cheats "BANGBANGBANG" for GTA III and "BIGBANG" for Vice City blow up all vehicles but they could be better if they did not blow up your own vehicle. With this mod, type "BIGBANG" in GTA III or "BANGBANGBANG" in Vice City to blow up all vehicles except the one you are currently in.

 

Installation for GTA III

  • Download the mod for GTA III at GTAGarage.
  • Download CLEO for GTA III at http://cleo.li/.
  • From the CLEO download, copy III.CLEO.asi into GTA III's folder.
  • If CLEO.asi already exists in the folder, you must delete that file.
  • From this mod download, place the CLEO folder containing SEBang.cs into GTA III's folder.
This mod has been tested only on III v1.00 US.

 

Installation for Vice City

  • Download the mod for Vice City at GTAGarage.
  • Download CLEO for Vice City at http://cleo.li/.
  • From the CLEO download, copy VC.CLEO.asi into Vice City's folder.
  • If CLEO.asi already exists in the folder, you must delete that file.
  • From this mod download, place the CLEO folder containing SEBang.cs into Vice City's folder.
This mod has been tested only on VC v1.00 US.

 

Source for GTA III

 

Sanny Builder

 

constVEHICLE_POOL = 0x9430DCVEHICLE_SIZE = 0x5A8P_ENTITY_POOL = 0@TEMP_VAR = 1@MAX_COUNT = 2@P_FLAG = 3@CURRENT_COUNT = 4@P_ENTITIES = 5@CURRENT_FLAG = 6@CURRENT_ENTITY = 7@endvarP_ENTITY_POOL : intTEMP_VAR : intMAX_COUNT : intCURRENT_COUNT : intP_ENTITIES : intCURRENT_ENTITY : intend0000:while true    wait 10    if        0ADC:   test_cheat "BIGBANG"    then        0ACA: show_text_box "Cheat activated"        gosub @EXPLODE    endend:EXPLODE// get entity pool pointer0A8D: P_ENTITY_POOL = read_memory VEHICLE_POOL size 4 virtual_protect 0// get maximum entity countTEMP_VAR = P_ENTITY_POOLTEMP_VAR += 80A8D: MAX_COUNT = read_memory TEMP_VAR size 4 virtual_protect 0CURRENT_COUNT = 0// get flag pointerTEMP_VAR = P_ENTITY_POOLTEMP_VAR += 40A8D: P_FLAG = read_memory TEMP_VAR size 4 virtual_protect 0// get entity pointerTEMP_VAR = P_ENTITY_POOL0A8D: P_ENTITIES = read_memory TEMP_VAR size 4 virtual_protect 0// for each entitywhile if CURRENT_COUNT GTA3script

 

{LVAR_INT p_entity_pool, temp_var, max_count, p_flag, current_count, p_entities, current_flag, current_entityNOPbang_loop:    WAIT 10    IF TEST_CHEAT "BIGBANG"        PRINT_HELP_STRING "Cheat activated"        GOSUB explode    ENDIF    GOTO bang_loopexplode:    // get entity pool pointer    READ_MEMORY 0x9430DC 4 0 p_entity_pool    // get maximum entity count    temp_var = p_entity_pool + 8    READ_MEMORY temp_var 4 0 max_count    current_count = 0    // get flag pointer    temp_var = p_entity_pool + 4    READ_MEMORY temp_var 4 0 p_flag    // get entity pointer    temp_var = p_entity_pool    READ_MEMORY temp_var 4 0 p_entities        // for each entity    WHILE current_count 

 

Source for Vice City

 

Sanny Builder

 

constVEHICLE_POOL = 0xA0FDE4VEHICLE_SIZE = 0x5DCP_ENTITY_POOL = 0@TEMP_VAR = 1@MAX_COUNT = 2@P_FLAG = 3@CURRENT_COUNT = 4@P_ENTITIES = 5@CURRENT_FLAG = 6@CURRENT_ENTITY = 7@VAL_1 = 8@VAL_2 = 9@VAL_3 = 10@endvarP_ENTITY_POOL : intTEMP_VAR : intMAX_COUNT : intCURRENT_COUNT : intP_ENTITIES : intCURRENT_ENTITY : intend0000:while true    wait 10    0A8D: VAL_1 = read_memory 0xA10942 size 4 virtual_protect 0    0A8D: VAL_2 = read_memory 0xA10946 size 4 virtual_protect 0    0A8D: VAL_3 = read_memory 0xA1094A size 4 virtual_protect 0    if and        VAL_1 == 0x42414E47 // bang        VAL_2 == 0x42414E47 // bang        VAL_3 == 0x42414E47 // bang    then        0A8C: write_memory 0xA1094D size 1 value 0x20 virtual_protect 1        0ACA: show_text_box "Cheat activated"        gosub @EXPLODE    endend:EXPLODE// get entity pool pointer0A8D: P_ENTITY_POOL = read_memory VEHICLE_POOL size 4 virtual_protect 0// get maximum entity countTEMP_VAR = P_ENTITY_POOLTEMP_VAR += 80A8D: MAX_COUNT = read_memory TEMP_VAR size 4 virtual_protect 0CURRENT_COUNT = 0// get flag pointerTEMP_VAR = P_ENTITY_POOLTEMP_VAR += 40A8D: P_FLAG = read_memory TEMP_VAR size 4 virtual_protect 0// get entity pointerTEMP_VAR = P_ENTITY_POOL0A8D: P_ENTITIES = read_memory TEMP_VAR size 4 virtual_protect 0// for each entitywhile if CURRENT_COUNT GTA3script

 

{LVAR_INT p_entity_pool, temp_var, max_count, p_flag, current_count, p_entities, current_flag, current_entity, val_1, val_2, val_3NOPbang_loop:    WAIT 10    READ_MEMORY 0xA10942 4 0 val_1    READ_MEMORY 0xA10946 4 0 val_2    READ_MEMORY 0xA1094A 4 0 val_3    IF val_1 = 0x42414E47 // bang    AND val_2 = 0x42414E47 // bang    AND val_3 = 0x42414E47 // bang        WRITE_MEMORY 0xA1094D 1 0x20 1        PRINT_HELP_STRING "Cheat activated"        GOSUB explode    ENDIF    GOTO bang_loopexplode:    // get entity pool pointer    READ_MEMORY 0xA0FDE4 4 0 p_entity_pool    // get maximum entity count    temp_var = p_entity_pool + 8    READ_MEMORY temp_var 4 0 max_count    current_count = 0    // get flag pointer    temp_var = p_entity_pool + 4    READ_MEMORY temp_var 4 0 p_flag    // get entity pointer    temp_var = p_entity_pool    READ_MEMORY temp_var 4 0 p_entities        // for each entity    WHILE current_count 

 

Thanks to AmanSin001 for the initial idea.

Edited by spaceeinstein
Link to comment
https://gtaforums.com/topic/881409-iiivc-exclusive-bang/
Share on other sites

Igor Bogdanoff

tear gas hurting people next plz.

  • Like 1
Link to comment
https://gtaforums.com/topic/881409-iiivc-exclusive-bang/#findComment-1069394698
Share on other sites

That name sounds pretty kinky though.

Link to comment
https://gtaforums.com/topic/881409-iiivc-exclusive-bang/#findComment-1069395214
Share on other sites

Nice idea spaceeinstein. You should change the name though. :D

Link to comment
https://gtaforums.com/topic/881409-iiivc-exclusive-bang/#findComment-1069410067
Share on other sites

 

Nice. Rather than a new mod is a fix, isn't?

No, it's a mod - it doesn't FIX anything. There's nothing to be fixed here.

It fixes in some way that your current vehicle doesn't explodes with the cheat. So, I consider it a fix IMO, doesn't mean that you should consider this a fix just like me but anyway enough offtopic with this.

Link to comment
https://gtaforums.com/topic/881409-iiivc-exclusive-bang/#findComment-1069410878
Share on other sites

Maybe not strictly a fix, more like a design choice improvement.

Link to comment
https://gtaforums.com/topic/881409-iiivc-exclusive-bang/#findComment-1069411991
Share on other sites

  • 2 weeks later...
crashoverride93

 

You know maybe it would be considered more of a fix if it were an asi instead of a Cleo script. But then again who knows.

You can have the same thing as an asi and Cleo script. In fact there's no difference (in the final result).What I was saying was I think it would be considered a more of fix if it was an asi rather then a Cleo script considering that 3 and vice city load asi's natively meaning no need for the added Cleo library.

 

I was talking about what silent and gts were talking about.

Edited by crashoverride93
Link to comment
https://gtaforums.com/topic/881409-iiivc-exclusive-bang/#findComment-1069434654
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.