Page 1 of 1

Power Armor for vehicle

Posted: Sat Apr 16, 2016 7:17 am
by dewast
Hi, couldn't find mod or line in game, that will allow creating and adding an extra equipment in car and tank. Something like Power armor MK2 in character, but for vehicle to add extra armor, shield, speed or guns, like turrets, lasers or mortarfor rockets.

Re: Power Armor for vehicle

Posted: Sun Apr 17, 2016 5:16 pm
by dewast
I can't find LUA about armor assigned to character,
nad can't finde the write place to put line from armor
equipment_grid = {width = 7, height = 7}
so there was extra equipment slots, next to inventory in my new car mod.
any ideas?

Re: Power Armor for vehicle

Posted: Sun Apr 17, 2016 8:34 pm
by Adil
dewast wrote:nad can't finde the write place to put line from armor
You can't do that.
Car is a car, armor is an armor and they belong to different types. At best the unsupported fields of prototype will be ignored, at worst the game will error on startup.

You'll have to implement all the stuff for the car as scripts in control.lua and fake some gui to function as car equipment installation window.

Re: Power Armor for vehicle

Posted: Mon Apr 18, 2016 9:56 am
by dewast
If only I know how to do it, I can "rewrite" existing code for mode - make new staff if have bluprint how to make it.
But I could't find relationship/dependence betwen armor and character to modyfie it for armor - Vehicle (car, tank).

Re: Power Armor for vehicle

Posted: Mon Apr 18, 2016 4:05 pm
by Rseding91
dewast wrote:If only I know how to do it, I can "rewrite" existing code for mode - make new staff if have bluprint how to make it.
But I could't find relationship/dependence betwen armor and character to modyfie it for armor - Vehicle (car, tank).
All of the (complex) logic for the power armor equipment grid to work does not exist for cars. The GUI, the handling of damage adjustments through equipment in the armor, the energy charge/distribution of the equipment in the armor and so on is not there for cars.

The "equipment grid" prototype property on armor simply sets the equipment grid properties on the armor - all of the actual logic and code for how that works when it's enabled for armor doesn't exist for the car.

Re: Power Armor for vehicle

Posted: Mon Apr 18, 2016 7:50 pm
by dewast
I was wanting something like this
Image
http://www.fotosik.pl/zdjecie/91c014e1412e7b7c
Extra armor, shield, generator bateries, meaby turret to self defence when character is away.