Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scriptname NiOverride Hidden
- ; Valid keys
- ; ID - TYPE - Name
- ; 0 - int - ShaderEmissiveColor
- ; 1 - float - ShaderEmissiveMultiple
- ; 2 - float - ShaderGlossiness
- ; 3 - float - ShaderSpecularStrength
- ; 4 - float - ShaderLightingEffect1
- ; 5 - float - ShaderLightingEffect2
- ; 6 - TextureSet - ShaderTextureSet
- ; 7 - int - ShaderTintColor
- ; 8 - float - ShaderAlpha
- ; 20 - float - ControllerStartStop (-1.0 for stop, anything else indicates start time)
- ; 21 - float - ControllerStartTime
- ; 22 - float - ControllerStopTime
- ; 23 - float - ControllerFrequency
- ; 24 - float - ControllerPhase
- ; Indexes are for controller index (0-255)
- ; -1 indicates not relevant, use it when not using controller based properties
- ; Persist True will save the change to the co-save and will automatically re-apply when equipping
- ; Persist False will apply the change visually until the armor is re-equipped or the game is reloaded
- ; No keys support strings yet so the String based functions will fail
- ; ObjectReference must be an Actor
- ; Overrides will clean themselves if the Armor or ArmorAddon no longer exists (i.e. you uninstalled the mod they were associated with)
- Function AddOverrideFloat(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index, float value, bool persist) native global
- Function AddOverrideInt(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index, int value, bool persist) native global
- Function AddOverrideBool(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index, bool value, bool persist) native global
- Function AddOverrideString(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index, string value, bool persist) native global
- Function AddOverrideTextureSet(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index, TextureSet value, bool persist) native global
- ; Gets the saved override value
- float Function GetOverrideFloat(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index) native global
- int Function GetOverrideInt(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index) native global
- bool Function GetOverrideBool(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index) native global
- string Function GetOverrideString(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index) native global
- TextureSet Function GetOverrideTextureSet(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index) native global
- ; Gets the property straight from the node
- float Function GetPropertyFloat(ObjectReference ref, bool firstPerson, Armor arm, ArmorAddon addon, string node, int key, int index) native global
- int Function GetPropertyInt(ObjectReference ref, bool firstPerson, Armor arm, ArmorAddon addon, string node, int key, int index) native global
- bool Function GetPropertyBool(ObjectReference ref, bool firstPerson, Armor arm, ArmorAddon addon, string node, int key, int index) native global
- string Function GetPropertyString(ObjectReference ref, bool firstPerson, Armor arm, ArmorAddon addon, string node, int key, int index) native global
- ;TextureSet is not stored on the node
- ; ObjectReference must be an Actor
- ; ADVANCED USE ONLY, THESE DO NOT SELF CLEANUP IF THE NODE IS NOT FOUND
- Function AddNodeOverrideFloat(ObjectReference ref, bool isFemale, string node, int key, int index, float value, bool persist) native global
- Function AddNodeOverrideInt(ObjectReference ref, bool isFemale, string node, int key, int index, int value, bool persist) native global
- Function AddNodeOverrideBool(ObjectReference ref, bool isFemale, string node, int key, int index, bool value, bool persist) native global
- Function AddNodeOverrideString(ObjectReference ref, bool isFemale, string node, int key, int index, string value, bool persist) native global
- Function AddNodeOverrideTextureSet(ObjectReference ref, bool isFemale, string node, int key, int index, TextureSet value, bool persist) native global
- float Function GetNodeOverrideFloat(ObjectReference ref, bool isFemale, string node, int key, int index) native global
- int Function GetNodeOverrideInt(ObjectReference ref, bool isFemale, string node, int key, int index) native global
- bool Function GetNodeOverrideBool(ObjectReference ref, bool isFemale, string node, int key, int index) native global
- string Function GetNodeOverrideString(ObjectReference ref, bool isFemale, string node, int key, int index) native global
- TextureSet Function GetNodeOverrideTextureSet(ObjectReference ref, bool isFemale, string node, int key, int index) native global
- ; Gets the property straight from the node
- float Function GetNodePropertyFloat(ObjectReference ref, bool firstPerson, string node, int key, int index) native global
- int Function GetNodePropertyInt(ObjectReference ref, bool firstPerson, string node, int key, int index) native global
- bool Function GetNodePropertyBool(ObjectReference ref, bool firstPerson, string node, int key, int index) native global
- string Function GetNodePropertyString(ObjectReference ref, bool firstPerson, string node, int key, int index) native global
- ;TextureSet is not stored on the node
- ; Remove functions do not revert the modified state, only remove it from the save
- ; Removes ALL Armor based overrides from ALL actors (Global purge)
- Function RemoveAllOverrides() native global
- ; Removes all Armor based overrides for a particular actor
- Function RemoveAllReferenceOverrides(ObjectReference ref) native global
- ; Removes all ArmorAddon overrides for a particular actor and armor
- Function RemoveAllArmorOverrides(ObjectReference ref, bool isFemale, Armor arm) native global
- ; Removes all overrides for a particular actor, armor, and addon
- Function RemoveAllArmorAddonOverrides(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon) native global
- ; Removes all overrides for a particukar actor, armor, addon, and nodeName
- Function RemoveAllArmorAddonNodeOverrides(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node) native global
- ; Removes one particular override from an actor, armor, addon, node name, key, index
- Function RemoveOverride(ObjectReference ref, bool isFemale, Armor arm, ArmorAddon addon, string node, int key, int index) native global
- ; Removes ALL Node based overrides for ALL actors
- Function RemoveAllNodeOverrides() native global
- ; Removes all Node based overrides for a particular actor
- Function RemoveAllReferenceNodeOverrides(ObjectReference ref) native global
- ; Removes all Node based overrides for a particular actor, gender, and nodeName
- Function RemoveAllNodeNameOverrides(ObjectReference ref, bool isFemale, string node) native global
- ; Removes one particular override from an actor, of a particular gender, nodeName, key, and index
- Function RemoveNodeOverride(ObjectReference ref, bool isFemale, string node, int key, int index) native global
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement