Skip to content

Instantly share code, notes, and snippets.

@warmist
Last active December 27, 2021 20:35
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 warmist/161be9228bc7908b1008ddd0f7a89565 to your computer and use it in GitHub Desktop.
Save warmist/161be9228bc7908b1008ddd0f7a89565 to your computer and use it in GitHub Desktop.
Titanfall2 .ain file partial layout
struct header {
u32 version;
u32 map_version;
u32 unk0; //crc or hash or sth
};
header head @ 0x00;
struct node_t {
float px,py,pz,yaw;
float offsets[5]; //should be num_hulls, but is num_hulls+1??
u8 node_type;
u8 unk_data[31];
//TODO: u16 nodeinfo,s16 zone somewhere in the unk_data
};
u32 node_count @ 0x0c;
node_t nodes[node_count]@$;
u32 link_count @ $;
struct link_t {
u16 src,dst;
u8 moves[16]; //num_hulls*4????
};
link_t links[link_count] @ $;
struct unk_t {
u32 a,b,c;
u8 sth[12];
};
//unk_t u0[30]@ $;
//u32 lookup[node_count] @ $;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment