Quantcast

Jump to content

» «
Photo

Generic SA SCM Documentation

114 replies to this topic
Opius
  • Opius

    General

  • Feroci
  • Joined: 27 Jun 2002

#1

Posted 23 July 2005 - 08:25 AM

Since I've seen a fair bit of confusion about these things, I just thought I'd try to document some of the things that have been neglected with regards to specific opcode commands. You might recognise some of these things being included in text files with Barton's VC builder.

Weapon IDs
Used almost exclusively when dealing with weapons. Examples of opcodes that use these IDs:
CODE
01B2: give_actor $player_actor weapon 'ID#' ammo 50
01B9: set_actor $player_actor armed_weapon_to  'ID#'


A few notes, before the big list. You must load weapons using the standard REQUEST_MODEL opcode (0247) and refer to these weapons by their default.ide ID number/name.

CODE
0 - Unarmed
1 - Brass Knuckles
2 - Golf Club
3 - Night Stick
4 - Knife
5 - Baseball Bat
6 - Shovel
7 - Pool cue
8 - Katana
9 - Chainsaw
10 - Purple Dildo
11 - White Dildo
12 - Long White Dildo
13 - White Dildo 2
14 - Flowers
15 - Cane
16 - Grenades
17 - Tear Gas
18 - Molotovs
19 - Missile (crashes if you try to fire)
20 - Missile (crashes if you try to fire)
21 - Missile (crashes if you try to fire)
22 - Pistol
23 - Silenced Pistol
24 - Desert Eagle
25 - Shotgun
26 - Sawn Off Shotgun
27 - Combat Shotgun
28 - Micro Uzi (Mac 10)
29 - MP5
30 - AK47
31 - M4
32 - Tec9
33 - Rifle
34 - Sniper Rifle
35 - RPG
36 - Missile Launcher
37 - Flame Thrower
38 - Minigun
39 - Sachet Charges
40 - Detonator
41 - Spray Paint
42 - Fire Extinguisher
43 - Camera
44 - Nightvision Goggles
45 - Thermal Goggles
46 - Parachute
47 - Pistol (Unusable)(Unskilled animations)
48 - Silenced Pistol (Unusable)(Unskilled animations)
49 - Desert Eagle (Unusable)(Unskilled animations)
50 - Shotgun (Unusable)(Unskilled animations)
51 - Sawn Off Shotgun (Unusable)(Unskilled animations)
52 - Combat Shotgun (Unusable)(Unskilled animations)
53 - Micro Uzi (Mac 10)(Unusable)(Unskilled animations)
54 - MP5 (Unusable)(Unskilled animations)
55 - AK47 (Unusable)(Unskilled animations)
56 - M4 (Unusable)(Unskilled animations)
57 - Tec9 (Unusable)(Unskilled animations)
58 - Pistol (Unusable)(Hitman animations)
59 - Silenced Pistol (Unusable)(Hitman animations)
60 - Desert Eagle (Unusable)(Hitman animations)
61 - Shotgun (Unusable)(Hitman animations)
62 - Sawn Off Shotgun (Unusable)(Hitman animations)
63 - Combat Shotgun (Unusable)(Hitman animations)
64 - Micro Uzi (Mac 10)(Unusable)(Hitman animations)
65 - MP5 (Unusable)(Hitman animations)
66 - AK47 (Unusable)(Hitman animations)
67 - M4 (Unusable)(Hitman animations)
68 - Tec9 (Unusable)(Hitman animations)
69 - Pistol (Unusable)(Gangster animations)
70+ - Crashes the game

Using weapon IDs above 46 will result in the actor making all the nessecary motions, but the weapon not actually firing.

Keypress IDs
Used to check whether a certain key associated with an action is being pressed. You cannot use keys that are not assigned to actions. This is used with opcode 00E1. Example:
CODE
00D6: if  0
00E1:   key pressed  0  'ID#'
004D: jump_if_false ££Label


Seperate IDs are used for when the player is on foot than when the player is in a vehicle.

On foot:
CODE
0 = Turn Left/Right
1 = Move forward/backward
2 = Special Control Left/Right (Even on foot!)
3 = Unused
4 = Action
5 = Previous weapon/target
6 = Target/Aim weapon
7 = Next weapon/target
8 = Group control forward
9 = Group control backward    
10 = Conversation 'no'
11 = Conversation 'yes'
12 = Not technically usable (cutscene escape)
13 = Camera
14 = Jump
15 = Enter Vehicle
16 = Sprint
17 = Attack
18 = Crouch
19 = Look behind


Feel free to contribute any of your own.

HippieCommunist
  • HippieCommunist

    PWR2DPPL

  • Members
  • Joined: 25 Jan 2003

#2

Posted 23 July 2005 - 08:37 AM

thanks a million!

Bigun
  • Bigun

    wandering about

  • Members
  • Joined: 10 Jul 2004

#3

Posted 23 July 2005 - 03:48 PM

These were found by ocram if I aint wrong:

CODE

---------------------------------
- on foot                      
---------------------------------
- 0 =  left/right              
- 1 =  forward/backward        
- 2 =  special ctrl left/right  
- 3 =  special ctrl up/down    
- 4 =  action                  
- 5 =  previous weapon/target  
- 6 =  aim weapon              
- 7 =  next weapon/target  
- 8 =  Group CTRL Forward      
- 9 =  Group CTRL back          
- 10 = conversation - no        
- 11 = conversation - yes      
- 12 = (do not exist)          
- 13 = change camera            
- 14 = jump                    
- 15 = enter vehicle            
- 16 = sprint                  
- 17 = fire                    
- 18 = crouch                  
- 19 = look behind

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ in car                        
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ 0 =  left/right  
~ 1 =  steer back/up  
~ 2 =  Special ctrl left/right  
~ 3 =  Special control up/down  
~ 4 =  secondary fire  
~ 5 =  look left  
~ 6 =  hand brake  
~ 7 =  look right  
~ 8 =  next radio station
~ 9 =  previous radio station
~ 10 = No  
~ 11 = trip skip
~ 12 = (do not exist)  
~ 13 = camera  
~ 14 = brake/reserve  
~ 15 = enter+exit  
~ 16 = accelerate  
~ 17 = fire  
~ 18 = horn  
~ 19 = submission  
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Props for the documentation. What about that missile? Bettah test it.

Viper187
  • Viper187

    Crazy Snake

  • Members
  • Joined: 17 Oct 2002

#4

Posted 24 July 2005 - 06:16 PM

Has anyone figured out if the 2nd player controls are still in the settings/readable by the opcode? I'm not interested in a 2P mod, just some extra buttons to use for activating my sh*t. lol

Y_Less
  • Y_Less

    629

  • Members
  • Joined: 14 Mar 2004

#5

Posted 24 July 2005 - 06:19 PM

They are still readable by the SCM, but not by the game so they can't be pased to the SCM to be read. So basically no.

Craig Kostelecky
  • Craig Kostelecky

    GTA:LC Team Leader

  • The Connection
  • Joined: 28 Jan 2004
  • None

#6

Posted 24 July 2005 - 06:22 PM

Thanks for doing this Opius. Do you mind if I create text files and include them in my hosted version of MB 0.33?

Opius
  • Opius

    General

  • Feroci
  • Joined: 27 Jun 2002

#7

Posted 24 July 2005 - 11:09 PM

Go right ahead, Craig.

LazioFreak
  • LazioFreak

    VC Mapper

  • Members
  • Joined: 20 Sep 2003

#8

Posted 25 July 2005 - 02:09 PM

Radar Icons:
http://www.lzfdownlo...6&action=text#1

Demarest
  • Demarest

    what could be

  • BUSTED!
  • Joined: 12 Jul 2003

#9

Posted 25 July 2005 - 03:30 PM

That could've been done as two column, but otherwise, excellent work. Sharp site layout too colgate.gif

nubbel
  • nubbel

    Rat

  • Members
  • Joined: 27 Jun 2005

#10

Posted 25 July 2005 - 03:47 PM

Nice, thanks for this info!

Bigun
  • Bigun

    wandering about

  • Members
  • Joined: 10 Jul 2004

#11

Posted 29 July 2005 - 12:27 PM

QUOTE (Y_Less @ Jul 24 2005, 18:19)
They are still readable by the SCM, but not by the game so they can't be pased to the SCM to be read. So basically no.

I am guessing that possibly, an exe hack, or rather memory hacking could make the game read them?

Demarest
  • Demarest

    what could be

  • BUSTED!
  • Joined: 12 Jul 2003

#12

Posted 29 July 2005 - 12:44 PM

You're essentially talking about rewriting the EXE to be made to be 2 player. A lot of effort and only to enable new keypresses? Neo v5 had a LOT of user commands and I made do with keypress combos just fine, as does every coder.

BBumper
  • BBumper

    Learner

  • Members
  • Joined: 11 Dec 2003

#13

Posted 30 July 2005 - 09:45 PM Edited by BBumper, 30 July 2005 - 10:07 PM.

Wrong topic please delete

Bigun
  • Bigun

    wandering about

  • Members
  • Joined: 10 Jul 2004

#14

Posted 31 July 2005 - 06:49 AM

That belonged to the opcode database if anything at all..

tomworld10
  • tomworld10

    Mark Chump

  • Members
  • Joined: 29 Jun 2005

#15

Posted 03 August 2005 - 05:02 PM Edited by tomworld10, 05 April 2006 - 09:25 PM.

UPDATED

Hi
I've started and finished to note all the stats that are use in the main.scm
i'm not sur for some of them and other i got no idea what they are for.
If someone know more or find what the others are used for.

CODE
stat  0 Score (x1000)

stat  2 Furthest Hoop
stat  3 way done on foot
stat  4 way done by car
stat  5 way done by motorbike
stat  6 Distance travelled by boat
stat  7 Distance travelled by golf cart
stat  8 Distance travelled by helicopter
stat  9 way done by flying vehicle
stat  10 Longest Wheelie distance
stat  11 Longest Stoppie distance
stat  12 Longest 2 wheels distance
stat  13 Weapon Budget
stat  14 Fashion Budget
stat  15 Money spent in property
stat  16 money spent in spray'n paint
stat  17 Longest Wheelie time
stat  18 Longest Stoppie time
stat  19 Longest 2 wheels time
stat  20 money spent on food
stat  21 fat only (food in stomach= stat  245)
stat  22 stamina
stat  23 muscle
stat  24 Health ??
stat  25 weird? damage of vehicles (and (maybe) temporary "damage" of cj when he lost energy for example like by swimming under water for too long, it's a bit curious)
stat  26 way done by fast (with pressed SHIFT key) swimming, over and under water
stat  27 way done by bike/bicycle
stat  28 way done on the gym treadmill
stat  29 way done on the gym bike
stat  30 money spent at the tattooshop
stat  31 money spent at the barbershop
stat  32 girlfriend budget (money spent, maybe unused)
stat  33 money spent on street whores
stat  34 furniture budget (money spent, maybe unused)
stat  35 money spent gambling
stat  36 money made from pimping
stat  37 money won gambling
stat  38 Biggest gambling win
stat  39 Biggest gambling loss
stat  40 Largest burglary swag
stat  41 money made from burglary
stat  42 money spent building property (obsolete)

stat  44 time spent on the gym treadmill
stat  45 time spent on the gym bike
stat  46 heavyest weight lifted up on the gym bench big dumbbell
stat  47 heavyest weight lifted up on the gym little dumbbell
stat  48 Best time in 8-Track
stat  49 BMX race best time
stat  50 lightest weight
stat  51 Longest chase time with 5 or more stars  
stat  52 Last chase time with 5 or more stars
stat  53 Wage bill
stat  54 money spent in strip-tease
stat  55 money spent in mod-garages
stat  56 time spent shopping
stat  57 time spent gambling
stat  58 time spent on longest mission
stat  59 time spent on quickest mission
stat  60 average mission time
stat  61 drugs budget (money spent, maybe unused)
stat  62 money spent for cj's appearance (barbershop, tattooshop, clothes store)
stat  63 time spent underwater
stat  64 total respect
stat  65 girlfriend respect
stat  66 maybe respect from your gang
stat  66 clothes respect
stat  67 fitness respect
stat  68 respect or hits (by gun shots and by fist fight / close combat) that killed enemies (cops, enemy gangmembers and so on..)
stat  69 Weapon skill: pistol
stat  70 Weapon skill: SILENCED
stat  71 Weapon skill: DESERT EAGLE
stat  72 Weapon skill: SHOTGUN
stat  73 Weapon skill: SAWNOFF
stat  74 Weapon skill: SPAS12
stat  75 Weapon skill: MICRO UZI
stat  76 Weapon skill: MP5
stat  77 Weapon skill: AK47
stat  78 Weapon skill: M4
stat  79 Weapon skill: SNIPERRIFLE
stat  80 Sex appeal
stat  81 gambling skill

stat  97 distance traveled by car needed to increase driving skill (smaller it is faster you improve your driving skill, default is around a billion)
stat  98 distance traveled by flying vehicle needed to increase flying skill (smaller it is faster you improve your flying skill, default is around a billion)
stat  99 distance traveled by bicycle needed to increase bicycle skill (smaller it is faster you improve your bicycle skill, default is around a billion)
stat  100 distance traveled by bike needed to increase bike skill (smaller it is faster you improve your bike skill, default is around a billion)

stat  102 physical effort (distance traveled walking, running, swimming-underwater only- and cycling) needed to decrease your body fat or muscle, and probably the food in your stomach stat_245 (default is around a billion)

stat  104 distance traveled underwater needed to increase your lung capacity (default is around a billion)
stat  105 physical effort (distance traveled walking, running, swimming-underwater only- and cycling) needed to increase your max health (default is around a billion)

stat  120 people (as well as cj himself) killed by others
stat  121 people killed by cj
stat  122 destroyed vehicles
stat  123 destroyed boats
stat  124 destroyed helicopters
stat  125 cost of property damaged
stat  126 fired bullets
stat  127 kg of explosives used
stat  128 bullets/gunshots that hit their target
stat  129 destroyed tires
stat  130 number/amount of headshots
stat  131 total number/amount of police wanted stars earned/received during gameplay
stat  132 total number/amount of police wanted stars you were able to get rid of during gameplay
stat  133 number of how many times you were caught/busted by police
stat  134 days passed in-game
stat  135 visits at the hospital
stat  136 number of how many times you have saved your game
stat  137 number/amount of used cheats
stat  138 number/amount of paintings/paint jobs (visits at the pay'n'spray)
stat  139 maximum insane jump distance
stat  140 maximum insane jump height
stat  141 maximum insane jump flips
stat  142 maximum insane jump rotation
stat  143 best insanity stunt -> "1" for "insanity stunt" and "0" for "insanity stunt not done yet"
stat  144 number of monsterstunts found
stat  145 number of monsterstunts done
stat  146 started missions / missions started
stat  147 successfully ended missions / missions done/finished
stat  148 total number of missions in game
stat  149 Cash made in a Taxi
stat  150 Passengers dropped off
stat  151 people saved on paramedic missions
stat  152 criminals killed on Vigilante
stat  153 fires extinguished
stat  154 packages delivered (Courier missions)
stat  155 Assassinations
stat  156 last dance score
stat  157 Highest Vigilante Mission level
stat  158 Highest Paramedic Mission level
stat  159 Highest Firefighter Mission level
stat  160 driving skill
stat  161 Number of Truck missions passed
stat  162 Money made in Truck
stat  163 recruited gang members killed (according to DeeZire) or Max health (according to me, i can't remember but seems weird because i thought being sure of this one)
stat  164 armor
stat  165 energy
stat  166 Photo taken (not only the one to collect, all)
stat  167 rampages attempted
stat  168 rampages passed
stat  169 flight time
stat  170 Number of times drowned
stat  171 Number of girls pimped
stat  172 Best position in 8-Track
stat  173 time on Jetpack
stat  174 Shooting range levels passed
stat  175 Most cars parked on 'Valet Parking'
stat  176 Kills since last checkpoint
stat  177 Total legitimate kills
stat  178 bloodring Kills since last checkpoint
stat  179 something to do with bloodring
stat  180 No more hurricanes Flag
stat  181 islands unlocked
stat  182 Number of Police bribes
stat  183 Burgular status (according to DeeZire) or Number of cars stolen (according to me)
stat  184 Current number of girlfriends
stat  185 Number of disastrous dates
stat  186 Number of girls dated
stat  187 Number of times scored with a girl
stat  188 Number of successful dates
stat  189 Number of girls dumped
stat  190 Number of prostitutes visited
stat  191 Number of houses burgled
stat  192 Number of safes cracked

stat  194 Number of stolen items sold
stat  195 Number of eight balls in pool
stat  196 Total number of wins playing pool
stat  197 Total number of losses playing pool
stat  198 visits at the gym
stat  199 body type
stat  200 Number of meals eaten
stat  201 Money made in Quarry
stat  202 Time taken to Complete Quarry
stat  203 number of furniture items purchased (obsolete)
stat  204 favourite console game
stat  205 Highest civilian peds killed on Rampage
stat  206 Highest police peds killed on Rampage  
stat  207 Highest civilian vehicles destroyed on Rampage
stat  208 Highest police vehicles destroyed on Rampage
stat  209 Highest number of tanks destroyed on Rampage
stat  210 Pimping level  
stat  211 Kickstart best score
stat  212 Best lap time in 8-Track
stat  213 cars exported
stat  214 cars imported
stat  215 Highest basketball score
stat  216 Fires started
stat  217 Amount of drugs sold
stat  218 Amount of drugs bought
stat  219 Best lap time in dirt track
stat  220 Best time in dirt track
stat  221 Best position in dirt track
stat  222 NRG-500 best time
stat  223 FLYING SKILL
stat  224 respect mission
stat  225 lung capacity
stat  226 game gore rating
stat  227 game sex rating
stat  228 respect mission total
stat  229 BIKE SKILL
stat  230 CYCLE SKILL
stat  231 snapshots taken (the ones to collect)
stat  232 Number of snapshots to collected
stat  233 Luck
stat  234 Territories taken over
stat  235 Territories lost
stat  236 Territories held
stat  237 Highest number of territories held
stat  238 Gang members recruited
stat  239 Enemy gang members killed
stat  240 Friendly gang members killed
stat  241 horshoes collected
stat  243 oysters collected
stat  244 Number of oysters to collected
stat  245 calories, food in your stomach
stat  246 2Player Rampage best time
stat  247 2Player Car Rampage best time
stat  248 2Player On Foot Rampage best time
stat  249 2Player Chopper Rampage best time
stat  250 2Player Bike Rampage best time
stat  251 'Keepie Uppy' best time (unused?)
stat  252 progress with denise
stat  253 progress with michel
stat  254 progress with helen
stat  255 progress with barbara
stat  256 progress with katie
stat  257 progress with millie
stat  258 Best position in Lowrider Race
stat  259 Best time in Lowrider Race
stat  260 Best position in Little Loop
stat  261 Best time in Little Loop
stat  262 Best position in Backroad Wanderer
stat  263 Best time in Backroad Wandere
stat  264 Best position in City Circuit
stat  265 Best time in City Circuit
stat  266 Best position in Vinewood
stat  267 Best time in Vinewood
stat  268 Best position in Freeway
stat  269 Best time in Freeway
stat  270 Best position in Into the Country
stat  271 Best time in Into the Country
stat  272 Best position in Badlands A
stat  273 Best time in Badlands A
stat  274 Best position in Badlands B
stat  275 Best time in Badlands B
stat  276 Best position in Dirtbike Danger
stat  277 Best time in Dirtbike Danger
stat  278 Best position in Bandito County
stat  279 Best time in Bandito County
stat  280 Best position in Go-Go-Kart
stat  281 Best time in Go-Go-Kart
stat  282 Best position in San Fierro Fastlane
stat  283 Best time in San Fierro Fastlane
stat  284 Best position in San Fierro Hills
stat  285 Best time in San Fierro Hills
stat  286 Best position in Country Endurance
stat  287 Best time in Country Endurance
stat  288 Best position in SF to LV
stat  289 Best time in SF to LV
stat  290 Best position in Dam Rider
stat  291 Best time in Dam Rider
stat  292 Best position in Desert Tricks
stat  293 Best time in Desert Tricks
stat  294 Best position in LV Ringroad
stat  295 Best time in LV Ringroad
stat  296 Best time in World War Aces
stat  297 Best time in Barnstorming
stat  298 Best time in Military Service
stat  299 Best time in Chopper Checkpoint
stat  300 Best time in Whirly Bird Waypoint
stat  301 Best time in Heli Hell
stat  302 Sweet's mission accomplished
stat  303 Management Issues mission accomplished
stat  304 maybe 555 WE TIP mission accomplished
stat  305 Yay Ka-Boom-Boom mission accomplished
stat  306 Fish in a Barrel mission accomplished
stat  307 Breaking the Bank at Caligula's mission accomplished
stat  308 A Home In The Hills mission accomplished
stat  309 maybe set riot mode
stat  310 Ryder's mission Robbing Uncle Sam accomplished
stat  311 Mike Toreno mission accomplished
stat  312 Architectural Espionage mission accomplished
stat  313 Jizzy mission accomplished
stat  314 Reuniting the Families mission accomplished
stat  315 Catalina 3 mission accomplished
stat  316 Photo Opportunity mission accomplished
stat  317 Don Peyote mission accomplished
stat  318 Catalina 2 mission accomplished
stat  319 Badlands mission accomplished
stat  320 Monster mission accomplished
stat  321 Wear Flowers in your Hair mission accomplished
stat  322 maybe Cesar races missions accomplished (Wu Zi Mu / Farewell, my love...)
stat  323 maybe The Green Sabre mission accomplished or all first Los Santos missions accomplished
stat  324 Deconstruction mission accomplished
stat  325 Verdant Meadows mission accomplished
stat  326 Highjack mission accomplished
stat  327 maybe Car stealing (wangs car owned) missions accomplished
stat  328 The Meat Business mission accomplished
stat  329 Saint Mark's Bistro mission accomplished
stat  330 Interdiction mission accomplished
stat  331 Learning to Fly (flying school) mission accomplished
stat  332 Black Project mission accomplished
stat  333 Green Goo mission accomplished
stat  334 Home Coming mission accomplished
stat  335 Riot mission accomplished 1
stat  336 maybe 555 WE TIP mission accomplished 2
stat  337 House Party mission accomplished
stat  338 Are you going to San Fierro? mission accomplished
stat  339 High Noon mission accomplished
stat  340 maybe all first Los Santos missions accomplished or The Green Sabre mission accomplished
stat  341 Catalina 1 mission accomplished
stat  342 maybe Stade and infernal races missions accomplished (Race Tournament / 8-track / Dirt Track



Well hope it will help anyone
have fun

[enforcA]
  • [enforcA]

    The original one.

  • Members
  • Joined: 09 Mar 2005

#16

Posted 05 August 2005 - 09:29 AM Edited by [enforcA], 07 August 2005 - 03:23 AM.

QUOTE (tomworld10 @ Aug 3 2005, 17:02)
Hi
I've started and finished to note all the stats that are use in the main.scm
i'm not sur for some of them and other i got no idea what they are for.
If someone know more or find what the others are used for.

CODE
stat  01 (not used in main.scm)
to
stat  20 (not used in main.scm)
stat  21 fat
stat  22 stamina
stat  23 muscle
stat  24 max health
stat  25 ????
stat  26 (not used in main.scm)
to
stat  45 (not used in main.scm)

..



Well hope it will help anyone
have fun

good point with the stats listing.. smile.gif

i was looking for the "how many people were killed by cj" stat because i wanted to add a "kill-o-meter" to the hud like in the comedy movie "hot shots 2" (edit: found it .. stat_121)

..

the stats i know sure of at the moment are:

Statistics IDs
the stats listed below have been tested in-game, for more stats look at the post above that was written by tomworld10

CODE
stat_0 - missions done

stat_3 - way done on foot
stat_4 - way done by car
stat_5 - way done by motorbike

stat_9 - way done by air vehicle like an airplane (and maybe helicopter and so on but not tested with helicopter yet)

stat_16 - money invested in vehicle repairs

stat_20 - money invested in food
stat_21 - cj's food "holding" (how much food cj has inside his stomach)

stat_23 - muscles

stat_25 - damage of vehicles (and (maybe) temporary "damage" of cj when he lost energy for example like by swimming under water for too long, it's a bit curious)
stat_26 - way done by fast (with pressed SHIFT key) swimming, over and under water
stat_27 - way done by bike/bicycle

stat_30 - money spent at the tattooshop
stat_31 - money spent at the barbershop

stat_33 - money spent on street whores

stat_44 - has to do with the training at the gym (will fill it out later what it is exactly)
stat_45 - has to do with the training at the gym (will fill it out later what it is exactly)
stat_46 - has to do with the training at the gym (will fill it out later what it is exactly)
stat_47 - has to do with the training at the gym (will fill it out later what it is exactly)

stat_62 - money spent for cj's appearance (barbershop, tattooshop, clothes store)

stat_64 - respect

stat_66 - (not 100% sure what it is exactly) sexiness or player gang (grove street gang) affiliation by wearing their gang colors, gang tattoos and a gang haircut .. also look at stat_80 .. both stats were influenced by cj's appearance

stat_68 - hits (by gun shots and by fist fight / close combat) that killed enemies (cops, enemy gangmembers and so on..)
stat_69 - weapon skill pistol

stat_72 - weapon skill shotgun

stat_75 - weapon skill uzi

stat_80 - (not 100% sure what it is exactly) sexiness or player gang (grove street gang) affiliation by wearing their gang colors, gang tattoos and a gang haircut .. also look at stat_66 .. both stats were influenced by cj's appearance

stat_120 - people (as well as cj himself) killed by others
stat_121 - people killed by cj
stat_122 - destroyed vehicles
stat_123 - destroyed boats
stat_124 - destroyed helicopters
stat_125 - total value of destroyed things
stat_126 - fired bullets
stat_127 - explosive weapons used (tested with grenades)
stat_128 - bullets/gunshots that hit their target
stat_129 - destroyed tires
stat_130 - number/amount of headshots
stat_131 - total number/amount of police wanted stars earned/received during gameplay
stat_132 - total number/amount of police wanted stars you were able to get rid of during gameplay
stat_133 - number of how many times you were caught/busted by police
stat_134 - days passed in-game
stat_135 - visits at the hospital
stat_136 - number of how many times you have saved your game
stat_137 - number/amount of used cheats
stat_138 - number/amount of paintings/paint jobs (visits at the pay'n'spray)
stat_139 - widest insanity jump
stat_140 - highest insanity jump
stat_141 - max. number of somersaults/backflips done during insanity jump
stat_142 - max. rotation during insanity jump
stat_143 - best insanity stunt -> "1" for "insanity stunt" and "0" for "insanity stunt not done yet" (don't know if this can go higher than "1")
stat_144 - number of monsterstunts found
stat_145 - number of monsterstunts done
stat_146 - started missions / missions started
stat_147 - successfully ended missions / missions done/finished


(i know my english is bad, if you want to correct me, do it blush.gif )

here is a pic how it looks in-game:

user posted image

greetings

ps.: when i get more stats tested in-game i will add it here by using the edit button

ckc
  • ckc

    Crackhead

  • Members
  • Joined: 06 Jul 2005

#17

Posted 10 August 2005 - 10:30 AM

how can a "turn left" distinguished from a "turn right"?

Opius
  • Opius

    General

  • Feroci
  • Joined: 27 Jun 2002

#18

Posted 10 August 2005 - 10:32 AM

You can't. You might be able to get something similar with the 'get_joystick_data'.

Demarest
  • Demarest

    what could be

  • BUSTED!
  • Joined: 12 Jul 2003

#19

Posted 17 August 2005 - 06:32 PM

QUOTE (Opius @ Jul 23 2005, 04:25)
CODE
1 = Move forward/backward
2 = Special Control Left/Right (Even on foot!)

Are you telling me there's no way to differentiate between forward and backwards or left and right? cryani.gif

demonj0e
  • demonj0e

    Sa Coder In Training

  • Members
  • Joined: 05 Apr 2005

#20

Posted 17 August 2005 - 07:38 PM

so using them stats that show how many kills youve made and stuff would it be possible to show the text on screen?
cuz i was thinking of maybe making a kill counter or summin

Demarest
  • Demarest

    what could be

  • BUSTED!
  • Joined: 12 Jul 2003

#21

Posted 17 August 2005 - 07:44 PM

Would depend on if there's opcodes for reading the stats instead of setting them. If so, sure it's possible.

[enforcA]
  • [enforcA]

    The original one.

  • Members
  • Joined: 09 Mar 2005

#22

Posted 17 August 2005 - 08:12 PM

QUOTE
so using them stats that show how many kills youve made and stuff would it be possible to show the text on screen?
cuz i was thinking of maybe making a kill counter or summin


yes and it's easy.. i've already made one, it's the 'body count' on the left upper corner of the pictures there: http://www.gtaforums...dpost&p=3093087

if you scroll a bit down in this thread you will find the post where i said how it works (like the body count in the comedy movie 'hot shots 2')

would be cool if someone would know how many people you have to kill in other games to win the game so that you could add these values to the counter and if you reach these values a message appears on screen, for example 'EQUAL TO: RESIDENT EVIL' .. but i don't know how many kills are done in other games so i only have the values that were used in the movie.. but adding games would be cool

QUOTE
Would depend on if there's opcodes for reading the stats instead of setting them. If so, sure it's possible.


yes there is an opcode for 'reading' the stats

CODE
0652: $htshts2 = stat  121 () ; integer


$htshts2 is the integer i used
stat 121 is the stat for how many people you killed

greetings

demonj0e
  • demonj0e

    Sa Coder In Training

  • Members
  • Joined: 05 Apr 2005

#23

Posted 17 August 2005 - 08:29 PM

ooh thanks bud ill have a try soon

Demarest
  • Demarest

    what could be

  • BUSTED!
  • Joined: 12 Jul 2003

#24

Posted 27 August 2005 - 03:14 PM

Pin this please.

spaceeinstein
  • spaceeinstein

    巧克力

  • Members
  • Joined: 17 Jul 2003
  • None

#25

Posted 19 September 2005 - 09:06 PM

More stats to add:
215 - bball challenge
143 - insane stunt bonuses (0-7)
37 - ITB stuff???
158 - Paramedic level
159 - firetruck
157 - vigilante
211 - kickstart
38 - money won from gambling
39 - money lost from gambling

Bob Ghengis Khan
  • Bob Ghengis Khan

    .

  • Members
  • Joined: 06 Sep 2005

#26

Posted 19 September 2005 - 09:10 PM

Is that pretty much everything then that is stored in a saved game? Whats left to prevent creating a mod that saves games differently so that you can use whatever mods you want, and not have to worry about using global variables, etc?

random_download
  • random_download

    :o

  • Members
  • Joined: 07 Mar 2004

#27

Posted 19 September 2005 - 09:16 PM

The save game stores all global vars and the positions of all running threads and their local vars.
QUOTE
creating a mod that saves games differently

You mean as in modifing the exe to run different code when show_save_screen opcode is executed? Possible... but extremly hard.

Demarest
  • Demarest

    what could be

  • BUSTED!
  • Joined: 12 Jul 2003

#28

Posted 19 September 2005 - 09:46 PM

QUOTE (Bob Ghengis Khan @ Sep 19 2005, 17:10)
Is that pretty much everything then that is stored in a saved game? Whats left to prevent creating a mod that saves games differently so that you can use whatever mods you want, and not have to worry about using global variables, etc?

Not only does Darkpact help to do that, but steps are being researched that may even peel back some of IT's limitations.

Bob Ghengis Khan
  • Bob Ghengis Khan

    .

  • Members
  • Joined: 06 Sep 2005

#29

Posted 19 September 2005 - 09:51 PM Edited by Bob Ghengis Khan, 19 September 2005 - 10:02 PM.

Really awesome what Darkpact manages to do, but what I'm wondering is why take that approach, why not change the way games are actually saved, ignoring the exisiting way of using save icons, by writing a script that saves and loads all of these variables?

Saved games could be compatible with a default scm thats changed only with this script, a barebones scm, and a fully modded one

Would it not be easier to stop all the hard labor of messing with SA's memory management, and just have a script that saves all the important variables? Thought there was a way to write to files with one of these hooks

I don't know all the details, just trying to learn some of them

Demarest
  • Demarest

    what could be

  • BUSTED!
  • Joined: 12 Jul 2003

#30

Posted 19 September 2005 - 10:07 PM

Well if ease is the aim, then a memory dump IS the easiest and that is precisely what the save file is. There was a monster effort at cracking the VC save file once upon a time. Patrick in the end created a tool that could move parked cars by only editing the save file.

I'd go in deeper, but this is a pinned topic and this is off-topic, so best left for its own thread.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users