-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
limited by crowbar itself only writing one link.
- Loading branch information
Showing
9 changed files
with
94 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
Crowbar/Core/GameModel/SourceModel53/SourceMdlFileData/SourceMdlIkChain53.vb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
Public Class SourceMdlIkChain53 | ||
|
||
'struct mstudioikchain_t | ||
'{ | ||
' DECLARE_BYTESWAP_DATADESC(); | ||
' int sznameindex; | ||
' inline char * const pszName( void ) const { return ((char *)this) + sznameindex; } | ||
' int linktype; | ||
' int numlinks; | ||
' int linkindex; | ||
' inline mstudioiklink_t *pLink( int i ) const { return (mstudioiklink_t *)(((byte *)this) + linkindex) + i; }; | ||
' // FIXME: add unused entries | ||
'}; | ||
|
||
|
||
' int sznameindex; | ||
Public nameOffset As Integer | ||
' int linktype; | ||
Public linkType As Integer | ||
' int numlinks; | ||
Public linkCount As Integer | ||
' int linkindex; | ||
Public linkOffset As Integer | ||
' Vector kneeDir; // ideal bending direction (per link, if applicable) | ||
Public idealBendingDirection As New SourceVector() | ||
' int | ||
Public unk As New Integer | ||
|
||
' inline char * const pszName( void ) const { return ((char *)this) + sznameindex; } | ||
Public theName As String | ||
Public theLinks As List(Of SourceMdlIkLink53) | ||
|
||
End Class |
25 changes: 25 additions & 0 deletions
25
Crowbar/Core/GameModel/SourceModel53/SourceMdlFileData/SourceMdlIkLink53.vb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Public Class SourceMdlIkLink53 | ||
|
||
'// ikinfo | ||
'struct mstudioiklink_t | ||
'{ | ||
' DECLARE_BYTESWAP_DATADESC(); | ||
' int bone; | ||
' Vector kneeDir; // ideal bending direction (per link, if applicable) | ||
' Vector unused0; // unused | ||
|
||
' mstudioiklink_t(){} | ||
'private: | ||
' // No copy constructors allowed | ||
' mstudioiklink_t(const mstudioiklink_t& vOther); | ||
'}; | ||
|
||
|
||
' int bone; | ||
Public boneIndex As Integer | ||
' Vector | ||
Public unkVector As New SourceVector() | ||
' Vector unused0; // unused | ||
Public unused0 As New SourceVector() | ||
|
||
End Class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bd2ffa9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this also enables LOD since they work now.