shield damage absorbtion

A place for discussion of making game modifications.
User avatar
siyoa
Posts: 182
Joined: Fri Apr 21, 2017 3:19 pm

shield damage absorbtion

Postby siyoa » Tue Mar 20, 2018 6:03 am

I think I got it, it was actually fairly simple, I still need to test it more, to make sure there are no hidden issues

add following for any shield in SYSTEMS.lua (XX is amount of damage per weapon fired at it, shield should absorb)

Code: Select all

shield_absorbtion=XX,


and you need this file
Attachments
ship_damage.lua.zip
(7.67 KiB) Downloaded 629 times
Last edited by siyoa on Tue Mar 20, 2018 6:13 am, edited 1 time in total.
How did YOU get a key? All right, go in.

User avatar
siyoa
Posts: 182
Joined: Fri Apr 21, 2017 3:19 pm

Re: shield damage absorbtion

Postby siyoa » Tue Mar 20, 2018 6:07 am

vanilla shields, Harpies have 2 hardpoints with 2 spiters each doing 15 damage each, i.e. 2 x 30 damage
Attachments
Screen Shot 2018-03-19 at 10.52.05 PM.png
Screen Shot 2018-03-19 at 10.52.05 PM.png (526.93 KiB) Viewed 8108 times
How did YOU get a key? All right, go in.

User avatar
siyoa
Posts: 182
Joined: Fri Apr 21, 2017 3:19 pm

Re: shield damage absorbtion

Postby siyoa » Tue Mar 20, 2018 6:08 am

shield absorbtion set to 10, each spitter does 15-10=5 damage only, 4x5=20 damage, 10 and 10 on the picture
Attachments
Screen Shot 2018-03-19 at 10.54.34 PM.png
Screen Shot 2018-03-19 at 10.54.34 PM.png (526.23 KiB) Viewed 8108 times
How did YOU get a key? All right, go in.

User avatar
siyoa
Posts: 182
Joined: Fri Apr 21, 2017 3:19 pm

Re: shield damage absorbtion

Postby siyoa » Tue Mar 20, 2018 6:09 am

shield absorbtion set to 15, each spitter does 0 damage
Attachments
Screen Shot 2018-03-19 at 10.56.23 PM.png
Screen Shot 2018-03-19 at 10.56.23 PM.png (530.66 KiB) Viewed 8108 times
How did YOU get a key? All right, go in.


Return to “Modding”

Who is online

Users browsing this forum: No registered users and 25 guests