added the maya installation tutorial.
since I haven't written it up, the requirements for making a shield are the following
1.copy the ships Collision mesh and scale it by 101%, adjust to make sure the new mesh covers the underlying mesh.
2.all you need is two copies of this new larger mesh, name one SHIELD_LOD0 and the other CM_SHIELD, assign a 1x1 pixel texture to the LOD0 (to save file space)
3. follow the import tutorial, but you can ignore all of the steps for unecessary stuff (you simply need to exprt a hod with the LOD0 and collision mesh, delete everything else )
4. you should export when you have the following
ROOT
+----SHIELD_LOD0
+----CM_SHIELD
export this to a directory in the subsytems folder
====================================================
the lines of interest in a .subs
NewSubSystemType.maxhealth = 350000
total shield hitpoints
NewSubSystemType.regentime = 240
how many seconds does it take to fully recharge
NewSubSystemType.selectionLimit = 20000
this determines how far away the healthbar will be visible
NewSubSystemType.inactiveTimeAfterDamage = 100
how long the shield will be down once its hitpoints are deplated
NewSubSystemType.activateHealthPercentage = 0.1
what percentage it has to recharge before it begins shielding again
NewSubSystemType.visible = 0
this line must be set unless you have a transparent texture
NewSubSystemType.innate = 1
also must be set, unless shields are an upgade
=================================================
to get this working on your ship
add this line AFTER THE loadmodel() is called
Code:
LoadModel(NewShipType,1)
StartShipHardPointConfig (NewShipType,"Bridge","Hardpoint_Shield","System","Innate","Damageable","Imp_Imperator_II_Destroyer_Shields","","","","","","","","")
the first field is just an identifier (it may have a purpose but nearly anything seems to work)
second field is the hard point the shield will be attached to make sure it is 0,0,0 with 0 rotation unless you really know what you are doing)
third field identifies it as a ship system
fourth is if it exists when the ship is built or has to be built later
damagable or destroyable, is it a one time use shield
the last field must match exactly the name of the sub you created earlier