How to make a bouncy or a sticky weapon

View previous topic View next topic Go down

How to make a bouncy or a sticky weapon

Post by WormsS on Tue Feb 19, 2013 6:33 pm

Even though the tweaking is pretty "dead" now, I would like to make a tutorial.
Okay, firt of all, I want you to know that I'm french and I might not be really understanding.

The title says it all...
The first thing you need to do is to open WeapTwk.xml, which is in Worms 4 Mayhem/data/Tweak.
So in this tutorial we're going to make a sticky Grenade, which is something really cool.

Press Ctrl+F, type "kWeaponGrenade", and press Enter twice.
Now you have to search these lines:
Code:

      <TangentialMinBounceDamping></TangentialMinBounceDamping>
      <ParallelMinBounceDamping></ParallelMinBounceDamping>
      <TangentialMaxBounceDamping></TangentialMaxBounceDamping>
      <ParallelMaxBounceDamping></ParallelMaxBounceDamping>
These lines are useful to change the values of the bouncing properties.
If you want your weapon to be sticky, change these values to -1, like:
Code:

      <TangentialMinBounceDamping>-1</TangentialMinBounceDamping>
      <ParallelMinBounceDamping>-1</ParallelMinBounceDamping>
      <TangentialMaxBounceDamping>-1</TangentialMaxBounceDamping>
      <ParallelMaxBounceDamping>-1</ParallelMaxBounceDamping>

Now your grenade is sticky. 8)
And if you want your weapon to be bouncy, it's really simple: Change these values to 1, like:
Code:

      <TangentialMinBounceDamping>1</TangentialMinBounceDamping>
      <ParallelMinBounceDamping>1</ParallelMinBounceDamping>
      <TangentialMaxBounceDamping>1</TangentialMaxBounceDamping>
      <ParallelMaxBounceDamping>1</ParallelMaxBounceDamping>
And you will have a bouncy grenade. Smile
Be careful with this kind of weapon, because your weapon needs to explode, else it bounces forever until it falls in the water. The most classic way for a weapon to explode is when the "<LifeTime>" delay is reached. The life time of the grenade is 6000 (in millisecond), what it means 6 seconds. The " 5.. 4.. 3.. 2.. 1.." counter can be hidden with "IsFuseDisplayed". Set this to "false" and the counter won't appear, like the mine.

Now you have a sticky or a bouncy weapon.
Oh, and don't forget to set "DetonatesOnLandImpact" to false, else your weapon will explode on a wall like the bazooka.


I'm sorry for my english which is sometimes pretty hard to understand.
I hope that my tutorial will be useful, even if there isn't a lot of tweakers at this time.
Bye.

______________________________________________________________________________________________________________________
Don't forget that I'm french and my english isn't always good.
avatar
WormsS
Worms tweaker
Worms tweaker

Posts : 49
Activity Points : 69
Reputation : 9
Join date : 2010-03-31
Age : 19
Location : France

View user profile

Back to top Go down

Re: How to make a bouncy or a sticky weapon

Post by Dzani on Sun Mar 03, 2013 9:27 pm

You have been promoted to Worms Tweaker Rank.
avatar
Dzani
Admin
Admin

Posts : 575
Activity Points : 953
Reputation : 87
Join date : 2008-01-10

View user profile http://worms4mayhem.forum-motion.com

Back to top Go down

Re: How to make a bouncy or a sticky weapon

Post by WormsS on Sun Mar 03, 2013 9:52 pm

Yay ! Very Happy

______________________________________________________________________________________________________________________
Don't forget that I'm french and my english isn't always good.
avatar
WormsS
Worms tweaker
Worms tweaker

Posts : 49
Activity Points : 69
Reputation : 9
Join date : 2010-03-31
Age : 19
Location : France

View user profile

Back to top Go down

Re: How to make a bouncy or a sticky weapon

Post by TheKingDragonFire on Fri Sep 06, 2013 6:58 pm

I knew that already do and even easier
Code:

      <TangentialMinBounceDamping>0</TangentialMinBounceDamping>
      <ParallelMinBounceDamping>0</ParallelMinBounceDamping>
      <TangentialMaxBounceDamping>0</TangentialMaxBounceDamping>
      <ParallelMaxBounceDamping>0</ParallelMaxBounceDamping>
        or: <HasAdjustableBounce>false<HasAdjustableBounce>
I'm Tweaker Tounge
avatar
TheKingDragonFire
Standard Member

Posts : 542
Activity Points : 806
Reputation : 24
Join date : 2012-02-23
Age : 19
Location : Italy

View user profile https://www.facebook.com/TheKingDragonFire/?ref=aymt_homepage_pa

Back to top Go down

Re: How to make a bouncy or a sticky weapon

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum