Unable to Switch Weapons

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
Fierfek
High General
High General
Posts: 805
Joined: Wed Jul 01, 2009 4:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)

Unable to Switch Weapons

Post by Fierfek »

Okay, so I have a unit with a shotgun and pistol. In the spawn menu, it only says pistol, but when I spawn, he starts with the shotgun. Then, when I switch to pistol, I can't switch back to shotgun.
Help?
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Unable to Switch Weapons

Post by AQT »

One of the awards weapons glitch this is. Make sure your weapons do not inherit from a ClassParent.
Labj
Sith
Sith
Posts: 1400
Joined: Tue Jun 16, 2009 3:20 pm
Games I'm Playing :: Halo 4
xbox live or psn: SiulS2409
Location: Costa Rica
Contact:

Re: Unable to Switch Weapons

Post by Labj »

Han Solo has the same trouble in the XBox
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Unable to Switch Weapons

Post by AQT »

And the PC and probably other platforms too. This problem will only occur when you have/earn certain award weapons.
User avatar
Fierfek
High General
High General
Posts: 805
Joined: Wed Jul 01, 2009 4:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)

Re: Unable to Switch Weapons

Post by Fierfek »

AQT wrote:One of the awards weapons glitch this is. Make sure your weapons do not inherit from a ClassParent.
Don't they need to inherit from the parent to function properly? How would I change that?
This is the award shotgun and jango's pistol.
Xavious
Sith Master
Sith Master
Posts: 2783
Joined: Mon Jun 12, 2006 3:46 pm

Re: Unable to Switch Weapons

Post by Xavious »

You can't set up the award shotgun like a normal weapon. If you do, you will only be able to use it if you have obtained the award shotgun in your game profile.
User avatar
Fierfek
High General
High General
Posts: 805
Joined: Wed Jul 01, 2009 4:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)

Re: Unable to Switch Weapons

Post by Fierfek »

Xavious wrote:You can't set up the award shotgun like a normal weapon. If you do, you will only be able to use it if you have obtained the award shotgun in your game profile.
How do I make it a normal weapon, like how the precision pistols were made into jango's pistols? Do I need to delete this line in the award shotgun odf?
Hidden/Spoiler:
MedalsTypeToUnlock = 5
ScoreForMedalsType = 5
Xavious
Sith Master
Sith Master
Posts: 2783
Joined: Mon Jun 12, 2006 3:46 pm

Re: Unable to Switch Weapons

Post by Xavious »

Try it. I'm not entirely sure, because I've never really messed with the awards weapons.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Unable to Switch Weapons

Post by AQT »

Fierfek wrote:
AQT wrote:One of the awards weapons glitch this is. Make sure your weapons do not inherit from a ClassParent.
Don't they need to inherit from the parent to function properly? How would I change that?
This is the award shotgun and jango's pistol.
Your weapon doesn't need to inherit from any ClassParent. As long as it has a ClassLabel and has all the necessary ODF parameters, it will work. Here's an example of a ClassParent-less weapon:
Hidden/Spoiler:
[WeaponClass]
ClassLabel = "cannon"
GeometryName = "all_weap_inf_rifle.msh"

[Properties]
GeometryName = "a280"
HighResGeometry = "a280"
OrdnanceName = "all_weap_inf_rifle_ord"
FirePointName = "hp_fire"

AnimationBank = "rifle"

//***********************************************
//************* TARGET & RANGE VALUES **********
//***********************************************

TargetEnemy = "1"
TargetNeutral = "0"
TargetFriendly = "0"

TargetPerson = "1"
TargetAnimal = "1"
TargetDroid = "1"
TargetVehicle = "0"
TargetBuilding = "0"

MinRange = "0"
OptimalRange = "16"
MaxRange = "64"

LockOnRange = "40.0"
LockTime = "0.4"
lockOnAngle = "1.0"

ZoomMin = "2.5"
ZoomMax = "2.5"
ZoomRate = "0.0"

YawSpread = "0.225"
PitchSpread = "0.225"

SpreadPerShot = "0.75"
SpreadRecoverRate = "2.0"
SpreadThreshold = "3.0"
SpreadLimit = "1.25"

StandStillSpread = "0.0"
StandMoveSpread = "0.0"
CrouchStillSpread = "0.0"
CrouchMoveSpread = "0.0"
ProneStillSpread = "0.0"
ProneMoveSpread = "0.0"

//***********************************************
//*********** WEAPON PERFORMANCE VALUES *********
//***********************************************

RoundsPerClip = "50"
ReloadTime = "1.5"
ShotDelay = "0.2"
TriggerSingle = "0"

DisplayRefire = "0"

SalvoCount = "1"
SalvoDelay = "0.0"
InitialSalvoDelay = "0.0"
SalvoTime = "0.0"

//******************************************************
//*************** SOUND ****************
//******************************************************

MuzzleFlash = "small_muzzle_flash"
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"

RecoilLengthLight = "0.1"
RecoilLengthHeavy = "0.1"
RecoilStrengthLight = "1.0"
RecoilStrengthHeavy = "0.2"
RecoilDecayLight = "0.0"
RecoilDecayHeavy = "0.0"

FireSound = "all_weap_inf_rifle_fire"
ReloadSound = "com_weap_inf_reload_med"
ChangeModeSound = "com_weap_inf_equip_med"
FireEmptySound = "com_weap_inf_ammo_empty"
WeaponChangeSound = "com_weap_inf_equip_med"
JumpSound = "com_weap_inf_rifle_mvt_jump"
LandSound = "com_weap_inf_rifle_mvt_land"
RollSound = "com_weap_inf_rifle_mvt_roll"
//ProneSound = "com_weap_inf_rifle_mvt_lie"
SquatSound = "com_weap_inf_rifle_mvt_squat"
//StandSound = "com_weap_inf_rifle_mvt_getup"
Post Reply