Advertisement
expired6978

NiOverride

Jun 17th, 2013
557
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.76 KB | None | 0 0
  1. Scriptname NiOverride Hidden
  2.  
  3. ; Valid keys
  4. ; ID - TYPE - Name
  5. ; 0 - int - ShaderEmissiveColor
  6. ; 1 - float - ShaderEmissiveMultiple
  7. ; 2 - float - ShaderGlossiness
  8. ; 3 - float - ShaderSpecularStrength
  9. ; 4 - float - ShaderLightingEffect1
  10. ; 5 - float - ShaderLightingEffect2
  11. ; 6 - TextureSet - ShaderTextureSet
  12. ; 7 - int - ShaderTintColor
  13. ; 8 - float - ShaderAlpha
  14. ; 9 - string - ShaderTexture (index 0-8)
  15. ; 20 - float - ControllerStartStop (-1.0 for stop, anything else indicates start time)
  16. ; 21 - float - ControllerStartTime
  17. ; 22 - float - ControllerStopTime
  18. ; 23 - float - ControllerFrequency
  19. ; 24 - float - ControllerPhase
  20.  
  21. ; Indexes are for controller index (0-255)
  22. ; -1 indicates not relevant, use it when not using controller based properties
  23.  
  24. ; Persist True will save the change to the co-save and will automatically re-apply when equipping
  25. ; Persist False will apply the change visually until the armor is re-equipped or the game is reloaded (Equivalent to SetPropertyX)
  26.  
  27. ; ObjectReference must be an Actor
  28. ; Overrides will clean themselves if the Armor or ArmorAddon no longer exists (i.e. you uninstalled the mod they were associated with)
  29. bool Function HasOverride(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index) native global
  30.  
  31. Function AddOverrideFloat(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index, float value, bool persist) native global
  32. Function AddOverrideInt(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index, int value, bool persist) native global
  33. Function AddOverrideBool(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index, bool value, bool persist) native global
  34. Function AddOverrideString(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index, string value, bool persist) native global
  35. Function AddOverrideTextureSet(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index, TextureSet value, bool persist) native global
  36.  
  37. ; Gets the saved override value
  38. float Function GetOverrideFloat(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index) native global
  39. int Function GetOverrideInt(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index) native global
  40. bool Function GetOverrideBool(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index) native global
  41. string Function GetOverrideString(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index) native global
  42. TextureSet Function GetOverrideTextureSet(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index) native global
  43.  
  44. ; Gets the property straight from the node (Handy if you need the current value if an override D.N.E yet)
  45. float Function GetPropertyFloat(ObjectReference ref, bool firstPerson, Armor arm, ArmorAddon addon, string node, int key, int index) native global
  46. int Function GetPropertyInt(ObjectReference ref, bool firstPerson, Armor arm, ArmorAddon addon, string node, int key, int index) native global
  47. bool Function GetPropertyBool(ObjectReference ref, bool firstPerson, Armor arm, ArmorAddon addon, string node, int key, int index) native global
  48. string Function GetPropertyString(ObjectReference ref, bool firstPerson, Armor arm, ArmorAddon addon, string node, int key, int index) native global
  49. ;TextureSet is not stored on the node, individual textures are, however.
  50.  
  51. ; Applies all armor properties visually to the actor, this shouldn't be necessary under normal circumstances
  52. Function ApplyOverrides(ObjectReference ref) native global
  53.  
  54. ; ObjectReference must be an Actor (These could work for non-actor objects, untested)
  55. ; ADVANCED USE ONLY, THESE DO NOT SELF CLEANUP IF THE NODE IS NOT FOUND
  56. ; Returns whether there is an override for this particular node
  57. bool Function HasNodeOverride(ObjectReference ref, bool isFemale, string node, int key, int index) native global
  58.  
  59. Function AddNodeOverrideFloat(ObjectReference ref, bool isFemale, string node, int key, int index, float value, bool persist) native global
  60. Function AddNodeOverrideInt(ObjectReference ref, bool isFemale, string node, int key, int index, int value, bool persist) native global
  61. Function AddNodeOverrideBool(ObjectReference ref, bool isFemale, string node, int key, int index, bool value, bool persist) native global
  62. Function AddNodeOverrideString(ObjectReference ref, bool isFemale, string node, int key, int index, string value, bool persist) native global
  63. Function AddNodeOverrideTextureSet(ObjectReference ref, bool isFemale, string node, int key, int index, TextureSet value, bool persist) native global
  64.  
  65. ; Return the stored override, returns default (nil) values if the override D.N.E
  66. float Function GetNodeOverrideFloat(ObjectReference ref, bool isFemale, string node, int key, int index) native global
  67. int Function GetNodeOverrideInt(ObjectReference ref, bool isFemale, string node, int key, int index) native global
  68. bool Function GetNodeOverrideBool(ObjectReference ref, bool isFemale, string node, int key, int index) native global
  69. string Function GetNodeOverrideString(ObjectReference ref, bool isFemale, string node, int key, int index) native global
  70. TextureSet Function GetNodeOverrideTextureSet(ObjectReference ref, bool isFemale, string node, int key, int index) native global
  71.  
  72. ; Gets the property straight from the node (Handy if you need the current value if an override D.N.E yet)
  73. float Function GetNodePropertyFloat(ObjectReference ref, bool firstPerson, string node, int key, int index) native global
  74. int Function GetNodePropertyInt(ObjectReference ref, bool firstPerson, string node, int key, int index) native global
  75. bool Function GetNodePropertyBool(ObjectReference ref, bool firstPerson, string node, int key, int index) native global
  76. string Function GetNodePropertyString(ObjectReference ref, bool firstPerson, string node, int key, int index) native global
  77. ;TextureSet is not stored on the node, individual textures are, however.
  78.  
  79. ; Applies all node properties visually to the actor, this shouldn't be necessary under normal circumstances
  80. Function ApplyNodeOverrides(ObjectReference ref) native global
  81.  
  82.  
  83. ; Remove functions do not revert the modified state, only remove it from the save
  84.  
  85. ; Removes ALL Armor based overrides from ALL actors (Global purge)
  86. Function RemoveAllOverrides() native global
  87.  
  88. ; Removes all Armor based overrides for a particular actor
  89. Function RemoveAllReferenceOverrides(ObjectReference ref) native global
  90.  
  91. ; Removes all ArmorAddon overrides for a particular actor and armor
  92. Function RemoveAllArmorOverrides(ObjectReference ref, bool isFemale, Armor arm) native global
  93.  
  94. ; Removes all overrides for a particular actor, armor, and addon
  95. Function RemoveAllArmorAddonOverrides(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon) native global
  96.  
  97. ; Removes all overrides for a particukar actor, armor, addon, and nodeName
  98. Function RemoveAllArmorAddonNodeOverrides(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node) native global
  99.  
  100. ; Removes one particular override from an actor, armor, addon, node name, key, index
  101. Function RemoveOverride(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index) native global
  102.  
  103. ; Removes ALL Node based overrides for ALL actors (Global purge)
  104. Function RemoveAllNodeOverrides() native global
  105.  
  106. ; Removes all Node based overrides for a particular actor
  107. Function RemoveAllReferenceNodeOverrides(ObjectReference ref) native global
  108.  
  109. ; Removes all Node based overrides for a particular actor, gender, and nodeName
  110. Function RemoveAllNodeNameOverrides(ObjectReference ref, bool isFemale, string node) native global
  111.  
  112. ; Removes one particular override from an actor, of a particular gender, nodeName, key, and index
  113. Function RemoveNodeOverride(ObjectReference ref, bool isFemale, string node, int key, int index) native global
  114.  
  115. ; Overlay Data
  116. int Function GetNumBodyOverlays() native global
  117. int Function GetNumHandOverlays() native global
  118. int Function GetNumFeetOverlays() native global
  119.  
  120. int Function GetNumSpellBodyOverlays() native global
  121. int Function GetNumSpellHandOverlays() native global
  122. int Function GetNumSpellFeetOverlays() native global
  123.  
  124. ; Adds all enabled overlays to an Actor (Cannot add to player, always exists for player)
  125. Function AddOverlays(ObjectReference ref) native global
  126.  
  127. ; Returns whether this actor has overlays enabled (Always true for player)
  128. bool Function HasOverlays(ObjectReference ref) native global
  129.  
  130. ; Removes overlays from an actor (Cannot remove from player)
  131. Function RemoveOverlays(ObjectReference ref) native global
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement