How do to put this code on wormpot?

Go down

How do to put this code on wormpot?

Post by TKDF on 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

______________________________________________________________________________________________________________________


Mod 2016 NEW PATCH: https://mega.nz/#!LU0ARLAC!GSFpQWD21w4wayBjb_58LZg660BCDeewRmoiULZOiJI
TheReturn Production: http://www.modsofthereturnproduction.forumfree.it
ProjectXom Production: http://projectxom.forumfree.it
Facebook Page: https://www.facebook.com/TheKingDragonFire/?ref=aymt_homepage_panel
Soundcloud: http://soundcloud.com/tkdf
avatar
TKDF
Standard Member

Posts : 543
Activity Points : 807
Reputation : 24
Join date : 2012-02-23
Age : 21
Location : Italy

View user profile http://soundcloud.com/tkdf

Back to top Go down

Re: How do to put this code on wormpot?

Post by WormsS on 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

______________________________________________________________________________________________________________________
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 : 20
Location : France

View user profile

Back to top Go down

Re: How do to put this code on wormpot?

Post by TKDF on 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

______________________________________________________________________________________________________________________


Mod 2016 NEW PATCH: https://mega.nz/#!LU0ARLAC!GSFpQWD21w4wayBjb_58LZg660BCDeewRmoiULZOiJI
TheReturn Production: http://www.modsofthereturnproduction.forumfree.it
ProjectXom Production: http://projectxom.forumfree.it
Facebook Page: https://www.facebook.com/TheKingDragonFire/?ref=aymt_homepage_panel
Soundcloud: http://soundcloud.com/tkdf
avatar
TKDF
Standard Member

Posts : 543
Activity Points : 807
Reputation : 24
Join date : 2012-02-23
Age : 21
Location : Italy

View user profile http://soundcloud.com/tkdf

Back to top Go down

Re: How do to put this code on wormpot?

Post by WormsS on 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.

______________________________________________________________________________________________________________________
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 : 20
Location : France

View user profile

Back to top Go down

Re: How do to put this code on wormpot?

Post by TKDF on 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: mega.co.nz #!bRc3jYoT!QxhX6xxFg4JL4g9r5mmjR6p08rtrFkeP5REDfwao1hM
WeapTwk: 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: mega.co.nz #!mJVSXaBI!K6vYuuAjOjE-Xl_BWn4S5Npg79kJ7Mj3sPcpsqIZtvc
(if you want)

______________________________________________________________________________________________________________________


Mod 2016 NEW PATCH: https://mega.nz/#!LU0ARLAC!GSFpQWD21w4wayBjb_58LZg660BCDeewRmoiULZOiJI
TheReturn Production: http://www.modsofthereturnproduction.forumfree.it
ProjectXom Production: http://projectxom.forumfree.it
Facebook Page: https://www.facebook.com/TheKingDragonFire/?ref=aymt_homepage_panel
Soundcloud: http://soundcloud.com/tkdf
avatar
TKDF
Standard Member

Posts : 543
Activity Points : 807
Reputation : 24
Join date : 2012-02-23
Age : 21
Location : Italy

View user profile http://soundcloud.com/tkdf

Back to top Go down

Re: How do to put this code on wormpot?

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


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