Jump to content
Sign in to follow this  
oriondean

questions about the gattling railgun mod

Recommended Posts

so I have some questions about the railgun mod the dev uses as an example.  found here: https://avorion.gamepedia.com/Mod_Example:_Weapon

 

in the turretgenerator.lua file there is a command TurretGenerator.scale(rand, result, WeaponType.GattlingRailGun, tech, 0.75).

what is that 0.75? is scale "the size in blox" or is it the slot size? if there is a command to change the slot size in this mod example, where is it?

Share this post


Link to post
Share on other sites

The slot and scale of the turret are managed by "scales [WeaponType.GatlingRailGun]".

The sample mod specifies to use the parameters of the vanilla rail gun.

 

scales [WeaponType.GatlingRailGun] = scales [WeaponType.RailGun]

 

If you want to specify the original slot and size, you need to specify it.

Example.

scales [WeaponType.GatlingRailGun] = {

{from = 0, to = 28, size = 1.5, usedSlots = 3},

{from = 29, to = 38, size = 2.0, usedSlots = 4},

{from = 39, to = 49, size = 3.0, usedSlots = 5},

--dummy for cooaxial, add1 to size and level

{from = 50, to = 52, size = 3.5, usedSlots = 6},

Share this post


Link to post
Share on other sites
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...