How do to put this code on wormpot?
2 posters
Worms 4 and Ultimate Mayhem tweaking mods :: 3D PC games // Tweaking that we major in :: Worms 4 mayhem :: Support
Page 1 of 1
How do to put this code on wormpot?
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
Re: How do to put this code on wormpot?
You should learn a bit of Lua, basics at least. 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:
As simple as that. I hope I answered your question.
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.
WormsS- Worms tweaker
- Posts : 49
Activity Points : 69
Reputation : 9
Join date : 2010-03-31
Age : 26
Location : France
Re: How do to put this code on wormpot?
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
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
Re: How do to put this code on wormpot?
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.
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.
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)
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- Worms tweaker
- Posts : 49
Activity Points : 69
Reputation : 9
Join date : 2010-03-31
Age : 26
Location : France
Re: How do to put this code on wormpot?
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)
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)
Similar topics
» the code of the script crashes wormpot.lua why?
» Modified Wormpot
» Problems on wormpot.lua
» Worms 4 TheReturn 1.6.7 (Extended Version) + Download
» Worms 4: TheReturn + Download (Compact Version)
» Modified Wormpot
» Problems on wormpot.lua
» Worms 4 TheReturn 1.6.7 (Extended Version) + Download
» Worms 4: TheReturn + Download (Compact Version)
Worms 4 and Ultimate Mayhem tweaking mods :: 3D PC games // Tweaking that we major in :: Worms 4 mayhem :: Support
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|