Custom Weapon?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
PvtMichaelJCaboose
Private Second Class
Posts: 65
Joined: Tue Nov 08, 2011 5:58 pm
Games I'm Playing :: Halo and SWBF2
Contact:

Custom Weapon?

Post by PvtMichaelJCaboose »

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?

Post by THEWULFMAN »

Hello and welcome to Gametoast PvtMichealJCaboose (my favorite RvB character :P )!

I will show you where most of what you asked is controlled. Here is an example:
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"
Where the soldier holds the gun is controlled by the weapon model and the animations.

Let me know if you need anything else explained in greater detail, and good luck. :thumbs:
User avatar
PvtMichaelJCaboose
Private Second Class
Posts: 65
Joined: Tue Nov 08, 2011 5:58 pm
Games I'm Playing :: Halo and SWBF2
Contact:

Re: Custom Weapon?

Post by PvtMichaelJCaboose »

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!
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Custom Weapon?

Post by AQT »

Welcome to Gametoast.
[b][color=#FF8000]XSI FAQ / Tutorials[/color][/b] wrote:...
Blender tutorials and Info ...
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: Custom Weapon?

Post by THEWULFMAN »

:shock: Good god man. You only are considered bumping a topic after 30 days of the last post, not a couple hours after the last post. :runaway:


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)
User avatar
PvtMichaelJCaboose
Private Second Class
Posts: 65
Joined: Tue Nov 08, 2011 5:58 pm
Games I'm Playing :: Halo and SWBF2
Contact:

Re: Custom Weapon?

Post by PvtMichaelJCaboose »

Wait, I thought bumping was changing the subject of a post?
Anyways, thanks, I'm sure this will be really helpful!
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Custom Weapon?

Post by AQT »

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.
User avatar
PvtMichaelJCaboose
Private Second Class
Posts: 65
Joined: Tue Nov 08, 2011 5:58 pm
Games I'm Playing :: Halo and SWBF2
Contact:

Re: Custom Weapon?

Post by PvtMichaelJCaboose »

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?

Post by THEWULFMAN »

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.
User avatar
PvtMichaelJCaboose
Private Second Class
Posts: 65
Joined: Tue Nov 08, 2011 5:58 pm
Games I'm Playing :: Halo and SWBF2
Contact:

Re: Custom Weapon?

Post by PvtMichaelJCaboose »

Tried it again, it worked! :D
I was selecting it and doing "open with XSI" instead of opening XSI and importing it.
Thanks for all you guys' help!
Post Reply