Coding

 Reply to this postStart new topic

[Doc] Car Component ID's

Deji
post Nov 4 2010, 04:44 AM
Post #1


Coding like a Rockstar!

Group Icon

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



Car Components


Component A

0 - Front Left Headlight
1 - Front Right Headlight
3 - Rear Headlights
4 - Front Windsheild
5 - Front Bumper
6 - Rear Bumper

Negative values seem to be able to control Component B, too!

-3 - Right Passenger Door.
-5 - Boot.
-6 - Bonnit/Hood.
-7 - Rear left tire.
-8 - Front right tire.
-9 - Rear left tire.
-10 - Front left tire.
-11 - 068A makes car set alight, oddly.


Component B

0 - Bonnit/Hood
1 - Boot
2 - Front Left Door (driver)
3 - Front Right Door (passenger)
4 - Rear Left Door (untested)
5 - Rear Right Door (untested)


I tested these on a Manana, which only has a few features... So documentation is a little incomplete.. but it's all I needed tongue.gif


Other
1 - Chassis
2 - Front Right Wheel
4 - Rear Right Wheel
5 - Front Left Wheel
7 - Rear Left Wheel
8 - Front Right Door
9 - Rear Right Door
10 - Front Left Door
11 - Rear Left Door
12 - Right Headlight
13 - Left Tail Light
16 - Bonnit
17 - Boot
18 - Front Windsheild
19 - Exhaust
20 - Exhaust 2? (plane)
21 - Plane Wheel 1
22 - Plane Wheel 2
23 - Plane Wheel 3
24 - Plane Wheel 4

Values over 24 or 25 seem to crash. There is space for 25 of these in the car pool (+648 ComponentID*4 for a pointer to the component object), so 0 is probably one, too.


--------------------
Go to the top of the page
 
+Quote Post
Adler
post Nov 4 2010, 06:28 AM
Post #2


Devil's Advocate

Group Icon

Posts: 413
From: CA US
Joined: 26-July 09



QUOTE (Deji @ Nov 3 2010, 09:44 PM) *
3 - Rear Headlights

Hahaha that's quite the paradox there. banana.gif

Nice job on the doc though! I was wondering what the components were.

This post has been edited by Adler: Nov 4 2010, 06:29 AM


--------------------
Go to the top of the page
 
+Quote Post
Deji
post Dec 29 2010, 01:59 AM
Post #3


Coding like a Rockstar!

Group Icon

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



Updated the first post with a list of components which can be used in functions made for car components.. which are actually completely different from the ones we know in the SCM.


--------------------
Go to the top of the page
 
+Quote Post
LINK/2012
post Sep 18 2011, 12:37 AM
Post #4


I will kill you

Posts: 126
Joined: 13-May 11



A Collapse in the topic, The componentsA are ComponentsB and ComponentsB are ComponentsA

This:
0697: set_car 10@ remove_componentB 5 visible_effect_flag 0
Removed the Front Bumper

&

0689: set_car 10@ remove_componentA 5 visible_effect_flag 0
Removed the RRDoor

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

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