Vehicles, singeplayer, modding

Messages
54
Reaction score
28
Points
120
Location
City Parking
I am trying to drive and view the vehicles on gm_construct, however I can only find the prop cars, not real cars. I also want to find the .qc and model files, but I cannot find them. I want to try and mess with the vehicles a bit. So, my questions put clearly:
  1. How do I spawn drivable cars in singleplayer?
  2. Can I modify them (e.g. add spoilers, change colour, etc)?
  3. Where do I find the .qc files for the vehicles on my PC?
  4. Where do I find the model files for the vehicles on my PC?
 
I am trying to drive and view the vehicles on gm_construct, however I can only find the prop cars, not real cars. I also want to find the .qc and model files, but I cannot find them. I want to try and mess with the vehicles a bit. So, my questions put clearly:
  1. How do I spawn drivable cars in singleplayer?
  2. Can I modify them (e.g. add spoilers, change colour, etc)?
  3. Where do I find the .qc files for the vehicles on my PC?
  4. Where do I find the model files for the vehicles on my PC?

Unfortunately this is not something can be easily done as I believe you need a way to have the entirety of the gamemode/framework that perp runs on in order to get the same statistics and such. To my knowledge (correct me if I'm wrong) but most of the vehicles in perp are from the TDM base.

As for the rest I believe @AceAbo is fairly knowledge in the other areas and might be able to help you.
 
Unfortunately this is not something can be easily done as I believe you need a way to have the entirety of the gamemode/framework that perp runs on in order to get the same statistics and such. To my knowledge (correct me if I'm wrong) but most of the vehicles in perp are from the TDM base.

As for the rest I believe @AceAbo is fairly knowledge in the other areas and might be able to help you.
Yes, they originate from TDM, but are modified.
And thanks for letting me know about the special perp gamemode. I thought I was dumb lol
 
You would have to use GMAD to decompile the content packs to get access to the .qc model files for the vehicles. I've done this quite a few times.

I will be taking an excerpt from @Super_'s SFM guide, which you can find HERE.
Extracting the PERP content from Garry's Mod

In order to extract the content from Garry's Mod, you will first need to navigate to the following directory:
Steam\steamapps\workshop\content\4000
Once here, you will need open the following the following folders:
  • 2897742669
  • 2103606343
  • 2894498893
Inside each of these folders you will find a file called content.gma. These contain all the models, materials, particles, etc. for each of the addons that you'll need. However, in order to actually access this content you will need to navigate in a separate window/tab to the following folder:
Steam\steamapps\common\GarrysMod\bin
Once here, locate the program called gmad.exe. This is how Garry's Mod reads .gma files but it can also be used to unpack them into folders that we can then mount into SFM. In order to unpack them, simply drag the content.gma onto gmad.exe. This will then open a window for a few moments with gmad.exe as it extracts the content. Once complete, you will see inside the same folder that a new folder has been created called content. This contains everything you will need for the next step below.

If you want your content to remain up-to-date, make sure to re-extract the content and re-mount into SFM so you have the latest models and materials when they release.

Do note that the content packs' IDs may have changed over the years since that thread's creation, so you'll probably have to go to the workshop, find the page for the content packs and copy the link to find the page ID, which is directly linked to the folder ID when downloaded.
 
TL;DR: This won't answer any of your questions if you wish to mess around with textures / modelling

If you wish to achieve the same driving mechanics as on the server, that isn't possible. Vehicle scripts (aka vehicle controls) are completely server-sided and are not networked to the client, nor are they in the content packs. You will have to manually re-create the vehicle scripts for each car.

A lot of the models & their respective textures are taken directly from TDMCars, but not the vehicle scripts. As far as I know, the vehicle scripts are entirely custom-made & tailored for each vehicle.

Thanks! Can't find them, but it does help!
You need to subscribe to the TDMCars addons' for them to be available in-game. Just having the PERPHeads content downloaded won't give you any of the vehicles under the Q menu
 
Back
Top