Frictional Games Forum (read-only)
Code snippets - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Technical Support (https://www.frictionalgames.com/forum/forum-57.html)
+--- Forum: Technical Support - Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-31.html)
+--- Thread: Code snippets (/thread-5794.html)



Code snippets - DIGI Byte - 12-19-2010

this is something more for myself, check it out if your looking to code, but this is for more personal noting of amnesia code

I'll list code snippets that I found in code that maybe useful in the near future when we learn more about them

code snippets of interesting string data with surrounding syntax to show implementation

Code:
<node id="servant_grunt_A_Ctrl_Hand_Group_Left" name="Ctrl_Hand_Group_Left" type="NODE">
          <translate sid="translate">-1.14333 0.552554 -0.198039</translate>
          <rotate sid="rotateZ">0 0 1 -62.2992</rotate>
          <rotate sid="rotateY">0 1 0 64.9982</rotate>
          <rotate sid="rotateX">1 0 0 -10.0956</rotate>
          <node id="servant_grunt_A_Ctrl_Hand_Left" name="Ctrl_Hand_Left" type="NODE">
            <translate sid="translate">-0.130607 -0.015137 0.2056</translate>
            <translate sid="rotatePivotTranslation">0.303557 0.179004 -0.986167</translate>
            <translate sid="rotatePivot">0.411814 1.47351 0.950275</translate>
            <rotate sid="rotateZ">0 0 1 -40.4902</rotate>
            <rotate sid="rotateY">0 1 0 -48.826</rotate>
            <rotate sid="rotateX">1 0 0 294.738</rotate>
            <translate sid="rotatePivotInverse">-0.411814 -1.47351 -0.950275</translate>
            <translate sid="scalePivot">0.411814 1.47351 0.950275</translate>
            <translate sid="scalePivotInverse">-0.411814 -1.47351 -0.950275</translate>
            <instance_geometry url="#Ctrl_Hand_LeftShape-lib"/>

            <extra>

              <technique profile="MAYA">

                <dynamic_attributes>
                  <Attack short_name="Attack" type="float">0</Attack>
                  <Twister short_name="Twister" type="float">0</Twister>
                  <notes short_name="nts" type="string">e</notes>
                </dynamic_attributes>

              </technique>

            </extra>

          </node>

these may... or may not be useful... just things for me to keep an eye out for in case I can hack a work around for making weapons if its unsupported