Trigonometric Parameters

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
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Trigonometric Parameters

Post by Marth8880 »

How would I go about making a missile-type ordnance, launched from a cannon-type weapon, fly in an arc? I already have the trigonometric equation figured out: -x^2 / 8 + 10. How would I set this up using the ShotPattern function?
CalvaryCptMike
Captain
Captain
Posts: 476
Joined: Sat Feb 19, 2011 3:10 pm
Projects :: Nothing--absolutely nothing
Location: Freed by alien robots, now living on Mars
Contact:

Re: Trigonometric Parameters

Post by CalvaryCptMike »

Wouldn't you just do it the same way as a grenade launcher fires in an arc? I don't think you need to be using any trigonometry for this( but I could be wrong ) try checking out the grenade launcher ODF. Is there any particular reason it needs to be a missile anyways?
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Trigonometric Parameters

Post by Marth8880 »

CalvaryCptMike wrote:Wouldn't you just do it the same way as a grenade launcher fires in an arc? I don't think you need to be using any trigonometry for this( but I could be wrong ) try checking out the grenade launcher ODF.
The ordnance is supposed to fly like a missile does, but in an arc; it's the Warp biotic power from Mass Effect.
CalvaryCptMike wrote:Is there any particular reason it needs to be a missile anyways?
ShotPattern can only be used with missiles shot be cannons (I think).
User avatar
keenmike
Second Lance Corporal
Second Lance Corporal
Posts: 110
Joined: Sat Mar 14, 2009 7:05 am
Projects :: Side by side bike with suspension
Games I'm Playing :: SWBF1
Location: South Texas
Contact:

Re: Trigonometric Parameters

Post by keenmike »

Is it as simple as working with gravity values and if none then add it?
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Trigonometric Parameters

Post by Marth8880 »

keenmike wrote:Is it as simple as working with gravity values and if none then add it?
Missiles are self-propelled, no? Again, I am not working with grenade-like ordnance.
User avatar
keenmike
Second Lance Corporal
Second Lance Corporal
Posts: 110
Joined: Sat Mar 14, 2009 7:05 am
Projects :: Side by side bike with suspension
Games I'm Playing :: SWBF1
Location: South Texas
Contact:

Re: Trigonometric Parameters

Post by keenmike »

SWBF1 rep_weap_inf_torpedo_launcher_ord.odf
I still think adjust Gravity values then weapon pointed up will arc downward due to gravity.
[OrdnanceClass]
ClassLabel = "missile"

[Properties]
LifeSpan = "8.0"
TurnRate = "2.0"
Velocity = "55.0"
Gravity = "0.0"
Rebound = "0.0"
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Trigonometric Parameters

Post by Marth8880 »

keenmike wrote:SWBF1 rep_weap_inf_torpedo_launcher_ord.odf
I still think adjust Gravity values then weapon pointed up will arc downward due to gravity.
[OrdnanceClass]
ClassLabel = "missile"

[Properties]
LifeSpan = "8.0"
TurnRate = "2.0"
Velocity = "55.0"
Gravity = "0.0"
Rebound = "0.0"
That would make a hyperbola, not an algebraic arc.
User avatar
keenmike
Second Lance Corporal
Second Lance Corporal
Posts: 110
Joined: Sat Mar 14, 2009 7:05 am
Projects :: Side by side bike with suspension
Games I'm Playing :: SWBF1
Location: South Texas
Contact:

Re: Trigonometric Parameters

Post by keenmike »

Something other than asymptote? Is it possible for you?
Image
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Trigonometric Parameters

Post by Teancum »

Marth8880 wrote:
keenmike wrote:SWBF1 rep_weap_inf_torpedo_launcher_ord.odf
I still think adjust Gravity values then weapon pointed up will arc downward due to gravity.
[OrdnanceClass]
ClassLabel = "missile"

[Properties]
LifeSpan = "8.0"
TurnRate = "2.0"
Velocity = "55.0"
Gravity = "0.0"
Rebound = "0.0"
That would make a hyperbola, not an algebraic arc.
Well you gotta work with what you have.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Trigonometric Parameters

Post by FragMe! »

The only time I have seen that kind of arc is using target lock on, like I did in hunt mode of Naboo Sewers. Lock on to the target tilt rocket launcher up maintaining lock and firing. It is great fun.
Or as seen here with wrist rockets
Image
Post Reply