021D

From GTAModding
Jump to: navigation, search

GTA III SET_FREE_BOMBS


Description
Set bomb shops to free
Syntax
021D: set_free_bomb_shop_to [int]
Parameter
[int]
0 = not free, 1 = free

This opcode sets all bomb shops to free. You can have your vehicle fitted even with no money, and no money will be deducted after using it. The value set with this opcode is saved in block 2 of the save file.

For Vice City

This opcode does not exist in Vice City but it is possible to set bomb shops to free. The following example, using Sanny Builder with CLEO for Vice City in an external script (not the main one) and tested on US v1.0, should work similarly to this opcode. Place this at the end of the file:

:opcode_021D
// [email protected] - input param (set)
05DF: write_memory 0xA10B32 size 1 value [email protected] virtual_protect 0  // CGarages::BombsAreFree
05F6: ret 0

Use this line as a substitute for opcode 021D. This can be placed anywhere within the external script:

05F5: call_scm_func @opcode_021D inputs 1 set [int]

The value set using this technique is saved in block 2 of the save file.

Keywords

set, free, bomb, shop, 8-Ball