Lançado
Clique para baixar o mod VehFuncs
Meu primeiro mod .asi!
Com o objetivo de substituir o Enhanced Functions, VehFuncs será um mod que visa trazer novas funções aos veículos, assim como Improved Vehicle Features e Active Dashboard — que infelizmente não são de código aberto.

Vai ser ótimo fazer essa recreação pois Enhanced Functions está um tanto mal feito (principalmente a versão de armas), além de que fazer isso por cleo é muito difícil, pode até ser considerado masoquismo. Em .asi será muito mais fácil e penso em deixá-lo em código aberto para qualquer um contribuir.
Clique para baixar o mod VehFuncs
Meu primeiro mod .asi!
Com o objetivo de substituir o Enhanced Functions, VehFuncs será um mod que visa trazer novas funções aos veículos, assim como Improved Vehicle Features e Active Dashboard — que infelizmente não são de código aberto.

Vai ser ótimo fazer essa recreação pois Enhanced Functions está um tanto mal feito (principalmente a versão de armas), além de que fazer isso por cleo é muito difícil, pode até ser considerado masoquismo. Em .asi será muito mais fácil e penso em deixá-lo em código aberto para qualquer um contribuir.
O foco é criar novas funções ainda não possíveis, como um novo sistema de extras (variações de peças) muito mais avançado usando recursividade num sistema de hierarquia.

Apelidado de “Recursive Extras“, essa função promete resolver todos os problemas de variações (extras) dos veículos!
Entender é simples: um extra dentro do outro… infinitamente.

Apelidado de “Recursive Extras“, essa função promete resolver todos os problemas de variações (extras) dos veículos!
Entender é simples: um extra dentro do outro… infinitamente.
Caso um extra for selecionado, este extra selecionará um “filho”, e assim por diante.
E vamos além: Que tal características do veículo dentro do próprio .dff dele?
Veja um exemplo de organização de “extras”:

Este é só um exemplo… pode ser que ninguém nunca faça veículos tão caprichosamente assim, mas o que importa são as possibilidades.
Outro exemplo palpável é variações de som automotivo: Imagine que há diferentes caixas de som, e dependente do tipo de caixa selecionada, aparecerá diferentes alto-falantes e corneteiras.
Nota que o sistema é extremamente flexível. Você pode adicionar por exemplo “_pj=1” dentro de outros extras. Você pode até mesmo criar uma seleção de extra só para aplicar paintjobs, motoristas etc!
E por que tem que ser extras? As características/propriedades dos veículos funcionarão também fora dos extras, assim podendo configurar várias características do seu carro dentro do .dff dele, sem nenhum arquivo adicional!
Do mesmo modo que agora será possível adicionar extras em absolutamente qualquer parte do veículo e não só no “chassis”. Isso mesmo, agora é possível adicionar peças variando mesmo nas portas… e até mesmo variação de rodas! E em qualquer tipo de veículo — pense variações de guidões e rodas de moto ou bicicleta.
E se eu quero que o extra selecionado no chassis combine com o da porta?
Seleção de categoria!
No topo dos nodes você poderá setar uma lista de categorias que o script selecionará aleatoriamente, e com a categoria selecionado, será definido a seleção de peças.

O exemplo temos um “Uno de firma”, ou “Uno velho”.
Caso ser selecionado o de firma (“unofirma”), além de 1 das 2 variações de escada, também terá adesivo na porta (e até os danos funcionarão!)
E o quê do atual progresso?

Todo o básico de seleção de extras já está funcionando, faltando o sistema de categorias, propriedades do veículo, adaptação para damage / arrumar o carro, recriar o sistema de variação de rodas (tanto difícil) e o mais difícil de tudo: fazer com que as garagens do jogo guardem todas essas informações, senão a cada vez que a garagem abrir o veículo aparecerá diferente.
Grandes agradecimentos ao Chrystian Farias que me deu ótimas ideias para o sistema!
Fiquem calmos que quando tudo estiver terminado eu criarei uma “wiki” com todas as instruções e possibilidades. Ainda tem várias coisas que pretendo adicionar que nem pude citar aqui.
“…espera, tudo isso só para falar dessa função? Não seria um novo Enhanced Functions?”
Exato, mas só esse sistema de extras já é um absurdo e merece atenção. O mod também contará com outras coisas pequenas.
E é aí vem a ideia de vocês darem sugestões.
Deem sugestões!
Que funções estão faltando nos veículos do jogo?
O que Improved Vehicle Features e Active Dashboard deviam fazer que não fazem?
Você tem mais alguma ideia que seria útil para mods de veículos?
Deixem nos comentários.
E vamos além: Que tal características do veículo dentro do próprio .dff dele?
Veja um exemplo de organização de “extras”:

Ou seja:
O mod selecionará aleatoriamente o extra “gás” ou “carga”.
Caso selecionar o “gás”, também aplicará um ID personalizado ao motorista (190) configurado no “drv=190” (“drv” de “driver”) e a paintjob 1 configurado no “pj=1” (de “paintjob”), que seria uma pintura de caminhão de gás.
E o que é aquele “:2”? É quantos extras “filhos” serão selecionados.
Neste caso, os filhos do extra “gás” são “botijões” e “interior”, selecionará os 2.
“botijões” tem 2 extras que contém variações de botijões, será selecionado e aparecerá 1 deles.
“Interior” tem 3 extras e está configurado para selecionar 2 extras (“:2”), portanto selecionará 2 dos 3: “revistas” e/ou “garrafas” e/ou “pédecabra”. Caso selecionar “garrafas”, também há chance de selecionar “copo”.
E caso não ser selecionado o “gás”? Será selecionado “carga”.
Selecionando “carga”, o script aplicará um motorista personalizado de ID 160 ou 161.
E temos 2 extras: “móveis” e “entulho”, onde caso for selecionado “entulho”, aplicará entre 7 e 9 níveis de sujeira (“drt”, de “dirty” em inglês) (a configuração vai de 0 à 9).
Este é só um exemplo… pode ser que ninguém nunca faça veículos tão caprichosamente assim, mas o que importa são as possibilidades.
Outro exemplo palpável é variações de som automotivo: Imagine que há diferentes caixas de som, e dependente do tipo de caixa selecionada, aparecerá diferentes alto-falantes e corneteiras.
Nota que o sistema é extremamente flexível. Você pode adicionar por exemplo “_pj=1” dentro de outros extras. Você pode até mesmo criar uma seleção de extra só para aplicar paintjobs, motoristas etc!
E por que tem que ser extras? As características/propriedades dos veículos funcionarão também fora dos extras, assim podendo configurar várias características do seu carro dentro do .dff dele, sem nenhum arquivo adicional!
Do mesmo modo que agora será possível adicionar extras em absolutamente qualquer parte do veículo e não só no “chassis”. Isso mesmo, agora é possível adicionar peças variando mesmo nas portas… e até mesmo variação de rodas! E em qualquer tipo de veículo — pense variações de guidões e rodas de moto ou bicicleta.
E se eu quero que o extra selecionado no chassis combine com o da porta?
Seleção de categoria!
No topo dos nodes você poderá setar uma lista de categorias que o script selecionará aleatoriamente, e com a categoria selecionado, será definido a seleção de peças.

O exemplo temos um “Uno de firma”, ou “Uno velho”.
Caso ser selecionado o de firma (“unofirma”), além de 1 das 2 variações de escada, também terá adesivo na porta (e até os danos funcionarão!)
E o quê do atual progresso?

Todo o básico de seleção de extras já está funcionando, faltando o sistema de categorias, propriedades do veículo, adaptação para damage / arrumar o carro, recriar o sistema de variação de rodas (tanto difícil) e o mais difícil de tudo: fazer com que as garagens do jogo guardem todas essas informações, senão a cada vez que a garagem abrir o veículo aparecerá diferente.
Grandes agradecimentos ao Chrystian Farias que me deu ótimas ideias para o sistema!
Fiquem calmos que quando tudo estiver terminado eu criarei uma “wiki” com todas as instruções e possibilidades. Ainda tem várias coisas que pretendo adicionar que nem pude citar aqui.
“…espera, tudo isso só para falar dessa função? Não seria um novo Enhanced Functions?”
Exato, mas só esse sistema de extras já é um absurdo e merece atenção. O mod também contará com outras coisas pequenas.
E é aí vem a ideia de vocês darem sugestões.
Deem sugestões!
Que funções estão faltando nos veículos do jogo?
O que Improved Vehicle Features e Active Dashboard deviam fazer que não fazem?
Você tem mais alguma ideia que seria útil para mods de veículos?
Deixem nos comentários.
(thanks to SHIFAAH9 for translating)
Released
Click here to mod VehFuncs
My first .asi mod!
In order to replace the Enhanced Functions , VehFuncs will be a mod that aims to bring new functions to vehicles, as well as Improved Vehicle Features and Active Dashboard – which unfortunately are not open source.

It will be great to do this recreation because Enhanced Functions is a bit badly done (especially the weapons version), besides that doing this by cleo is very difficult, it may even be considered masochism. In .asi it will be much easier and I think to leave it in open source for anyone to contribute.
Released
Click here to mod VehFuncs
My first .asi mod!
In order to replace the Enhanced Functions , VehFuncs will be a mod that aims to bring new functions to vehicles, as well as Improved Vehicle Features and Active Dashboard – which unfortunately are not open source.

It will be great to do this recreation because Enhanced Functions is a bit badly done (especially the weapons version), besides that doing this by cleo is very difficult, it may even be considered masochism. In .asi it will be much easier and I think to leave it in open source for anyone to contribute.
The focus is to create new functions that are not yet possible, such as a new system of extras (variations of parts) much more advanced using recursion in a hierarchy system.

Dubbed “Recursive Extras“, this function promises to solve all the problems of variations (extras) of vehicles!
To understand is simple: an extra inside the other… infinitely.

Dubbed “Recursive Extras“, this function promises to solve all the problems of variations (extras) of vehicles!
To understand is simple: an extra inside the other… infinitely.
If an extra is selected, this extra will select a “child”, and so on.
And let’s go further: How about vehicle characteristics within the .dff itself?
Here’s an example of organizing “extras”:

This is just an example… it may be that no one ever makes vehicles so capriciously so, but what matters is the possibilities.
Another palpable example is variations of automotive sound: Imagine there are different boxes, and depending on the type of boxes, different speakers and tweeters will appear.
Note that the system is extremely flexible. You can add for example “_pj=1” inside other extras. You can even create an extra selection just to apply paintjobs, drivers etc!
And why does it have to be extras? The features / properties of the vehicles will also work out of the extras, so you can configure various features of your car inside its .dff file, without any additional files!
In the same way that it will now be possible to add extras in absolutely any part of the vehicle and not only in the “chassis”. That’s right, now it’s possible to add varying parts even on doors… and even variation of wheels! And in any type of vehicle – think variations of handlebars and bike or bike wheels.
What if I want the extra selected in the chassis to match that of the door?
Class Selection!
At the top of the nodes you can set up a list of classes that the script will randomly select, and with the class selected, the selection of parts will be defined.

The example we have is a “Company Uno”, or “Old Uno”. If you select the company Uno (“unocompany”), in addition to 1 of the 2 ladder variations, you will also have sticker on the door (and even damage will work!
(if you didn’t understood, this is a meme)
And what about the current progress?

All the basics of extras selection are already working, lacking the class system, vehicle properties, adapting to damage / rearranging the car, recreating the wheel variation system (both difficult) and the most difficult of all: the garages of the game keep all this information, except every time the garage opens the vehicle will appear different.
Big thanks to Chrystian Farias who gave me great ideas for the system!
Be calm that when everything is finished I will create a wiki with all the instructions and possibilities. There are still several things I want to add that I could not even mention here.
“…wait, all this just to talk about this function? It would not be a new Enhanced Functions?”
Exactly, but only this system of extras is already absurd and deserves attention.The mod will also have other small things.
(sorry for portuguese, basically is a precise speedometer working like real cars)
And here is the idea of you giving suggestions.
Give suggestions!
What functions are missing in the game vehicles?
What should Improved Vehicle Features and Active Dashboard don’t do?
Do you have any more ideas that would be useful for vehicle mods?
Leave it in the comments.
And let’s go further: How about vehicle characteristics within the .dff itself?
Here’s an example of organizing “extras”:

That is:
The mod will randomly select the extra “gas” or “cargo”.
If you select the “gas”, you will also apply a custom ID to the driver (190) set on “drv = 190” (“drv” from “driver”) and paintjob 1 set in “pj=1” (“pj” from “paintjob”) , which would be a gas truck painting.
And what is that “:2”? It’s how many extras “children” will be selected.
In this case, the children of the extra “gas” are “cylinders” and “interior”, will select the 2.
“cylinders” has 2 extras that contain cylinders variations, it will be selected and 1 of them will appear.
“interior” has 3 extras and is set to select 2 extras (“:2”), so you will select 2 of the 3: “magazines” and / or “bottles” and / or “crowbar”. If select “bottles”, there is also a chance to select “cup”.
What if the “gas” is not selected? “cargo” will be selected.
By selecting “cargo” the script will apply a custom driver ID 160 or 161.
And we have 2 extras: “furniture” and “rubble”, where “rubble” is selected, it will apply between 7 and 9 levels of dirt (“drt” from “dirty”) (the configuration goes from 0 to 9).
This is just an example… it may be that no one ever makes vehicles so capriciously so, but what matters is the possibilities.
Another palpable example is variations of automotive sound: Imagine there are different boxes, and depending on the type of boxes, different speakers and tweeters will appear.
Note that the system is extremely flexible. You can add for example “_pj=1” inside other extras. You can even create an extra selection just to apply paintjobs, drivers etc!
And why does it have to be extras? The features / properties of the vehicles will also work out of the extras, so you can configure various features of your car inside its .dff file, without any additional files!
In the same way that it will now be possible to add extras in absolutely any part of the vehicle and not only in the “chassis”. That’s right, now it’s possible to add varying parts even on doors… and even variation of wheels! And in any type of vehicle – think variations of handlebars and bike or bike wheels.
What if I want the extra selected in the chassis to match that of the door?
Class Selection!
At the top of the nodes you can set up a list of classes that the script will randomly select, and with the class selected, the selection of parts will be defined.

The example we have is a “Company Uno”, or “Old Uno”. If you select the company Uno (“unocompany”), in addition to 1 of the 2 ladder variations, you will also have sticker on the door (and even damage will work!
(if you didn’t understood, this is a meme)
And what about the current progress?

All the basics of extras selection are already working, lacking the class system, vehicle properties, adapting to damage / rearranging the car, recreating the wheel variation system (both difficult) and the most difficult of all: the garages of the game keep all this information, except every time the garage opens the vehicle will appear different.
Big thanks to Chrystian Farias who gave me great ideas for the system!
Be calm that when everything is finished I will create a wiki with all the instructions and possibilities. There are still several things I want to add that I could not even mention here.
“…wait, all this just to talk about this function? It would not be a new Enhanced Functions?”
Exactly, but only this system of extras is already absurd and deserves attention.The mod will also have other small things.
(sorry for portuguese, basically is a precise speedometer working like real cars)
And here is the idea of you giving suggestions.
Give suggestions!
What functions are missing in the game vehicles?
What should Improved Vehicle Features and Active Dashboard don’t do?
Do you have any more ideas that would be useful for vehicle mods?
Leave it in the comments.