Unlucky Posted February 22, 2017 Share Posted February 22, 2017 I was able to get an increased turret size by changing the turrets damage. However it also increased the recoil. Anyone got any insight how I could go about reducing the recoil? Thanks, Unlucky. Attached are some screens of the Turrets. http://imgur.com/a/POQc0 Link to comment Share on other sites More sharing options...
Luccio Posted February 23, 2017 Share Posted February 23, 2017 Turret size is a property of the turret entity, and recoil is a property of the weapons that make up the turret. Stick this in a command and play around with it to make any turret you want. package.path = package.path .. ";data/scripts/lib/?.lua" require ("turretgenerator") function execute(sender, commandName, ...) --(seed,weaponType,dps,techLevel,rarity,material) local TurretTemplate T = GenerateTurretTemplate(random():createSeed(), WeaponType.Bolter, 150, 40, Rarity(4), Material(MaterialType.Ogonite)) --table containing the weapons that make up the turret local weapons = {T:getWeapons()} --clear old weapons from turret T:clearWeapons() --modify weapons for _,weapon in pairs(weapons) do weapon.damage = 1000 weapon.fireRate = 3 weapon.recoil = weapon.recoil*0.2 --add mofidied weapons to turret T:addWeapon(weapon) end --change properties of turret T.automatic = true T.size = 0.5 Player(sender):getInventory():add(InventoryTurret(T)) end function getDescription() return "" end function getHelp() return "" end Link to comment Share on other sites More sharing options...
BX442 Posted February 24, 2017 Share Posted February 24, 2017 for _,weapon in pairs(weapons) do weapon.damage = 1000 weapon.reach = 100 -- visual works only in the description --add mofidied weapons to turret T:addWeapon(weapon) end weapon.reach changes the distance only in the description, in the turret remains the standard distance, bug? Link to comment Share on other sites More sharing options...
Luccio Posted February 24, 2017 Share Posted February 24, 2017 Reach is for the description only, for beam weapons you need to change weapon.blength, and for projectiles weapon.pmaximumTime and weapon.pvelocity Link to comment Share on other sites More sharing options...
lyravega Posted February 24, 2017 Share Posted February 24, 2017 Reach is for the description only, for beam weapons you need to change weapon.blength, and for projectiles weapon.pmaximumTime and weapon.pvelocity Not just description - it governs the blue "autolock" circles. Link to comment Share on other sites More sharing options...
LogicSocket Posted March 2, 2017 Share Posted March 2, 2017 Here: Laser of Extreme Death Credtis: Luccio for original code. download and place in data>scripts>commands. In game enter /turretgenls in chat to spawn weapon. https://mega.nz/#!dJEknIoY!DAvKH_wm8rdVJ4PybZQUqaMzsy28DlVAdWZ50a5vU-g Link to comment Share on other sites More sharing options...
Nscmichael Posted May 20, 2017 Share Posted May 20, 2017 How do I change the cooldown/overheat/maxheat or whatever it is? What piece of script should I put in for that? Link to comment Share on other sites More sharing options...
Nscmichael Posted May 20, 2017 Share Posted May 20, 2017 I found out how to make a tractor beam. package.path = package.path .. ";data/scripts/lib/?.lua" require ("turretgenerator") function execute(sender, commandName, ...) --(seed,weaponType,dps,techLevel,rarity,material) local TurretTemplate T = GenerateTurretTemplate(random():createSeed(), WeaponType.ForceGun, 0, 100, Rarity(5), Material(MaterialType.Avorion)) --table containing the weapons that make up the turret local weapons = {T:getWeapons()} --clear old weapons from turret T:clearWeapons() --modify weapons for _,weapon in pairs(weapons) do weapon.recoil = weapon.recoil*0.01 weapon.blength = weapon.blength*5.0 weapon.reach = 500 weapon.otherForce = -1500000 weapon.selfForce = 0 --add mofidied weapons to turret T:addWeapon(weapon) end --change properties of turret T.automatic = true T.size = 1 Player(sender):getInventory():add(InventoryTurret(T)) end function getDescription() return "" end function getHelp() return "" end Link to comment Share on other sites More sharing options...
admirall1980 Posted August 19, 2017 Share Posted August 19, 2017 Hello everyone ;), I wanted to clarify whether there is an opportunity to completely remove the recoil of the turrets in the game itself, not on a specific tower, but at all, even on those that fall randomly from the NPC ??? I apologize for my bad english :'( Link to comment Share on other sites More sharing options...
Bers40k Posted October 7, 2017 Share Posted October 7, 2017 i install this LUA and spwn turret, but if i shot turret wont give damage. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now