IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Please post mod releases in the Mod Showroom

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 Change gang weapons in GTA III?

 I would like to change the weapons
 
nrdani  
Posted: Friday, Aug 3 2012, 22:32
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jan 21, 2012

gr.gif

XXXXX



Hi everyone,

I would like to make my game harder then it it, so i would like to edit gang weapons, eg to give yardies grenades and rocket launchers, but not with save game editing, but i want those weapons for default weapons. I think it's done by SCM editing but i'm not sure confused.gif . I could use some help.
PM
  Top
 

 
JACK JONES  
Posted: Saturday, Aug 4 2012, 06:58
Quote Post


Booom!!!
Group Icon
Group: Members
Joined: Dec 6, 2011

sr.gif

XXXXX



CODE
{$CLEO .cs}
thread 'Jack'

:0
wait 250
if
0256:   player $PLAYER_CHAR defined
jf @0
0247: request_model #M16
0247: request_model #AK47
0247: request_model #SHOTGUN
0247: request_model #UZI
0247: request_model #PISTOL
0247: request_model #FLAME
0247: request_model #GRENADE
038B: load_requested_models

:1
wait 0
if and
0248:   model #M16 available
0248:   model #AK47 available
0248:   model #SHOTGUN available
0248:   model #UZI available
0248:   model #PISTOL available
0248:   model #FLAME available
0248:   model #GRENADE available
jf @1
0249: release_model #M16
0249: release_model #AK47
0249: release_model #SHOTGUN
0249: release_model #UZI
0249: release_model #PISTOL
0249: release_model #FLAME
0249: release_model #GRENADE

:MAFIA
wait 0
05E0: 0@ = read_memory 0x6EDF80 size 1 virtual_protect 1
05E0: 1@ = read_memory 0x6EDF84 size 1 virtual_protect 1
if and
8039:   NOT   0@ == 6 // integer values  // checks primary gun
8039:   NOT   1@ == 6 // integer values  // checks secondary gun
jf @TRIADS
05DF: write_memory 0x6EDF80 size 1 value 6 virtual_protect 1    // if it's not 6 (M16) this writes 6 (primary)
05DF: write_memory 0x6EDF84 size 1 value 6 virtual_protect 1    // if it's not 6 (M16) this writes 6 (secondary)

:TRIADS
wait 0
05E0: 2@ = read_memory 0x6EDF90 size 1 virtual_protect 1
05E0: 3@ = read_memory 0x6EDF94 size 1 virtual_protect 1
if and
8039:   NOT   2@ == 5 // integer values
8039:   NOT   3@ == 5 // integer values
jf @DIABLOS
05DF: write_memory 0x6EDF90 size 1 value 5 virtual_protect 1
05DF: write_memory 0x6EDF94 size 1 value 5 virtual_protect 1

:DIABLOS
wait 0
05E0: 3@ = read_memory 0x6EDFA0 size 1 virtual_protect 1
05E0: 4@ = read_memory 0x6EDFA4 size 1 virtual_protect 1
if and
8039:   NOT   3@ == 4 // integer values
8039:   NOT   4@ == 4 // integer values
jf @YAKUZA
05DF: write_memory 0x6EDFA0 size 1 value 4 virtual_protect 1
05DF: write_memory 0x6EDFA4 size 1 value 4 virtual_protect 1

:YAKUZA
wait 0
05E0: 5@ = read_memory 0x6EDFB0 size 1 virtual_protect 1
05E0: 6@ = read_memory 0x6EDFB4 size 1 virtual_protect 1
if and
8039:   NOT   5@ == 3 // integer values
8039:   NOT   6@ == 3 // integer values
jf @YARDIES
05DF: write_memory 0x6EDFB0 size 1 value 3 virtual_protect 1
05DF: write_memory 0x6EDFB4 size 1 value 3 virtual_protect 1

:YARDIES
wait 0
05E0: 7@ = read_memory 0x6EDFC0 size 1 virtual_protect 1
05E0: 8@ = read_memory 0x6EDFC4 size 1 virtual_protect 1
if and
8039:   NOT   7@ == 2 // integer values
8039:   NOT   8@ == 2 // integer values
jf @COLUMBIANS
05DF: write_memory 0x6EDFC0 size 1 value 2 virtual_protect 1
05DF: write_memory 0x6EDFC4 size 1 value 2 virtual_protect 1

:COLUMBIANS
wait 0
05E0: 9@ = read_memory 0x6EDFD0 size 1 virtual_protect 1
05E0: 10@ = read_memory 0x6EDFD4 size 1 virtual_protect 1
if and
8039:   NOT   9@ == 9 // integer values
8039:   NOT   10@ == 9 // integer values
jf @SHOODS
05DF: write_memory 0x6EDFD0 size 1 value 9 virtual_protect 1
05DF: write_memory 0x6EDFD4 size 1 value 9 virtual_protect 1

:SHOODS
wait 0
05E0: 11@ = read_memory 0x6EDFE0 size 1 virtual_protect 1
05E0: 12@ = read_memory 0x6EDFE4 size 1 virtual_protect 1
if and
8039:   NOT   11@ == 11 // integer values
8039:   NOT   12@ == 11 // integer values
jf @Check
05DF: write_memory 0x6EDFE0 size 1 value 11 virtual_protect 1
05DF: write_memory 0x6EDFE4 size 1 value 11 virtual_protect 1

:Check
wait 0
if
8256:   not player $PLAYER_CHAR defined
jf @MAFIA
jump @0

This code doesn't allow the game to change the weapons that you write in it. Primary and scondary gun can be set diferent. List:
CODE
0 - unarmed
1 - bat
2 - pistol
3 - uzi
4 - shotgun
5 - AK47
6 - M16
7 - sniper
8 - RLauncer
9 - Flamethrover
10 - molotov coctail
11 - bomb

The code works with the original version of the game (1.0).

This post has been edited by JACK JONES on Saturday, Aug 4 2012, 07:37
PM
  Top
 

 
nrdani  
Posted: Saturday, Aug 4 2012, 11:11
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jan 21, 2012

gr.gif

XXXXX



Thanks for the reply. I've never put a cleo script in the game, and which lines should i change in the script you wrote for primary and for secondary weapons?
I know that vice city has it coded in the main.scm, and also some weapons in the exe. Once my friend changed all the cop's military and gang weapons in vc, but i he can't help me now, because he went back to russia.
PM
  Top
 

 

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG