Easy weapon model changing: Difference between revisions
No edit summary |
Thunder4ik (talk | contribs) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Multiple issues| | |||
{{Dead end|date=January 2024}} | |||
{{orphan}} | |||
{{cleanup}} | {{cleanup}} | ||
}} | |||
{{pov}} | |||
Welcome to this easy model changing tutorial for whatever mod you're mapping for, the first thing we will cover. Is that | Welcome to this easy model changing tutorial for whatever mod you're mapping for, the first thing we will cover. Is that | ||
Line 6: | Line 12: | ||
B) you know where to find the script | B) you know where to find the script | ||
The first thing to do, is go to your scripts folder inside of your mod, and open up the name of the weapon you will be chaning. | The first thing to do, is go to your scripts folder inside of your mod, and open up the name of the weapon you will be chaning. | ||
C:\Program Files\Steam\steamapps\SourceMods\YOURMODNAME\scripts | C:\Program Files\Steam\steamapps\SourceMods\YOURMODNAME\scripts | ||
For example, the file used in this tutorial is the "Weapon_Pistol.txt" script. Inside the script you will find the following lines: | |||
For example, the file | |||
[[File:The.txtfile.jpg]] | [[File:The.txtfile.jpg]] | ||
The first thing to look at is the lines in the script for the weapon model: | |||
"viewmodel" "models/weapons/v_pistol.mdl" | |||
"playermodel" "models/weapons/w_pistol.mdl" | |||
These models will be changed. Extract the other weapon model you have into the correct folders, and make sure they're where they need to be. Next, look at the ".mdl" file for the weapons you had. For example, the directory for the models used in this tutorial is: | |||
SourceMods\YOURMODSNAME\models\weapons\ar33 | |||
In the pistol's script. change the <code>models/weapons/v_pistol</code> line to the file name, but before you do it. Do not include the <code>SourceMods\YOURMODSNAME\</code> portion of the directory path, or the file won't work. Now the script should look like this. | |||
"viewmodel" "models/weapons/ar33/v_ar33.mdl" | |||
"playermodel" "models/weapons/ar33/w_ar33.mdl" | |||
You can edit the <code>"clip_size"</code> value to whatever amount of ammo you want to be stored in the pistol. For example, a Glock 17 holds 17 rounds in its magazine. So if you have a Glock 17 model, set it to this: | |||
You can edit the | |||
"clip_size" | |||
to whatever | |||
"clip_size" "17" | |||
==Troubleshooting== | |||
If the model is changed, but it's purple checkered in game, make sure the materials for the model were installed to the right folder. If the weapons model doesn't show up, check if you misspelled anything in the script's viewmodel and playermodel. | |||
[[Category:Tutorials]] |
Latest revision as of 22:41, 21 January 2024




January 2024

You can help by


For help, see the VDC Editing Help and Wikipedia cleanup process. Also, remember to check for any notes left by the tagger at this article's talk page.

Welcome to this easy model changing tutorial for whatever mod you're mapping for, the first thing we will cover. Is that
A) You have the model you want to replace with
B) you know where to find the script
The first thing to do, is go to your scripts folder inside of your mod, and open up the name of the weapon you will be chaning.
C:\Program Files\Steam\steamapps\SourceMods\YOURMODNAME\scripts
For example, the file used in this tutorial is the "Weapon_Pistol.txt" script. Inside the script you will find the following lines:
The first thing to look at is the lines in the script for the weapon model:
"viewmodel" "models/weapons/v_pistol.mdl" "playermodel" "models/weapons/w_pistol.mdl"
These models will be changed. Extract the other weapon model you have into the correct folders, and make sure they're where they need to be. Next, look at the ".mdl" file for the weapons you had. For example, the directory for the models used in this tutorial is:
SourceMods\YOURMODSNAME\models\weapons\ar33
In the pistol's script. change the models/weapons/v_pistol
line to the file name, but before you do it. Do not include the SourceMods\YOURMODSNAME\
portion of the directory path, or the file won't work. Now the script should look like this.
"viewmodel" "models/weapons/ar33/v_ar33.mdl" "playermodel" "models/weapons/ar33/w_ar33.mdl"
You can edit the "clip_size"
value to whatever amount of ammo you want to be stored in the pistol. For example, a Glock 17 holds 17 rounds in its magazine. So if you have a Glock 17 model, set it to this:
"clip_size" "17"
Troubleshooting
If the model is changed, but it's purple checkered in game, make sure the materials for the model were installed to the right folder. If the weapons model doesn't show up, check if you misspelled anything in the script's viewmodel and playermodel.