Összes téma > Steam fórumok > Off Topic > Téma részletei
How to put cars from your addons in your Garry's Mod maps
This will teach you the trick of adding cars from Garry's Mod Workshop addons to your map. Only unique vehicle addons like SCars can't be added to the map because it needs to be based off of the jeep script. Key words are in ()

1. Place a (prop_vehicle_jeep) in your map.

2. Open the (addons) folder located in your ($SteamUserDir\garrysmod\garrysmod\).

3. Look for the (.gma) file that should be named close to the vehicle addon's name and open it with a text editor like (Notepad++).

4. In the (.gma) file scroll down or use the search to find a text format that looks a lot like this:
local Category = "Source Vehicles"

local V = {
// Required information
Name = "Cadillac Gage V100 APC",
Class = "prop_vehicle_jeep",
Category = Category,

// Optional information
Author = "Doc",
Information = "V100 APC",
Model = "models/source_vehicles/apc.mdl",

KeyValues = {
vehiclescript = "scripts/vehicles/oldapc.txt"
}
}

list.Set( "Vehicles", "apc", V )

5. Copy the directory after the word (Model =) and paste it in the (World Model) key value in the (prop_vehicle_jeep) properties.
HINT: the prop will say ERROR in the Hammer editor but it will spawn using the correct model when the game starts and the direction its going to spawn is the front facing out at the green line that appears when selecting a prop.

6. Copy the directory after the word (vehiclescript =) and paste it in the (Vehicle Script File) key value in the (prop_vehicle_jeep) properties.

--------------------------------------------------------------------------------------------------------------------------------------
You are done setting up your vehicle! I'll teach you more tricks and things you can do with the vehicle later so keep an eye out for further information on this post.
--------------------------------------------------------------------------------------------------------------------------------------
< >
13/3 megjegyzés mutatása
please tell me how well this works and if you have issues let me know and I'll help out the best i can
Yet again, Awsome tutorial!
@øBTø | Problem?
my tutorials have been moved to the garrys mod guides for viewng and thats were they will be for now on. To get to the guides go to the workshop page and on the top you will see a guides tab click it and search for them in eather the workshop or the walkthoughs sections.
< >
13/3 megjegyzés mutatása
Laponként: 1530 50

Összes téma > Steam fórumok > Off Topic > Téma részletei
Közzétéve: 2012. dec. 29., 16:25
Hozzászólások: 3