Worms 4 and Ultimate Mayhem tweaking mods
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How do to put this code on wormpot?

2 posters

Go down

How do to put this code on wormpot? Empty How do to put this code on wormpot?

Post by TKDF Sun Jun 01, 2014 10:48 am


I must put on file wormpot.lua
I know:
Container.ImpulseMagnitude = 0.4
Container.HasAdjustableFuse = "true"
Container.PayloadGraphicsResourceID = "Factory.Proj.Tank"
Container.Scale = 1
but I don't know this codec..... how?
Give me one answer decent
TKDF
TKDF
Standard Member

Posts : 547
Activity Points : 811
Reputation : 24
Join date : 2012-02-23
Age : 26
Location : Italy

http://soundcloud.com/tkdf

Back to top Go down

How do to put this code on wormpot? Empty Re: How do to put this code on wormpot?

Post by WormsS Sun Jun 01, 2014 10:20 pm

You should learn a bit of Lua, basics at least. Smile It gives lots of possibilities in W4M.

So, if you modify Wormpot.lua, you have to replace an existing reel. In this example, I replaced the "Double Damage" Wormpot option. Oh, and you didn't specify what weapon you want to modify, so I made my example with kWeaponGrenade.

In Wormpot.lua, search the line "if Wormpot.DoubleDamage == true then [...]"
and replace the If-loop by this one:


Code:
   if Wormpot.DoubleDamage == true then
      local ContainerLock, Container = EditContainer("kWeaponGrenade")
      Container.ImpulseMagnitude = 0.4
      Container.HasAdjustableFuse = "true"
      Container.PayloadGraphicsResourceID = "Factory.Proj.Tank"
      Container.Scale = 1   
      CloseContainer(ContainerLock)
   end

As simple as that. I hope I answered your question. Wink
WormsS
WormsS
Worms tweaker
Worms tweaker

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

Back to top Go down

How do to put this code on wormpot? Empty Re: How do to put this code on wormpot?

Post by TKDF Fri Jun 06, 2014 10:08 pm

oops there is a misconception, in fact I know everything, I actually do know a lot of codes wormpot but by mistake I have not sent in the message this code: 
       FirstPersonOffset X='0' y='0' z='0' /
which I support, how do I put this in wormpot? 
anyway sorry for having wasted your time in wormpot I can do many things, except this
TKDF
TKDF
Standard Member

Posts : 547
Activity Points : 811
Reputation : 24
Join date : 2012-02-23
Age : 26
Location : Italy

http://soundcloud.com/tkdf

Back to top Go down

How do to put this code on wormpot? Empty Re: How do to put this code on wormpot?

Post by WormsS Sun Jun 08, 2014 1:11 pm

Well, if you forgot the most important thing in your message, how do you want me to understand ?  :roll: Please check twice what you have written before posting...

By the way, you can not modify a vector variable directly in a Lua code. But what you can try to do is creating a new vector variable in Local.xml for example, giving it the new value of FirstPersonOffset, and then take its value and apply it to FirstPersonOffset in the Lua file.

Code:
local NewFPO = GetData("NewVectorVariable")
local ContainerLock, Container = EditContainer("YourWeapon")
Container.FirstPersonOffset = NewFPO
...
CloseContainer(ContainerLock)
Tell me if it's working.

Oh, so you're doing mods in the wormpot ? I am interested in that, feel free to share your wormpot creations if you have some.
WormsS
WormsS
Worms tweaker
Worms tweaker

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

Back to top Go down

How do to put this code on wormpot? Empty Re: How do to put this code on wormpot?

Post by TKDF Sun Jun 08, 2014 7:40 pm

I have already come a long way from wormpot, now share the file has no errors and I tested again today I just replaced the mode animals, firearms, double damage, maximum fall, body to body, crate shower.
here is the file: https://mega.co.nz/#!fd8QDaRA!_SHoimvG53Gyf3NENFpLyVwcoohxXqfHy8G_9221jcg
Weapon pack 1.1.4: https://mega.co.nz/#!bRc3jYoT!QxhX6xxFg4JL4g9r5mmjR6p08rtrFkeP5REDfwao1hM
WeapTwk: https://mega.co.nz/#!DN810aCb!75kPrZDOSkDCoyebzFuZwz_OcPvS2h4LBDNPXldpN10
you must also download the 1.1.4 package weapons and weaptwk for support the game with weapons wormpot correct, that's all I'll tell you what; This is a mod made ​​and run by me, check the portal compact version.
wormpot this file will be placed in the extended version in most other missions
Caps of mod: https://mega.co.nz/#!mJVSXaBI!K6vYuuAjOjE-Xl_BWn4S5Npg79kJ7Mj3sPcpsqIZtvc
(if you want)
TKDF
TKDF
Standard Member

Posts : 547
Activity Points : 811
Reputation : 24
Join date : 2012-02-23
Age : 26
Location : Italy

http://soundcloud.com/tkdf

Back to top Go down

How do to put this code on wormpot? Empty Re: How do to put this code on wormpot?

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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