Charge not working

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
JimmyAngler
High General
High General
Posts: 837
Joined: Mon Nov 04, 2013 10:37 am
Projects :: Battlefront Halation
Games I'm Playing :: SWBF 1-2-2015
xbox live or psn: none
Location: Area 51

Charge not working

Post by JimmyAngler »

The title says it all. Here is my odf.
Hidden/Spoiler:
[WeaponClass]
ClassLabel = "launcher"
GeometryName = "unsc_weap_inf_railgun.msh"

[Properties]
GeometryName = "unsc_weap_inf_railgun"
HighResGeometry = "unsc_weap_inf_railgun"

OrdnanceName = "unsc_weap_inf_railgun_ord"

FirePointName = "hp_fire"

AnimationBank = "rifle"

HUDTag = "HUD_assaultrifle"

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

ChargeRateLight = "1.0"
MaxChargeStrengthLight = "1.0"
ChargeDelayLight = "0.0"
ChargeRateHeavy = "1.0"
MaxChargeStrengthHeavy = "2.0"
ChargeDelayHeavy = "0.0"

ChargeUpEffect = "com_sfx_chargeup_plasma"

MuzzleFlash = "med_muzzle_flash"
FlashColor = "77 255 20 255"
FlashLength = 0.025
FlashLightColor = "77 255 20 175"
Discharge = "med_smoke_effect"

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

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

MinRange = "0"
OptimalRange = "20"
MaxRange = "40"

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

ZoomFirstPerson = 0
ZoomMin = "0.0"
ZoomMax = "0.0"
ZoomRate = "0.0"

KickStrength = "8.0"
KickBuildup = "8.0"

SpreadPerShot = "0.0"
SpreadRecoverRate = "0.0"
SpreadThreshold = "0.0"
SpreadLimit = "0.0"

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

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

ScopeTexture = "weapon_scopehalo"

RoundsPerClip = "1"
ReloadTime = "1.8"
ShotDelay = "1.2"
TriggerSingle = "1"

MaxPressedTime= "2.0"

DisplayRefire = "0"

SalvoCount = "1"
SalvoDelay = "0.0"
InitialSalvoDelay = "0.0"
SalvoTime = "0.0"
//***********************************************
//*********** HUD & CONTROLLER VALUES *********
//***********************************************

MuzzleFlash = "small_muzzle_flash"
FlashColor = "255 255 255"
FlashLength = "0.075"
FlashLightColor = "255 180 15 175"
FlashLightRadius = "5.0"
FlashLightDuration = "0.25"
Discharge = "small_smoke_effect"
MuzzleFlashModel = "com_sfx_newmuzzleflash"


RecoilLengthLight = "0.05"
RecoilLengthHeavy = "0.05"
RecoilStrengthLight = "0.3"
RecoilStrengthHeavy = "0.05"
RecoilDecayLight = "0.0"
RecoilDecayHeavy = "0.0"

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

FireSound = "unscrailgunfire"
ReloadSound = "unscbattleriflereload"
ChangeModeSound = "com_weap_inf_equip_med"
FireEmptySound = "com_weap_inf_ammo_empty"
WeaponChangeSound = "com_weap_inf_equip_med"
ChargeSound = "unscrailguncharge"
ChargeSoundPitch = "0.05"
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"

NextCharge = 1.0
ShotsPerSalvo = 2
ShotPatternCount = 1
OrdnanceName = "unsc_weap_inf_railgun_ord"

FireSound = "unscrailgunfire"
ReloadSound = "unscbattleriflereload"
ChangeModeSound = "com_weap_inf_equip_med"
FireEmptySound = "com_weap_inf_ammo_empty"
WeaponChangeSound = "com_weap_inf_equip_med"
ChargeSound = "unscrailguncharge"
ChargeSoundPitch = "0.05"
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"
MileHighGuy
Jedi
Jedi
Posts: 1194
Joined: Fri Dec 19, 2008 7:58 pm

Re: Charge not working

Post by MileHighGuy »

what do you mean? looks like you put the same ord for both charge levels. is it that there is no meter being filled?
JimmyAngler
High General
High General
Posts: 837
Joined: Mon Nov 04, 2013 10:37 am
Projects :: Battlefront Halation
Games I'm Playing :: SWBF 1-2-2015
xbox live or psn: none
Location: Area 51

Re: Charge not working

Post by JimmyAngler »

As soon as I hit the trigger, holding it down or not, it fires.

Edit: well in case anyone is still following, I got it to work. The only problem now is after I fire, when he reloads, the weapon disappears. How do I fix this?
Post Reply