res/ind car identification
Posted: Sun Feb 25, 2018 14:16
Hi, in the past you had to override one of the cars "$carres00", ..., "$carind00", ... in order to get your own residential/commercial/industrial cars into the game. Version 437 will change that behavior. The game will then identify such cars not by their id but by the tags they set.
To mark your car as level1 residential car use
For a level 3 industrial car use
The complete definition of a level 1 residential car would look like
I consider to will add support for plugins that aren't updated to these changes (as by default, a override would remove any tag information, therefore outdated plugins wouldn't work anymore). These changes are needed in order to add more rci cars without tampering with the existing ones.
Plugin creators who might find this information useful: @CommanderABab @Josh @JustAnyone @KoalaGuy @A dutch Guy @22Alpha @Borbor @former member
To mark your car as level1 residential car use

Code: Select all
"meta":{
"tags":{
"carres0":{}
}
}

Code: Select all
"meta":{
"tags":{
"carind2":{}
}
}

Code: Select all
{
"id":"$carres00",
"type":"car",
"frames":[
{"x":512,"y":512,"w":12,"h":10,"count":8}
],
"v2":true,
"auto colorize":true, // Can be used to color white frames
"flag normal":false, // This is not a normal car as it's not a truck
"flag pkw":true, // And only for person transport
"meta":{
"tags":{
"carres0":{} // You may use mutliple tags for one car
}
}
}
Plugin creators who might find this information useful: @CommanderABab @Josh @JustAnyone @KoalaGuy @A dutch Guy @22Alpha @Borbor @former member