UGX-Mods

Call of Duty 5: World at War => Tutorial Desk => Mapping => Topic started by: spyguts97 on August 13, 2014, 09:59:41 pm

Title: [Tutorial] Objective-style Wall Weapons (as seen in Tank Yard) w/o assman
Post by: spyguts97 on August 13, 2014, 09:59:41 pm
OBJECTIVE-STYLE WALL WEAPONS TUTORIAL

I will show you how to make the special objective-style wall buys like you've seen in Tank Yard (http://ugx-mods.com/forum/index.php?topic=3625.0) without asset manager.

WHAT YOU NEED
Notepad++
[DOWNLOAD HERE] (http://notepad-plus-plus.org/download/v6.6.8.html)
(obviously) Your mod tools

The following steps will take you through Notepad++ and Radiant.

STEP 1: Notepad++
Locate your weapon's world model in your root/raw/xmodel folder. For this tutorial, I will be using the MP40.
(https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fi62.tinypic.com%2F9bg303.png&hash=a1583fd7de715a237c7d20339c81f159864028f1)

STEP 2
Make a copy of the xmodel file and rename it to whatever you want (I suggest just adding "_obj" for objective.)
EXAMPLE: weapon_zombie_mp40_smg_obj
(https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fi62.tinypic.com%2F2myurfr.png&hash=ac6c3e7e444f984ede023052837f934448b88d03)

STEP 3
If you've installed Notepad++ correctly, you can open the file by right-clicking and clicking on "Edit with Notepad++."
(https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fi59.tinypic.com%2F10xey6a.png&hash=6f2109ff443bbce458c507f4ee0a81f0b6ad7aeb)

STEP 4
You should see this:
(https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fi59.tinypic.com%2F125qh02.png&hash=1f90958f905511288333f7f9b8e8ac62ab3bccf8)

Now replace each of the "mtl_"... whatever your weapon is... with "mtl_weapon_explosives_obj" like so:
(https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fi60.tinypic.com%2Ff1ax5z.png&hash=da4f978fcebe4edac9d8ad7b2d2b4447d93b5734)

Press Ctrl+S to save the file.

BONUS STEP
Now if you want to see what it will look like in game (non-animated), open it up in Asset Viewer and look for your file for a quick preview.
(https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fi57.tinypic.com%2Fsm3cpx.png&hash=61614381597b974fdbf6111c8250bd144f3f308b)

STEP 5: Radiant
The wall buy is the same as any of the wallbuys in the past with an extra step.
I assume all of you know how to setup weapon wallbuys.
In this case, however, I will use the prefab for the MP40 wallbuy.
I have stamped the prefab and deleted the chalk.
I've also deleted unneeded kvps that have to deal with the chalk.
(https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fi57.tinypic.com%2Fjfhszk.png&hash=cbe8782581eb553c8af96c63d21a8fef33eb33a8)

STEP 6
Select the script_model and press the Spacebar to make a copy.

Move it so the copy and the script_model are in the same position.

STEP 7
If not already shown, press the "N" key to show your entity KVPs.

Rename the classname KVP to "misc_model" and delete the targetname and target KVPs.

Click on the model KVP and you will see the "..." appear. Click that and look for your "weapon_..._obj."
(https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fi59.tinypic.com%2F28vxgr7.png&hash=dbb23d5cfad279cc5b0980551a6e373cfc0eca56)

Be aware that the "_obj" model is invisible because for some reason Radiant makes it that way.

Now save your map, compile, and test it out :)

This tutorial was originally requested by fatboypro.
Title: Re: [Tutorial] Objective-style Wall Weapons (as seen in Tank Yard) w/o assman
Post by: SoulTaker on August 13, 2014, 10:24:40 pm
AWESOME ! Might have to use this I love the wall buys in Tank Yard man.
 :D
Title: Re: [Tutorial] Objective-style Wall Weapons (as seen in Tank Yard) w/o assman
Post by: Dust on August 13, 2014, 10:45:19 pm
sorry havent got around to playing tank yard yet but what do you mean by "objective-style wall weapons"?
Title: Re: [Tutorial] Objective-style Wall Weapons (as seen in Tank Yard) w/o assman
Post by: spyguts97 on August 13, 2014, 10:51:25 pm
sorry havent got around to playing tank yard yet but what do you mean by "objective-style wall weapons"?
Like in campaign, there are objectives that glow gold. This tut makes wall weapons do that instead of the iconic chalk. There's a picture in the tutorial!
Title: Re: [Tutorial] Objective-style Wall Weapons (as seen in Tank Yard) w/o assman
Post by: fatboypro on August 13, 2014, 10:51:56 pm
cant you also do this with any other model?
Title: Re: [Tutorial] Objective-style Wall Weapons (as seen in Tank Yard) w/o assman
Post by: spyguts97 on August 13, 2014, 10:53:17 pm
cant you also do this with any other model?
Yes technically you can but don't see why you should unless you want players to look at something important
Title: Re: [Tutorial] Objective-style Wall Weapons (as seen in Tank Yard) w/o assman
Post by: RamboBadass on August 13, 2014, 11:14:13 pm
Neat man. Maybe I'll find a use in my Origins map. :)
Title: Re: [Tutorial] Objective-style Wall Weapons (as seen in Tank Yard) w/o assman
Post by: HitmanVere on August 14, 2014, 08:26:37 am
Tut is pretty basic, but is good for those, who are beginners in wall buys. And its good for giving good pics and explanations are detailed. Keep it up! I wonder how would this look with my base?  :gusta: