Data Realms Fan Forums
http://45.55.195.193/

The test weapon
http://45.55.195.193/viewtopic.php?f=61&t=30104
Page 1 of 1

Author:  Mehman [ Mon Feb 13, 2012 8:27 pm ]
Post subject:  The test weapon

Hi everyone,

So this isn't really a regular mod, as it is not desingned to be played with, but rather to help people make mods:

It is a gun that can be customized using the lua console, this is used to fine tune MOPixel firing guns(to find the right mass, sharpness, velocity for the bullet, the right rate of fire, sharplength... etc)

Here is how it works:
Order the gun, then open the lua console and type the name of the value you want to change: for example if you want the bullet's sharpness to be 25, type:
Code:
testroundSharpness = 25

And it will immediately take effect, instead of needing to restart the game, thus saving lots of time.

Here is the list of all customizable variables:
testroundMass
testroundSharpness
testroundFireVel
testroundParticleCount
testgunRateOfFire
testgunSharpLength

Once you're satisfied with the result, type this:
Code:
testroundReport()

or this:
Code:
testgunReport()


It will tell you the current values of these variables, that way you can modify the .ini file of your gun.

Download:
Attachment:
testweapon1.rar [1.23 KiB]
Downloaded 337 times

Author:  ryry1237 [ Wed Feb 15, 2012 12:26 am ]
Post subject:  Re: The test weapon

Just want to mention that I find this very useful for testing out how just how much my modded bullets will end up eating terrain.

Author:  Mittens [ Sun Feb 19, 2012 5:43 am ]
Post subject:  Re: The test weapon

This seems like something that'd be fun to mess around with, but I honestly have no idea how to open the lua console in game. I'm new to modding and all that. Apologies in advance if this question has already been answered somewhere else on the site.

Author:  Gotcha! [ Sun Feb 19, 2012 10:56 am ]
Post subject:  Re: The test weapon

~

Author:  The Chairman [ Sun Feb 19, 2012 1:42 pm ]
Post subject:  Re: The test weapon

On my keyboard(qwertz), it's the "^" key.

Author:  Azukki [ Sun Feb 19, 2012 3:22 pm ]
Post subject:  Re: The test weapon

Very nice. I was doing something somewhat similar by defining those properties in a Lua script, changing those in a text editor, saving, and then reloading scripts with my modded brain case, but with this, having no other programs involved, it's much faster to test small changes.

It's too bad that Lua can't access AirResistance or GlobalAccScalar. Maybe you could emulate those effects with Lua though? It wouldn't actually be changing the .ini values, but it'd be basically the same for the user, as they would see what those values would do and be able to test their effects.

Author:  Mittens [ Mon Feb 20, 2012 12:47 am ]
Post subject:  Re: The test weapon

Thanks Gotcha! and Chairman, I should have probably tried that first, lulz.

Author:  weegee [ Wed Feb 22, 2012 5:17 pm ]
Post subject:  Re: The test weapon

Awesome. That somehow reminds me about Borderlands with it's gazillion of weapons :)

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/