{"comment":{"url":"https://api.github.com/repos/Azaezel/Torque3D/comments/15440185","html_url":"https://github.com/Azaezel/Torque3D/commit/c60be9a17eb31172a89fb604a36659d93b3c69f5#commitcomment-15440185","id":15440185,"user":{"login":"Azaezel","id":4236451,"avatar_url":"https://avatars.githubusercontent.com/u/4236451?v=3","gravatar_id":"","url":"https://api.github.com/users/Azaezel","html_url":"https://github.com/Azaezel","followers_url":"https://api.github.com/users/Azaezel/followers","following_url":"https://api.github.com/users/Azaezel/following{/other_user}","gists_url":"https://api.github.com/users/Azaezel/gists{/gist_id}","starred_url":"https://api.github.com/users/Azaezel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azaezel/subscriptions","organizations_url":"https://api.github.com/users/Azaezel/orgs","repos_url":"https://api.github.com/users/Azaezel/repos","events_url":"https://api.github.com/users/Azaezel/events{/privacy}","received_events_url":"https://api.github.com/users/Azaezel/received_events","type":"User","site_admin":false},"position":14,"line":6907,"path":"Engine/source/T3D/player.cpp","commit_id":"c60be9a17eb31172a89fb604a36659d93b3c69f5","created_at":"2016-01-14T02:36:30Z","updated_at":"2016-01-14T02:36:30Z","body":"Her'es the thing, the origional codebase operates via case statement off of segment+offset. ImpactStart would be the segment of the full list of attached sounds that begins where the impacts begin. so <ImpactStart+MaxSoundOffsets will end at ImpactSnow which corresponds to the earlier packed FootSnow, hence using MaxSoundOffsets as our limiter since the engine (again at time of writing) expects the same number of FootX as ImapctX. For a more practical example (minus a bugfix and this latest, see: \r\n\r\nhttps://gist.github.com/Azaezel/9a21b74466dbad0b4cc1#file-gistfile1-txt-L205-L217\r\n+\r\nhttps://gist.github.com/Azaezel/9a21b74466dbad0b4cc1#file-gistfile2-txt-L1028\r\n+https://gist.github.com/Azaezel/9a21b74466dbad0b4cc1#file-gistfile2-txt-L1062\r\n\r\nDoes that clarify matters? (as well as illustrate why come 4.0 I'd really, *really* recommend refactoring that to work off scripted numbers)"}}