Difference between revisions of "Talk:ArmorAddon"
Jump to navigation
Jump to search
→Reverse-engineering: figured out how skin texture swap lists are indexed
imported>DavidJCobb (→Reverse-engineering: new section) |
imported>DavidJCobb (→Reverse-engineering: figured out how skin texture swap lists are indexed) |
||
Line 40: | Line 40: | ||
Disassembly indicates that the "skin texture swap lists" might not be used if they are initially empty. There are function calls in armor-addon code that only check its initial size, and not the total size (i.e. including script-added forms). One such call is made at 0x004A1C50. [[User:DavidJCobb|DavidJCobb]] ([[User talk:DavidJCobb|talk]]) 2019-12-01T16:41:04 (EST) | Disassembly indicates that the "skin texture swap lists" might not be used if they are initially empty. There are function calls in armor-addon code that only check its initial size, and not the total size (i.e. including script-added forms). One such call is made at 0x004A1C50. [[User:DavidJCobb|DavidJCobb]] ([[User talk:DavidJCobb|talk]]) 2019-12-01T16:41:04 (EST) | ||
:The skin texture swap lists are divided by their entries. The game accesses the ''n''th entry where ''n = ((actor weight / 101) * c) & 255'' and ''c'' is the number of non-script-added forms in the FormList. So if the list has five forms, then the game will swap texturesets roughly at each 20% weight increment. [[User:DavidJCobb|DavidJCobb]] ([[User talk:DavidJCobb|talk]]) 2019-12-01T16:46:51 (EST) |