Coding

 Reply to this postStart new topic

GTAG Opcode Database

Michael.Knight1
post May 23 2012, 12:41 PM
Post #161


Member

Posts: 130
From: Germany
Joined: 24-March 12



QUOTE (Deji @ May 19 2012, 04:39 PM) *
9 = master of cut retort? tongue.gif

God its borin not havin a pc... I can add that info to the DB, though smile.gif

EDIT: Ooh, how easy would it be to add more moods? CR could make use of a few new mode...

Hello , i need All the Fighting Style ID Number !!
CODE
07FE: set_actor $PLAYER_ACTOR fighting_style_to 5 6


This post has been edited by Michael.Knight1: May 23 2012, 12:41 PM


--------------------
Michael Knight A shadowy flight into the dangerous world of a man who does not exist.
Michael Knight, a young loner on a crusade to champion the cause of the innocent, the helpless, the powerless, in a world of criminals who operate above the law.
Go to the top of the page
 
+Quote Post
Albreht
post May 23 2012, 02:22 PM
Post #162


Trained Newbie

Posts: 21
Joined: 19-February 12



QUOTE (Michael.Knight1 @ May 23 2012, 09:41 PM) *
Hello , i need All the Fighting Style ID Number !!
CODE
07FE: set_actor $PLAYER_ACTOR fighting_style_to 5 6


decompiling this mod would be help
Fighting Style Switcher
if you couldn't read decompiled source of this, you should learn cleo basics first XD
Go to the top of the page
 
+Quote Post
Deji
post May 23 2012, 04:38 PM
Post #163


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



QUOTE (Michael.Knight1 @ May 23 2012, 01:41 PM) *
Hello , i need All the Fighting Style ID Number !!
CODE
07FE: set_actor $PLAYER_ACTOR fighting_style_to 5 6

You should try doing your own research wink.gif


--------------------
Go to the top of the page
 
+Quote Post
Michael.Knight1
post May 23 2012, 06:05 PM
Post #164


Member

Posts: 130
From: Germany
Joined: 24-March 12



QUOTE (Albreht @ May 23 2012, 03:22 PM) *
you should learn cleo basics first XD

You are funny heheheh laugh.gif laugh.gif
QUOTE (Deji @ May 23 2012, 05:38 PM) *
You should try doing your own research wink.gif

No Problem I Will Try whistling.gif

This post has been edited by Michael.Knight1: May 23 2012, 06:05 PM


--------------------
Michael Knight A shadowy flight into the dangerous world of a man who does not exist.
Michael Knight, a young loner on a crusade to champion the cause of the innocent, the helpless, the powerless, in a world of criminals who operate above the law.
Go to the top of the page
 
+Quote Post
badboy
post May 24 2012, 02:56 PM
Post #165


Trained Member

Posts: 76
From: Nederland, NL
Joined: 1-May 12



I haven't seen this documented so here goes:

Opcodes that set acquaintance have a flag that reffers to ped.dat
CODE
# Acquaintance options:
# - Hate
# - Dislike
# - Like
# - Respect


I thought 1 = hate, 2 = dislike etc. But it is actually the other way around:
1 = Respect
2 = Like // Not sure
3 = Dislike // Not sure
4 = Hate

But it doesn't make that much of a difference. If you set dislike the peds will go fine together in a car. Only hate makes big changes.

This post has been edited by badboy: May 24 2012, 02:57 PM
Go to the top of the page
 
+Quote Post
DK22
post May 26 2012, 08:56 PM
Post #166


Member

Posts: 197
From: Liberty City, Shoreside
Joined: 15-July 10



CODE
06ED: set_car 0@ paintjob -1

"-1" removes paintjob.
Go to the top of the page
 
+Quote Post
Michael.Knight1
post Jun 6 2012, 06:46 PM
Post #167


Member

Posts: 130
From: Germany
Joined: 24-March 12



EDIT : SLOVED

This post has been edited by Michael.Knight1: Jun 12 2012, 01:28 PM


--------------------
Michael Knight A shadowy flight into the dangerous world of a man who does not exist.
Michael Knight, a young loner on a crusade to champion the cause of the innocent, the helpless, the powerless, in a world of criminals who operate above the law.
Go to the top of the page
 
+Quote Post
badboy
post Jun 6 2012, 07:21 PM
Post #168


Trained Member

Posts: 76
From: Nederland, NL
Joined: 1-May 12



QUOTE (Michael.Knight1 @ Jun 6 2012, 08:46 PM) *
Hello , I wanna to remove the ped traffic at observatory area in los santos but i did not knew the code , so plzz give me the code ??
The Knight Rider House is on this area , you can see this picture to knew up the area ninja.gif


This is not the place to ask questions like that.
And how about 0395:?

This post has been edited by badboy: Jun 6 2012, 07:22 PM
Go to the top of the page
 
+Quote Post
Michael.Knight1
post Jun 6 2012, 07:52 PM
Post #169


Member

Posts: 130
From: Germany
Joined: 24-March 12



QUOTE (badboy @ Jun 6 2012, 08:21 PM) *
This is not the place to ask questions like that.
And how about 0395:?

ok but anyways thanks for the code , that i need biggrin.gif


--------------------
Michael Knight A shadowy flight into the dangerous world of a man who does not exist.
Michael Knight, a young loner on a crusade to champion the cause of the innocent, the helpless, the powerless, in a world of criminals who operate above the law.
Go to the top of the page
 
+Quote Post
Michael.Knight1
post Jun 12 2012, 09:30 AM
Post #170


Member

Posts: 130
From: Germany
Joined: 24-March 12



Hello , I need the code to add actor as friend with player

This post has been edited by Michael.Knight1: Jun 12 2012, 09:57 AM


--------------------
Michael Knight A shadowy flight into the dangerous world of a man who does not exist.
Michael Knight, a young loner on a crusade to champion the cause of the innocent, the helpless, the powerless, in a world of criminals who operate above the law.
Go to the top of the page
 
+Quote Post
Silent
post Jun 12 2012, 12:18 PM
Post #171


The master of cut retort

Group Icon

Posts: 239
From: Warsaw, PL
Joined: 21-July 10



QUOTE (badboy @ Jun 6 2012, 08:21 PM) *
This is not the place to ask questions like that.

Go to the top of the page
 
+Quote Post
Michael.Knight1
post Jun 12 2012, 01:03 PM
Post #172


Member

Posts: 130
From: Germany
Joined: 24-March 12



Sorry a gain , i will active outher topic


--------------------
Michael Knight A shadowy flight into the dangerous world of a man who does not exist.
Michael Knight, a young loner on a crusade to champion the cause of the innocent, the helpless, the powerless, in a world of criminals who operate above the law.
Go to the top of the page
 
+Quote Post
Michael.Knight1
post Jul 1 2012, 08:06 PM
Post #173


Member

Posts: 130
From: Germany
Joined: 24-March 12



I Use Cheat Engine to find the Money Value Addresses , is Worked Fine biggrin.gif

CODE
0xB7ce50 == 4 Bytes
0xB7ce54 == 4 Bytes
0xBAA430 == 4 Bytes


Create The Value as you want , This An Example :

Full Money ::::
CODE
0A8C: write_memory 0xB7ce50 size 4 value 1E15 virtual_protect 0
0A8C: write_memory 0xB7ce54 size 4 value 1E15 virtual_protect 0
0A8C: write_memory 0xBAA430 size 4 value 1E15 virtual_protect 0


While You Use Them , the money will be add without waiting a long time but while you add [ 0xB7ce50 or 0xBAA430 ] the money will add with waiting wallbash.gif wallbash.gif

http://www.mediafire.com/?0592o37b08nbjve

This post has been edited by Michael.Knight1: Jul 1 2012, 08:14 PM


--------------------
Michael Knight A shadowy flight into the dangerous world of a man who does not exist.
Michael Knight, a young loner on a crusade to champion the cause of the innocent, the helpless, the powerless, in a world of criminals who operate above the law.
Go to the top of the page
 
+Quote Post
badboy
post Jul 1 2012, 09:20 PM
Post #174


Trained Member

Posts: 76
From: Nederland, NL
Joined: 1-May 12



Thanks for telling us something which is well known and well documented in the wrong topic.
Keep up the great work
Go to the top of the page
 
+Quote Post
DK22
post Jul 1 2012, 11:05 PM
Post #175


Member

Posts: 197
From: Liberty City, Shoreside
Joined: 15-July 10



...

This post has been edited by DK22: Jul 2 2012, 08:29 PM
Go to the top of the page
 
+Quote Post
Michael.Knight1
post Jul 2 2012, 07:11 PM
Post #176


Member

Posts: 130
From: Germany
Joined: 24-March 12



QUOTE (badboy @ Jul 1 2012, 09:20 PM) *
Thanks for telling us something which is well known and well documented in the wrong topic.
Keep up the great work

thanks !


--------------------
Michael Knight A shadowy flight into the dangerous world of a man who does not exist.
Michael Knight, a young loner on a crusade to champion the cause of the innocent, the helpless, the powerless, in a world of criminals who operate above the law.
Go to the top of the page
 
+Quote Post
Deji
post Jul 28 2012, 06:00 PM
Post #177


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



http://gtagmodding.com/opcode-database.php?opcode=07FC

Yes, there is an opcode to display a float number. No, we don't have to perform math to inaccurately split the numbers up manually. It was just named very incorrectly years ago.


--------------------
Go to the top of the page
 
+Quote Post
DK22
post Aug 1 2012, 03:12 PM
Post #178


Member

Posts: 197
From: Liberty City, Shoreside
Joined: 15-July 10



0541
CODE
case 0x541:
    CScriptThread__getNumberParams(thread, 1);
    veh = CPool<CVehicle>::atHandle(g_VehiclePool, opcodeParameters);
    if ( g_currentTime <= (veh->vehicle.timeLastShot + 150) )
      return false;
    CWeapon::Build(&weapon_buf, WEAPON_Minigun, 5000);
    m = veh->vehicle.physical.entity.placeable.m_pCoords;
    point.x = DefaultVehicleGunOffset.x;
    point.y = DefaultVehicleGunOffset.y;
    point.z = DefaultVehicleGunOffset.z;
    v1 = scaleVector(&outVec, &veh->vehicle.physical.m_vVelocity, unk_FPS);
    v2 = transformPoint(&outPoint, m, &point);
    v3 = vectorAdd(&vec_buf, v2, v1);
    point.x = v3->x;
    point.y = v3->y;
    point.z = v3->z;
    CWeapon::FireInstantHit(&weapon_buf, veh, &point, &point, 0, 0, 0, 0, 1);
    direction.x = 0.0;
    direction.y = 0.1;
    CWeapon::AddGunshell(&weapon_buf, veh, &point, &direction, 0.025);
    CAudio::PerformGunSound(&audio, 149, WEAPON_Minigun);
    veh->vehicle.timeLastShot = g_currentTime;
    return false;


This post has been edited by DK22: Aug 1 2012, 03:15 PM
Go to the top of the page
 
+Quote Post
Deji
post Aug 1 2012, 06:38 PM
Post #179


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



QUOTE (DK22 @ Aug 1 2012, 04:12 PM) *
0541
CODE
case 0x541:
    CScriptThread__getNumberParams(thread, 1);
    veh = CPool<CVehicle>::atHandle(g_VehiclePool, opcodeParameters);
    if ( g_currentTime <= (veh->vehicle.timeLastShot + 150) )
      return false;
    CWeapon::Build(&weapon_buf, WEAPON_Minigun, 5000);
    m = veh->vehicle.physical.entity.placeable.m_pCoords;
    point.x = DefaultVehicleGunOffset.x;
    point.y = DefaultVehicleGunOffset.y;
    point.z = DefaultVehicleGunOffset.z;
    v1 = scaleVector(&outVec, &veh->vehicle.physical.m_vVelocity, unk_FPS);
    v2 = transformPoint(&outPoint, m, &point);
    v3 = vectorAdd(&vec_buf, v2, v1);
    point.x = v3->x;
    point.y = v3->y;
    point.z = v3->z;
    CWeapon::FireInstantHit(&weapon_buf, veh, &point, &point, 0, 0, 0, 0, 1);
    direction.x = 0.0;
    direction.y = 0.1;
    CWeapon::AddGunshell(&weapon_buf, veh, &point, &direction, 0.025);
    CAudio::PerformGunSound(&audio, 149, WEAPON_Minigun);
    veh->vehicle.timeLastShot = g_currentTime;
    return false;

FIRE_WEAPON_OF_CAR mycar


sascm.ini v2 wink.gif


EDIT
03F0

It has another trick up it's sleeve. Setting to 0 actually enables text commands, but only until the text/textures have been drawn. So it applies once per game loop. Setting it to 1 enables text commands permanently. Of course, other scripts are bound to mess with this feature, so at least we've not been using it wrong.


--------------------
Go to the top of the page
 
+Quote Post
Deji
post Aug 27 2012, 07:41 PM
Post #180


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



A fresh one...
MAKE_ROOM_IN_PLAYER_GANG_FOR_MISSION_PEDS = 09DD


--------------------
Go to the top of the page
 
+Quote Post
Reply to this postStart new topic

3 User(s) are reading this topic (3 Guests and 0 Anonymous Users)
0 Members: