Shot elevation problem

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
Unlucky13
Sergeant Major
Sergeant Major
Posts: 239
Joined: Mon Jan 24, 2011 11:11 am
Projects :: Models models models
Games I'm Playing :: Random stuff

Shot elevation problem

Post by Unlucky13 »

I’m making a charge-up weapon similar to the ewok spear. It has multiple ordinances (10) that increase in damage and velocity as you charge. The problem is my weapons shoot 45 degrees high. I changed the shot elevate and added pitch and yaw spread but that didn’t work. The weirdest thing is the last ordinance fires exactly how I want it and it is the same as the others besides the damage and velocity.
ewk_weap_inf_spear.odf
Hidden/Spoiler:
[WeaponClass]
ClassLabel = "grenade"

[Properties]
GeometryName = "bow"

ChargeRateLight = "1.0"
MaxChargeStrengthLight = "1.0"
ChargeDelayLight = "0.1"
ChargeRateHeavy = "1.0"
MaxChargeStrengthHeavy = "0.5"
ChargeDelayHeavy = "0.75"

ChargeUpEffect = "com_sfx_chargeup"

TriggerSingle = "1"
MaxPressedTime = "3"

RoundsPerClip = "1"
ReloadTime = "1.25"

LockOnRange = "20.0"

//AnimationBank = "grenade"
CustomAnimationBank = "ewok_spear tool"

//***************************************************
//************** VARIABLE ORDANANCE *****************
//***************************************************

OrdnanceName = "ewk_weap_inf_spear_ord"

NextCharge = 0.1
OrdnanceName = "ewk_weap_inf_spear_ord1"

NextCharge = 0.2
OrdnanceName = "ewk_weap_inf_spear_ord2"

NextCharge = 0.3
OrdnanceName = "ewk_weap_inf_spear_ord3"

NextCharge = 0.4
OrdnanceName = "ewk_weap_inf_spear_ord4"

NextCharge = 0.5
OrdnanceName = "ewk_weap_inf_spear_ord5"

NextCharge = 0.6
OrdnanceName = "ewk_weap_inf_spear_ord6"

NextCharge = 0.7
OrdnanceName = "ewk_weap_inf_spear_ord7"

NextCharge = 0.8
OrdnanceName = "ewk_weap_inf_spear_ord8"

NextCharge = 0.9
OrdnanceName = "ewk_weap_inf_spear_ord9"

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

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

InitialSalvoDelay = "0.3"
ShotElevate = "0.01"
PitchSpread = "0.0"
YawSpread = "0.0"

Firesound ="com_weap_throw"
ewk_weap_inf_spear_ord.odf
Hidden/Spoiler:
[OrdnanceClass]
ClassLabel = "sticky"

[Properties]
ImpactEffectWater = "com_sfx_watersplash_sm"

GeometryScale = .5
GeometryName = "arrow"
//ExplosionExpire = "rep_weap_inf_grenadefrag_exp"
//OrdnanceEffect = "com_sfx_weap_grenade_red"
ImpactEffect = "com_sfx_explosion_lg"
//TrailEffect = "com_sfx_weap_grenade_gold"

//CollisionOtherSound = "com_weap_inf_grenade_bounce"

AlignVertical = "0"

MaxDamage = "50.0"
LifeSpan = "4.0"
Velocity = "5.0"
Gravity = "0.5"
Rebound = "0.35"
Friction = "1.25"

VehicleScale = "0.1"
PersonScale = "1"
DroidScale = "0.0"
BuildingScale = "0.1"
AnimalScale = "2"
ewk_weap_inf_spear_ord9.odf(last ordinance)
Hidden/Spoiler:
[OrdnanceClass]
ClassLabel = "sticky"

[Properties]
ImpactEffectWater = "com_sfx_watersplash_sm"

GeometryScale = .5
GeometryName = "arrow"
//ExplosionExpire = "rep_weap_inf_grenadefrag_exp"
//OrdnanceEffect = "com_sfx_weap_grenade_red"
ImpactEffect = "com_sfx_explosion_lg"
//TrailEffect = "com_sfx_weap_grenade_gold"

//CollisionOtherSound = "com_weap_inf_grenade_bounce"

AlignVertical = "0"

MaxDamage = "110.0"
LifeSpan = "4.0"
Velocity = "90.0"
Gravity = "0.5"
Rebound = "0.35"
Friction = "1.25"

VehicleScale = "0.1"
PersonScale = "1"
DroidScale = "0.0"
BuildingScale = "0.1"
AnimalScale = "2"
Thanks for any help
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Shot elevation problem

Post by DarthD.U.C.K. »

hmm, the original ewok spear ord has a gravity of 2 while you have 0.5, they may have something to do with it.
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Shot elevation problem

Post by AceMastermind »

I don't know about your problem with this weapon but you can take a look at this post under Advanced Weapon Tricks #2 - Charge Up Weapons to error check your work. I am wondering why you have GeometryScale = .5 in your ODFs though, you should remove that and use it in the msh.option file instead if you want to scale any geometry ingame.
User avatar
Unlucky13
Sergeant Major
Sergeant Major
Posts: 239
Joined: Mon Jan 24, 2011 11:11 am
Projects :: Models models models
Games I'm Playing :: Random stuff

Re: Shot elevation problem

Post by Unlucky13 »

After looking at it for awile I realized that, like the ewok spear, it travels where it should but because of the increase in velocity it keeps going up. That still doen't explain why shot elevate isn't fixing it, I'll see if 0.0 works.

@DarthD.U.C.K. Changing the gravity didn't work, it did bring it closer though.

@AceMastermind I checked that tut and had everything necessary. For the GeometryScale, I already had it in the msh.option, I just put that in there to be on the safe side, taking it out now, thanks for the info.
Post Reply