Custom Weapon?
Moderator: Moderators
- PvtMichaelJCaboose
- Private Second Class
- Posts: 65
- Joined: Tue Nov 08, 2011 5:58 pm
- Contact:
Custom Weapon?
So I'm kinda new at modding. I was planning on making a custom weapon or two (or three, or ten) but I was wondering how to specify how many bullets (or whatever guns shoot in BF2) come out of the gun, where the soldier holds the gun, rate of fire, etc. Is it an ODF thing, and how would I make, for example, a muzzle flash appear?
-
THEWULFMAN
- Space Ranger
- Posts: 5557
- Joined: Tue Aug 17, 2010 3:30 pm
- Projects :: Evolved 2
- Location: Columbus, Ohio
- Contact:
Re: Custom Weapon?
Hello and welcome to Gametoast PvtMichealJCaboose (my favorite RvB character
)!
I will show you where most of what you asked is controlled. Here is an example:
Let me know if you need anything else explained in greater detail, and good luck.
I will show you where most of what you asked is controlled. Here is an example:
Where the soldier holds the gun is controlled by the weapon model and the animations.A Pistol Main ODF wrote:[WeaponClass]
ClassParent = "com_weap_inf_pistol"
GeometryName = "all_weap_inf_pistol.msh"
[Properties]
GeometryName = "all_weap_inf_pistol"
HighResGeometry = "all_1st_weap_inf_pistol"
OrdnanceName = "all_weap_inf_pistol_ord"
ShotDelay = "0.5" //Rate of fire
SalvoCount = "2" //bullets per shot
SalvoDelay = "0.1"
InitialSalvoDelay = "0.0"
SalvoTime = "0.0"
//******************************************************
//*************** SOUND ****************
//******************************************************
MuzzleFlash = "small_muzzle_flash" //All the Muzzle flash info
FlashColor = "255 80 80 255"
FlashLength = 0.025
FlashColor = "255 100 100 255"
FlashLength = 0.025
FlashLightColor = "255 220 220 175"
FlashLightRadius = "2.0"
FlashLightDuration = "0.25"
Discharge = "small_smoke_effect"
FireSound = "all_weap_inf_pistol_fire"
Firestop ="0"
FireEmptySound = "com_weap_inf_ammo_empty"
OverheatSound = "com_weap_energy_depleted"
OverheatSoundPitch = "0.5"
OverheatStopSound = "com_weap_energy_refilled"
ChangeModeSound = "com_weap_inf_equip_sm"
WeaponChangeSound = "com_weap_inf_equip_sm"
JumpSound = "com_weap_inf_pistol_mvt_jump"
LandSound = "com_weap_inf_pistol_mvt_land"
RollSound = "com_weap_inf_pistol_mvt_roll"
//ProneSound = "com_weap_inf_pistol_mvt_lie"
SquatSound = "com_weap_inf_pistol_mvt_squat"
//StandSound = "com_weap_inf_pistol_mvt_getup"
Let me know if you need anything else explained in greater detail, and good luck.
- PvtMichaelJCaboose
- Private Second Class
- Posts: 65
- Joined: Tue Nov 08, 2011 5:58 pm
- Contact:
Re: Custom Weapon?
And (sorry if I'm kind of bumping the topic) but if I model a gun in, say Blender, what steps should I take to animate it and all that good stuff?
Thanks!
Thanks!
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Custom Weapon?
Welcome to Gametoast.
[b][color=#FF8000]XSI FAQ / Tutorials[/color][/b] wrote:...
Blender tutorials and Info...
- Blender 2.49b
- How to use Blender to make SWBF series models
- Blender_3D:_Noob_to_Pro
- wrl2export -you can export wrl files compatible with SWBFViewer
- vrml97_import.py -import plugin that can import wrl files exported from SWBFViewer
- Modeling a Lowpoly Character
- Blender Cookie -A great tutorial resource
- Blender Guru -another great tutorial resource
- How to Import Mshs (Textured) into Blender and Export
-
THEWULFMAN
- Space Ranger
- Posts: 5557
- Joined: Tue Aug 17, 2010 3:30 pm
- Projects :: Evolved 2
- Location: Columbus, Ohio
- Contact:
Re: Custom Weapon?
Anyway, you need to use XSI to add the hardpoints on a weapon model. I personally model the weapon in Blender, then give it to someone with XSI to add the hardpoints.
Pretty much every thing you need to know about modeling weapons from SWBF2, including weapons, is HERE.
Specifically this tutorial for weapon models.
--------------
Ninja'd (sorta)
- PvtMichaelJCaboose
- Private Second Class
- Posts: 65
- Joined: Tue Nov 08, 2011 5:58 pm
- Contact:
Re: Custom Weapon?
Wait, I thought bumping was changing the subject of a post?
Anyways, thanks, I'm sure this will be really helpful!
Anyways, thanks, I'm sure this will be really helpful!
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Custom Weapon?
The subject of this topic is Custom Weapon. The second question you asked relates to a custom weapon model. That doesn't seem to change the subject at all. The concept of bumping literally means bumping or moving a thread to the top of the forum.
If you aren't sure whether you've broken a rule or are about to break a rule, then try consulting the Site Rules.
If you aren't sure whether you've broken a rule or are about to break a rule, then try consulting the Site Rules.
- PvtMichaelJCaboose
- Private Second Class
- Posts: 65
- Joined: Tue Nov 08, 2011 5:58 pm
- Contact:
Re: Custom Weapon?
Ah I see. BTW how do you import models from Blender into XSI? Does XSI only take specific types of models? .obj, .msh, and .blend didn't work.
-
THEWULFMAN
- Space Ranger
- Posts: 5557
- Joined: Tue Aug 17, 2010 3:30 pm
- Projects :: Evolved 2
- Location: Columbus, Ohio
- Contact:
Re: Custom Weapon?
PvtMichaelJCaboose wrote:Ah I see. BTW how do you import models from Blender into XSI? Does XSI only take specific types of models? .obj, .msh, and .blend didn't work.
I always use .OBJ. It's quite universal between 3D Programs. If it doesn't work, it's user error.
- PvtMichaelJCaboose
- Private Second Class
- Posts: 65
- Joined: Tue Nov 08, 2011 5:58 pm
- Contact:
Re: Custom Weapon?
Tried it again, it worked!
I was selecting it and doing "open with XSI" instead of opening XSI and importing it.
Thanks for all you guys' help!
I was selecting it and doing "open with XSI" instead of opening XSI and importing it.
Thanks for all you guys' help!
