Advertisement
expired6978

NetImmerse Override

May 24th, 2013
925
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.05 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. ; 20 - float - ControllerStartStop (-1.0 for stop, anything else indicates start time)
  15. ; 21 - float - ControllerStartTime
  16. ; 22 - float - ControllerStopTime
  17. ; 23 - float - ControllerFrequency
  18. ; 24 - float - ControllerPhase
  19.  
  20. ; Indexes are for controller index (0-255)
  21. ; -1 indicates not relevant, use it when not using controller based properties
  22.  
  23. ; Persist True will save the change to the co-save and will automatically re-apply when equipping
  24. ; Persist False will apply the change visually until the armor is re-equipped or the game is reloaded
  25.  
  26. ; No keys support strings yet so the String based functions will fail
  27.  
  28. ; ObjectReference must be an Actor
  29. ; Overrides will clean themselves if the Armor or ArmorAddon no longer exists (i.e. you uninstalled the mod they were associated with)
  30. Function AddOverrideFloat(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index, float value, bool persist) native global
  31. Function AddOverrideInt(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index, int value, bool persist) native global
  32. Function AddOverrideBool(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index, bool value, bool persist) native global
  33. Function AddOverrideString(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index, string value, bool persist) native global
  34. Function AddOverrideTextureSet(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index, TextureSet value, bool persist) native global
  35.  
  36. ; Gets the saved override value
  37. float Function GetOverrideFloat(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index) native global
  38. int Function GetOverrideInt(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index) native global
  39. bool Function GetOverrideBool(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index) native global
  40. string Function GetOverrideString(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index) native global
  41. TextureSet Function GetOverrideTextureSet(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index) native global
  42.  
  43. ; Gets the property straight from the node
  44. float Function GetPropertyFloat(ObjectReference ref, bool firstPerson, Armor arm, ArmorAddon addon, string node, int key, int index) native global
  45. int Function GetPropertyInt(ObjectReference ref, bool firstPerson, Armor arm, ArmorAddon addon, string node, int key, int index) native global
  46. bool Function GetPropertyBool(ObjectReference ref, bool firstPerson, Armor arm, ArmorAddon addon, string node, int key, int index) native global
  47. string Function GetPropertyString(ObjectReference ref, bool firstPerson, Armor arm, ArmorAddon addon, string node, int key, int index) native global
  48. ;TextureSet is not stored on the node
  49.  
  50. ; ObjectReference must be an Actor
  51. ; ADVANCED USE ONLY, THESE DO NOT SELF CLEANUP IF THE NODE IS NOT FOUND
  52. Function AddNodeOverrideFloat(ObjectReference ref, bool isFemale, string node, int key, int index, float value, bool persist) native global
  53. Function AddNodeOverrideInt(ObjectReference ref, bool isFemale, string node, int key, int index, int value, bool persist) native global
  54. Function AddNodeOverrideBool(ObjectReference ref, bool isFemale, string node, int key, int index, bool value, bool persist) native global
  55. Function AddNodeOverrideString(ObjectReference ref, bool isFemale, string node, int key, int index, string value, bool persist) native global
  56. Function AddNodeOverrideTextureSet(ObjectReference ref, bool isFemale, string node, int key, int index, TextureSet value, bool persist) native global
  57.  
  58. float Function GetNodeOverrideFloat(ObjectReference ref, bool isFemale, string node, int key, int index) native global
  59. int Function GetNodeOverrideInt(ObjectReference ref, bool isFemale, string node, int key, int index) native global
  60. bool Function GetNodeOverrideBool(ObjectReference ref, bool isFemale, string node, int key, int index) native global
  61. string Function GetNodeOverrideString(ObjectReference ref, bool isFemale, string node, int key, int index) native global
  62. TextureSet Function GetNodeOverrideTextureSet(ObjectReference ref, bool isFemale, string node, int key, int index) native global
  63.  
  64. ; Gets the property straight from the node
  65. float Function GetNodePropertyFloat(ObjectReference ref, bool firstPerson, string node, int key, int index) native global
  66. int Function GetNodePropertyInt(ObjectReference ref, bool firstPerson, string node, int key, int index) native global
  67. bool Function GetNodePropertyBool(ObjectReference ref, bool firstPerson, string node, int key, int index) native global
  68. string Function GetNodePropertyString(ObjectReference ref, bool firstPerson, string node, int key, int index) native global
  69. ;TextureSet is not stored on the node
  70.  
  71.  
  72. ; Remove functions do not revert the modified state, only remove it from the save
  73.  
  74. ; Removes ALL Armor based overrides from ALL actors (Global purge)
  75. Function RemoveAllOverrides() native global
  76.  
  77. ; Removes all Armor based overrides for a particular actor
  78. Function RemoveAllReferenceOverrides(ObjectReference ref) native global
  79.  
  80. ; Removes all ArmorAddon overrides for a particular actor and armor
  81. Function RemoveAllArmorOverrides(ObjectReference ref, bool isFemale, Armor arm) native global
  82.  
  83. ; Removes all overrides for a particular actor, armor, and addon
  84. Function RemoveAllArmorAddonOverrides(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon) native global
  85.  
  86. ; Removes all overrides for a particukar actor, armor, addon, and nodeName
  87. Function RemoveAllArmorAddonNodeOverrides(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node) native global
  88.  
  89. ; Removes one particular override from an actor, armor, addon, node name, key, index
  90. Function RemoveOverride(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index) native global
  91.  
  92. ; Removes ALL Node based overrides for ALL actors
  93. Function RemoveAllNodeOverrides() native global
  94.  
  95. ; Removes all Node based overrides for a particular actor
  96. Function RemoveAllReferenceNodeOverrides(ObjectReference ref) native global
  97.  
  98. ; Removes all Node based overrides for a particular actor, gender, and nodeName
  99. Function RemoveAllNodeNameOverrides(ObjectReference ref, bool isFemale, string node) native global
  100.  
  101. ; Removes one particular override from an actor, of a particular gender, nodeName, key, and index
  102. Function RemoveNodeOverride(ObjectReference ref, bool isFemale, string node, int key, int index) native global
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement