Welcome New User Home | Forums | Register | Login | Larger Font
Main-Menu
Home
Login
Register
Add Download
Add News
Add Tutorial *
Forums

Advertise
Affiliate Store US *
Affiliate Store UK *
Affiliate Store CA *
Angry Letter Generator
Avatar Upload
Calendar of Games
Contact
Downloads
FAQs
Forums
Member List
Member Projects
News
News Grabber *
Policy
Polls
Private Messages
Reviews
Screenshot Gallery
Search
Servers - Game
Store - Shirts *
Subscribe
Topics
Tutorials
Weblinks
Tutorials
CoD Mapping
CoDUO Mapping
CoD2 Mapping
CoD4 Mapping
CoD FAQs
HL2 Mapping
HL2 FAQs
SOF1 Mapping
Crysis Mapping
Q4 Mapping
Doom 3 Mapping
Doom 3 FAQs
UT2K3 Mapping
SOF2 Mapping
SOF2 FAQs

Lightray Modeling
General Modeling
General Modding
Adobe Photoshop
Common Mapping Errors

Readme.txt Generator
Members-Online
wolfunjaowna [Today]
grandbrukus [News]
cowboykiller [Downl]

3 Members and 14 Guests
Chat MODSonline
0 People Now Chatting
MODSOnline TeamSpeak

download TeamSpeak

In-The-News
Friday, Jul. 4th
MODSonair Episode 134
Thursday, Jul. 3rd
Happy 4th of July
Monday, Jun. 30th
Major Retailer Confirms 360 Price-Cut
Sunday, Jun. 29th
MODSonair 134 Live
Friday, Jun. 27th
MODSonair Episode 133
Latest Poll
Want a MODSonline Wiki for various games?
I think a Wiki would be a great addition to MODSonline. 79.73%
I could see a benefit of a Wiki. 6.76%
I think it would take away from the community. 6.76%
Wiki sites are never good. 1.35%
Wiki... isn't that Buck Roger's robot slave? 5.41%
Read More...
7 comments

Newsletter
Name:
Email:
Newsletter Archives
Your Membership
User Name:
Password:
Register.
In The Forums
help ,for a good sentence.
CoD 2 Level Desi.. Posts: (2) Views: (15) by AnythingButt
Elevator model problem
CoD Level Design.. Posts: (1) Views: (11) by Tragic
Comiler Problem
CoD 2 Level Desi.. Posts: (3) Views: (27) by jmcke149
A Lunch / Bounce pad?
CoD 4 Level Desi.. Posts: (1) Views: (16) by sinner4
Art of War Central Half-Life 2 Mods for Dummies
Tutorials: LightRay3D
LightRay3D
Add your tutorial (registered users)

Rating:
Awful Rating Poor Rating Average Rating Good Rating Excellent Rating
Versions: You must be logged in to view history.
Creating a New Weapon
2004-12-20 22:10:23
Prometheus shows you how to create a New Weapon for Call of Duty using LightRay3D

Creating a new weapon
------------------------------------------

You'll need the LR3D plugin and COD tools installed before you can create models for COD.

*I'll use the m1carbine that's included in the COD tools for this example.

1) Create your model's folder in callofduty/tools/model_export/(eg callofduty/tools/model_export/mycarbine/)

(Textures and *.xmodel_export file should be saved in there).
NOTE: files that will be created in xmodelsurfs and xmodelparts folders will be named after this folder.
If you don't store your *.xmodel_export file in a descriptive folder the converted files will have a numeric filename instead(eg 1 or 2)
codtut1.jpg



2) Exporting the model

Import m1carbine.xmodel_export in LR3D(don't import the animation, just the model).

IMPORTANT:
Do NOT include the player arms when exporting a weapon and vice versa.
You can check xmodel/ folder and see the different files for arms and weapons named(respectively):
viewmodel_???weaponname and viewmodel_hands_???.
Unless feature versions of the plugin takes care of files that contain both arms and weapon you should delete either the arms or weapon when
exporting.

Delete player arms and bones.
Export the model as and save it in your model's folder(eg
callofduty/tools/model_export/mycarbine/mym1carbine.xmodel_export)
NOTE: Put the textures in this folder too.Remember to add metal@ prefix to the texture filename.
codtut2.jpg



THE ASSET MANAGER: A front-end editor.You also can manually open and edit some of the files using NotePad.

3) Run the asset manager and create a game data file( *.gdt) or open an existing one.
NOTE: Each gdt file can hold information ab
out a lot of different types of assets (eg models, animations, weapons, characters etc.).
You can have a gdt file for your whole MOD.
codtut3.jpg


a) Create the version of the model(pickable)
Select "xmodel" from the list below and press "new entry".
Type the name you want(eg "weapon_MyM1Carbine").
ALWAYS add a "weapon_" prefix.
codtut4.jpg


Some options will be shown on the right side of the window.
In the field select "rigid" for static weapons, "viewmodel" for player-ai weapons, "viewhands" for player arms/hands.
Browse and select the xmodel_export file.
NOTE: LOD(level of detail) meshes are low-poly versions of the normal model.
They are used when model is too far away(given distance you specify) in order to increase performance(less polygons drawn).
You can use PolyChop modifier to create and export medium,low versions of the model.
codtut5.jpg

You don't have to fill any other fields, the model will work fine at this point.
Save the gdt file as in tools/model_export/ folder.


b) Create the version of the model

Now, add a new entry and name it .
Set "viewmodel" instead of "rigid" and select the same filename(you may have 2 different versions for static and viewmodel models).
codtut6.jpg


Save the gdt file.

4) Run the converter to create the in-game files(tools/bin/converter.exe)
If something is wrong, converter will output an error message.
Make sure your model meshes have a material assigned and the textures are placed in the same folder where your *.xmodel_export file exists.
codtut7.jpg

The resulting files will be placed in the following folders:
tools/game/main/xmodel (model file, contains info about bones,meshes files and textures)
tools/game/main/xmodelparts (bones)
tools/game/main/xmodelsurfs (meshes)



5) Create the weapon entity

Last, you must create a entity that will be used in game and in Radiant.
If you have closed Asset Manager, reopen and load your gdt file.
Select and add a new entry.Name it .
Set "1:Single-Player" or "2:Multi-Player" for mp to targetFolder(you can use same model files).
(The folders are tools/game/main/weapons/sp and tools/game/main/weapons/mp)
Set the displayName of the weapon (eg MyM1Carbine)-displayed in game.
Adjust other options eg weaponClass: Rifle, damage, weaponSlot:Primary etc.
codtut8.jpg


Scroll down and find radiantName.Set a name for radiant(eg mym1carbine).
codtut9.jpg


Scroll down more and set the model filenames we just converted.
World model is the static(pickable) model, gunModel is the viewmodel and handModel the player arms.
codtut10.jpg


That's the basic adjustments.You can alter,set any other options you want.
Save the gdt file.
You can close the asse manager now.

- Run the converter.exe again to compile the weapon entity -

The resulting file will be saved in tools/game/main/weapons/sp or mp for multi-player.
You can open and edit this file with NotePad.


6) Create your pk3 and add folders/files.
skins/ texture file(s)
xmodel/ the file created in callofduty/tools/game/main/xmodel/
xmodelsurfs/ the file created in callofduty/tools/game/main/xmodelsurfs/
xmodelparts/ the file created in callof
duty/tools/game/main/xmodelparts/
weapons/sp/ the file created in callofduty/tools/game/weapons/sp/
AND/OR(multi-player): weapons/mp/ the file created in callofduty/tools/game/weapons/mp/

You will find the files by the "mym1" prefix.

7) Put the pak in callofduty/main/ folder and run Radiant.
Press right mouse button in the viewport and select weapons/mym1carbine.

This tutorial was originally posted by Prometheus at LightRay3D

You can get LightRay3D here


All logos and trademarks and information in this site are property of MODSonline LLC © 2008.
The comments are property of their posters.
RSS news feeds for MODSonline.com can be found News.php.
Intergi
Partners
XoXide
Call of Duty Headquarters
The Firing Box
My Topsites List
modbase.be
Battle for Europe COD2
Websites4Clans
Frag Universe
Ask About
Advertising
Friends
SOF2 Files and Downloads
After Life Gaming
Canada Kicks Ass Clan
Ask About
Advertising
Link to Us
MODSonair
View in iTunes
Please help us to raise in the ranks of podcasting and subscribe to our itunes feed using the link above.
MODSonair Releases
MODSonair Episode 134
MODSonair Episode 133
MODSonair Special CoD:WW Episode
MODSonair Episode 132
MODSonair Episode 131
Next Show
The next MODSonair show will air LIVE on:
07/06/2008 11:00 EDT

Time remaining:
Copyright © 2008 MODSonline
Tresware Content Management System Copyright © 2008 Tresware
Website Designed and Hosted   Tresware