Skip to content

Instantly share code, notes, and snippets.

@ChadSki
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChadSki/4c5dc76e6644a11b587e to your computer and use it in GitHub Desktop.
Save ChadSki/4c5dc76e6644a11b587e to your computer and use it in GitHub Desktop.
Alternative Plugin Syntax?
<!-- Invalid plugin, for syntax demonstration only -->
<plugin name="weap" struct_size="0x504">
<float32 name="initial_rounds_per_second" offset="0x4" />
<float32 name="final_rounds_per_second" offset="0x8" />
<float32 name="rounds_per_second_acceleration" offset="0xA" />
<float32 name="rounds_per_second_deceleration" offset="0xC" />
<uint16 name="projectiles_per_shot" offset="0x6E" />
<struct_array name="magazines" offset="0xF0" struct_size='112'>
<uint16 name="rounds_recharged" offset="0x4" />
<uint16 name="rounds_total_initial" offset="0x6" />
<uint16 name="rounds_total_maximum" offset="0x8" />
<uint16 name="rounds_loaded_maximum" offset="0xA" />
</struct_array>
</plugin>
<!-- Invalid plugin, for syntax demonstration only -->
<plugin name="weap">
<struct size="0x504">
<float32 name="initial_rounds_per_second" offset="0x4" />
<float32 name="final_rounds_per_second" offset="0x8" />
<float32 name="rounds_per_second_acceleration" offset="0xA" />
<float32 name="rounds_per_second_deceleration" offset="0xC" />
<uint16 name="projectiles_per_shot" offset="0x6E" />
<arrayptr name="magazines" offset="0xF0">
<struct size='112'>
<uint16 name="rounds_recharged" offset="0x4" />
<uint16 name="rounds_total_initial" offset="0x6" />
<uint16 name="rounds_total_maximum" offset="0x8" />
<uint16 name="rounds_loaded_maximum" offset="0xA" />
</struct>
</arrayptr>
</struct>
</plugin>
<!-- Invalid plugin, for syntax demonstration only -->
<plugin name="weap" struct_size="0x504">
<float32 name="initial_rounds_per_second" offset="0x4" />
<float32 name="final_rounds_per_second" offset="0x8" />
<float32 name="rounds_per_second_acceleration" offset="0xA" />
<float32 name="rounds_per_second_deceleration" offset="0xC" />
<uint16 name="projectiles_per_shot" offset="0x6E" />
<reflexive name="magazines" offset="0xF0" struct_size='112'>
<uint16 name="rounds_recharged" offset="0x4" />
<uint16 name="rounds_total_initial" offset="0x6" />
<uint16 name="rounds_total_maximum" offset="0x8" />
<uint16 name="rounds_loaded_maximum" offset="0xA" />
</reflexive>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment