Charge up rocket launcher

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
Executer94
Major
Major
Posts: 504
Joined: Fri May 01, 2009 7:45 am
Location: Chalmuns Cantina

Charge up rocket launcher

Post by Executer94 »

I tried to make rocketlauncher which has the same function than a bowcaster (charge up)

But ingame i can't charge it up.

here are my odfs:

all_weap_inf_rocketlauncher
Hidden/Spoiler:
[WeaponClass]
ClassParent = "com_weap_inf_rocket_launcher"
GeometryName = "com_weap_rokit2.msh"

[Properties]



GeometryName = "com_weap_rokit2"
HighResGeometry = "com_weap_rokit2"
OrdnanceName = "all_weap_inf_rocket_launcher_ord"

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

FireSound = "all_weap_inf_rocket_launcher_fire"
FireLoopSound = ""
ChargeSound = "all_weap_inf_rocket_launcher_tracking"
ChargeSoundPitch = "0.6"
ReloadSound = "com_weap_inf_reload_lg"
ChangeModeSound = "com_weap_inf_equip_lg"
FireEmptySound = "com_weap_inf_ammo_empty"
WeaponChangeSound = "com_weap_inf_equip_lg"
JumpSound = "com_weap_inf_bazooka_mvt_jump"
LandSound = "com_weap_inf_bazooka_mvt_land"
RollSound = "com_weap_inf_bazooka_mvt_roll"
//ProneSound = "com_weap_inf_bazooka_mvt_lie"
SquatSound = "com_weap_inf_bazooka_mvt_squat"
//StandSound = "com_weap_inf_bazooka_mvt_getup"


MuzzleFlash = "small_muzzle_flash"
FlashColor = "92 136 250 100"
FlashLength = "0.1"
FlashLightColor = "92 136 250 100"

FlashLightRadius = "5.0"
FlashLightDuration = "0.25"
Discharge = "small_smoke_effect"


ChargeSound = "all_weap_inf_bowcaster_charge"
ChargeSoundPitch = "0.05"

NextCharge = 0.95
ShotsPerSalvo = 1
ShotPatternCount = 1
OrdnanceName = "all_weap_inf_rocket_launcher_ord_high"


ChargeSound = "all_weap_inf_bowcaster_charge"
ChargeSoundPitch = "0.05"

KickSpread = "0.7"
SpreadRecover = "2.0"

KickStrength = "1.0"


ChargeRateLight = "1.0"
MaxChargeStrengthLight = "1.0"
ChargeDelayLight = "0.15"
ChargeRateHeavy = "1.0"
MaxChargeStrengthHeavy = "0.5"
ChargeDelayHeavy = "2.0"
all_weap_inf_rocket_launcher_ord
Hidden/Spoiler:
[OrdnanceClass]
ClassParent = "com_weap_inf_rocket_launcher_ord"

[Properties]
GeometryName = ""

TrailEffect = "com_sfx_weap_rock"
LightColor = "38 0 255 255"
LightRadius = "5.0"

ExplosionName = "all_weap_inf_rocket_launcher_exp"

LifeSpan = "5.0"

MinSpeed = "100.0"
Acceleration = "300.0"
Velocity = "300.0"
Gravity = "0.0"
Rebound = "0.0"
TurnRate = "2.0"

WaverRate = "0.5" //how often it starts wavering
WaverTurn = ".2"



MaxDamage = "5000.0"
DamageTransitionDelay = "0.0" //How long in seconds before the damage change begins.
DamageTransitionPeriod = "0.5" //How long in seconds the damage change lasts.
DamageFinalDamage = "8000.0" //What the damage would be at the end of the transition period. A negative value means that no change is applied.

VehicleScale = "1.0"
PersonScale = "1.0"
DroidScale = "1.0"
AnimalScale = "1.0"
BuildingScale = "1.0"

SmolderEffectTimer = 2.0

SmolderEffect = "com_sfx_inf_damage_electricity"
SmolderBone = "bone_ribcage"

SmolderEffect = "com_sfx_inf_damage_electricity"
SmolderBone = "bone_r_thigh"

SmolderEffect = "com_sfx_inf_damage_electricity"
SmolderBone = "bone_l_calf"

BonusAmplification = "0.25" //how much more damage will be done when team_bonus_blaster_amplication is on
all_weap_inf_rocket_launcher_ord_high
Hidden/Spoiler:
[OrdnanceClass]
ClassParent = "com_weap_inf_rocket_launcher_ord"

[Properties]
GeometryName = ""

TrailEffect = "com_sfx_weap_rock"
LightColor = "38 0 255 255"
LightRadius = "5.0"

ExplosionName = "all_weap_inf_rocket_launcher_high_exp"

LifeSpan = "7.0"

MinSpeed = "300.0"
Acceleration = "300.0"
Velocity = "450.0"
Gravity = "0.0"
Rebound = "0.0"
TurnRate = "2.0"

WaverRate = "0.0"
WaverTurn = "0.0"



MaxDamage = "20000.0"
DamageTransitionDelay = "0.0" //How long in seconds before the damage change begins.
DamageTransitionPeriod = "0.5" //How long in seconds the damage change lasts.
DamageFinalDamage = "30000.0" //What the damage would be at the end of the transition period. A negative value means that no change is applied.

VehicleScale = "1.0"
PersonScale = "1.0"
DroidScale = "1.0"
AnimalScale = "1.0"
BuildingScale = "1.0"

SmolderEffectTimer = 2.0

SmolderEffect = "com_sfx_inf_damage_electricity"
SmolderBone = "bone_ribcage"

SmolderEffect = "com_sfx_inf_damage_electricity"
SmolderBone = "bone_r_thigh"

SmolderEffect = "com_sfx_inf_damage_electricity"
SmolderBone = "bone_l_calf"

BonusAmplification = "0.25" //how much more damage will be done when team_bonus_blaster_amplication is on
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Charge up rocker launcher

Post by Fiodis »

Code: Select all

ChargeRateLight         = "1.0"
MaxChargeStrengthLight  = "1.0"
ChargeDelayLight        = "0.1"
ChargeRateHeavy         = "1.0"
MaxChargeStrengthHeavy  = "0.5"
ChargeDelayHeavy        = "0.75"
(Taken from com_weap_inf_mortar_launcher).
These lines are not in your weapon's ODF. Most mortar launchers get them from their parents.

Your weapon has com_weap_inf_rocket_launcher, which, unless you modified it, does not contain these lines. Your weapon is missing crucial information, and so won't work properly.

Add these lines (or a variation of them) and you should be fine.
Xavious
Sith Master
Sith Master
Posts: 2783
Joined: Mon Jun 12, 2006 3:46 pm

Re: Charge up rocker launcher

Post by Xavious »

Fiodis wrote:

Code: Select all

ChargeRateLight         = "1.0"
MaxChargeStrengthLight  = "1.0"
ChargeDelayLight        = "0.1"
ChargeRateHeavy         = "1.0"
MaxChargeStrengthHeavy  = "0.5"
ChargeDelayHeavy        = "0.75"
(Taken from com_weap_inf_mortar_launcher).
These lines are not in your weapon's ODF. Most mortar launchers get them from their parents.

Your weapon has com_weap_inf_rocket_launcher, which, unless you modified it, does not contain these lines. Your weapon is missing crucial information, and so won't work properly.

Add these lines (or a variation of them) and you should be fine.
He has those lines already; see the bottom section of his all_weap_inf_rocketlauncher odf.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Charge up rocker launcher

Post by Fiodis »

Woops. :oops:

Sorry about that.
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: Charge up rocker launcher

Post by kinetosimpetus »

MaxPressedTime
I didn't see it. Try adding MaxPressedTime = 2
(2 seconds to charge of 100%, or 1.9 seconds till second ord instead of first)
Executer94
Major
Major
Posts: 504
Joined: Fri May 01, 2009 7:45 am
Location: Chalmuns Cantina

Re: Charge up rocker launcher

Post by Executer94 »

I changed the bowcaster in the common folder to an rocketeer :D

it works now :thumbs:

but thanks too :)
Post Reply