Page 1 of 1

Melee throw question [Solved]

Posted: Sun Dec 14, 2014 12:14 am
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.

Re: Melee throw question

Posted: Sun Dec 14, 2014 4:16 am
by hunpeter12
Sorry, it can't.

Re: Melee throw question

Posted: Sun Dec 14, 2014 9:02 pm
by JimmyAngler
Um, you want a melee weapon to be thrown? how about using a "grenade" sort of thing. those bounce...

Re: Melee throw question

Posted: Sun Dec 14, 2014 9:43 pm
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.

Re: Melee throw question

Posted: Sun Dec 14, 2014 10:10 pm
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.

Re: Melee throw question

Posted: Sun Dec 14, 2014 11:25 pm
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

Re: Melee throw question

Posted: Sun Dec 14, 2014 11:56 pm
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.

Re: Melee throw question

Posted: Tue Dec 16, 2014 9:00 am
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!