Melee throw question [Solved]

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
ForceMaster
Lieutenant General
Lieutenant General
Posts: 737
Joined: Fri Aug 08, 2008 11:27 pm
Projects :: Tron The Grid
Games I'm Playing :: The best..SWBFII
xbox live or psn: No gamertag set
Location: C:\Program Files\ForceMaster\Bin\ForceMaster.exe

Melee throw question [Solved]

Post by ForceMaster »

HI! simply, can a melee weaponn bounce to another direction after it has been throwed and before the player catch it when collide with a prop? thanks.
Last edited by ForceMaster on Tue Dec 16, 2014 9:00 am, edited 1 time in total.
hunpeter12
Command Sergeant Major
Command Sergeant Major
Posts: 260
Joined: Mon Apr 18, 2011 2:53 pm
Projects :: Underground City The Complex [WIP]
Games I'm Playing :: SWBF2

Re: Melee throw question

Post by hunpeter12 »

Sorry, it can't.
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: Melee throw question

Post by JimmyAngler »

Um, you want a melee weapon to be thrown? how about using a "grenade" sort of thing. those bounce...
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: Melee throw question

Post by Noobasaurus »

I'm not sure how many parameters "meleethrowordnance" has, but you could always try sticking these two in.

Code: Select all

Rebound = "20.0"
Friction = "0.0"
I doubt these will work, and as Jimmy mentioned you could use a grenade as a base and use some lua magic to work with it. Maybe.
User avatar
GAB
1st Lieutenant
1st Lieutenant
Posts: 431
Joined: Sun Jul 03, 2011 8:56 pm
Location: Somewhere around the world
Contact:

Re: Melee throw question

Post by GAB »

There's the ewok spear. It bounces and changes direction when it hits an object. Maybe taking a look at how it works could be helpful for you.
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: Melee throw question

Post by Marth8880 »

Noobasaurus wrote:I'm not sure how many parameters "meleethrowordnance" has

Code: Select all

    Ordnance Melee Throw
                                        Velocity
                                        ReturnDuration
                                        RotationRate
                                        DamageLength
                                        DamageWidth
                                        LightOdf
                                        LightColor
                                        LightRadius
                                        OnSound
It adopts those parameters from the master "Ordnance" parent class:

Code: Select all

Ordnance
NextCharge
LifeSpan
DamageTransitionDelay
DamageTransitionPeriod
DamageFinalDamage
Explosion
ExplosionImpact
ExplosionName
ExplosionExpire
Damage
MaxDamage
HealthScale
ArmorScale
PersonScale
AnimalScale
DroidScale
VehicleScale
BuildingScale
ShieldScale
TrailEffect
ExplosionEffect
OrdnanceSound
CollisionSound
CollisionWaterSound
CollisionShieldSound
BonusAmplification
BonusColor - rgba
Additionally, "Grenade" is the only ordnance class that uses the Rebound and Friction parameters, but there have been useful bugs where parameters from one class have "leaked" over into another class, so it's always worth a shot.

Also, for reference:

Code: Select all

            Ordnance Grenade
                                        Rebound
                                        Friction
                                        CollisionFoliageSound
                                        CollisionOtherSound
                                        StartTimerOnContact
                                        AlignVertical
                                        ImpactEffectWater
Source: http://www.secretsociety.com/forum/down ... meters.txt
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: Melee throw question

Post by Noobasaurus »

Okay, so I did go there, but apparently I didn't look hard enough because it had spaces in the name and I didn't try that. I simply searched for what I stated earlier.
ForceMaster
Lieutenant General
Lieutenant General
Posts: 737
Joined: Fri Aug 08, 2008 11:27 pm
Projects :: Tron The Grid
Games I'm Playing :: The best..SWBFII
xbox live or psn: No gamertag set
Location: C:\Program Files\ForceMaster\Bin\ForceMaster.exe

Re: Melee throw question

Post by ForceMaster »

Thanks for help, I've tried with lots of codes but not work, I'll use the "granade" class to do it, thanks again!
Post Reply