I'm trying to build a mod.lua file that will do a mass update of the road-traffic car models. I'd like to give them more realistic properties as well as new soundsets (which I have built separately).
I'm trying to build some scalable code that can be used for multiple models, and flexible code that can find .mdl files in different folder structures. Once I've got it working with a sample vehicle I'll expand and add in other vehicles.
To start with, I've tried to write a mod that will update any model using "beetle_1948_v2.mdl", in order to assign new properties and a new soundset.
I'm new to this and need some help. Could anyone look through my attached draft mod.lua file and comment?
Ich versuche, eine mod.lua-Datei zu erstellen, die ein Massenupdate der Fahrzeuge im Straßenverkehr durchführt. Ich möchte ihnen realistischere Eigenschaften sowie neue Soundsets (die ich separat erstellt habe) geben.
Ich versuche, skalierbaren Code zu erstellen, der für mehrere Modelle verwendet werden kann, und flexiblen Code, der .mdl-Dateien in verschiedenen Ordnerstrukturen finden kann. Sobald es mit einem Beispielfahrzeug funktioniert, werde ich es erweitern und andere Fahrzeuge hinzufügen.
Zuerst habe ich einen Mod geschrieben, der jedes Modell mit „beetle_1948_v2.mdl“ aktualisiert, um neue Eigenschaften und ein neues Soundset zuzuweisen.
Ich bin neu hier und brauche Hilfe. Könnte jemand meinen angehängten Entwurf der mod.lua-Datei durchsehen und einen Kommentar abgeben?