X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=entity.h;h=9e0424fc8704684d1abfde4bbc429e70bfca7593;hb=8a31c1ffcb632b9b6d1702332f0d75d609c0a87b;hp=da2341e5618149e1788acb63febdbb821607adf3;hpb=6ab4435fb19beb6af6c52691793d5ca17a120f69;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/entity.h b/entity.h index da2341e..9e0424f 100644 --- a/entity.h +++ b/entity.h @@ -27,6 +27,9 @@ typedef struct ent_swspreview ent_swspreview; typedef struct ent_worldinfo ent_worldinfo; typedef struct ent_ccmd ent_ccmd; typedef struct ent_challenge ent_challenge; +typedef struct ent_unlock ent_unlock; +typedef struct ent_relay ent_relay; +typedef struct ent_cubemap ent_cubemap; enum entity_alias{ k_ent_none = 0, @@ -48,7 +51,9 @@ enum entity_alias{ k_ent_worldinfo = 16, k_ent_ccmd = 17, k_ent_challenge = 18, - k_ent_relay = 19 + k_ent_unlock = 19, + k_ent_relay = 20, + k_ent_cubemap = 21 }; static u32 mdl_entity_id_type( u32 entity_id ){ @@ -108,6 +113,7 @@ enum ent_gate_flag{ NOTE: if set, it adds the flip flag. */ k_ent_gate_flip = 0x4, /* flip direction 180* for exiting portal */ k_ent_gate_custom_mesh = 0x8, /* use a custom submesh instead of default */ + k_ent_gate_locked = 0x10,/* has to be unlocked to be useful */ }; struct ent_gate{ @@ -395,15 +401,61 @@ struct ent_ccmd{ u32 pstr_command; }; +enum ent_challenge_filter{ + k_ent_challenge_filter_none = 0x00000000, + k_ent_challenge_filter_trick_shuvit = 0x00000001, + k_ent_challenge_filter_trick_kickflip = 0x00000002, + k_ent_challenge_filter_trick_treflip = 0x00000004, + k_ent_challenge_filter_trick_any = + k_ent_challenge_filter_trick_shuvit| + k_ent_challenge_filter_trick_treflip| + k_ent_challenge_filter_trick_kickflip, + k_ent_challenge_filter_flip_back = 0x00000008, + k_ent_challenge_filter_flip_front = 0x00000010, + k_ent_challenge_filter_flip_any = + k_ent_challenge_filter_flip_back| + k_ent_challenge_filter_flip_front, + k_ent_challenge_filter_grind_truck_any = 0x00000020, + k_ent_challenge_filter_grind_board_any = 0x00000040, + k_ent_challenge_filter_grind_any = + k_ent_challenge_filter_grind_truck_any| + k_ent_challenge_filter_grind_board_any, + k_ent_challenge_filter_footplant = 0x00000080 +}; + +enum ent_challenge_flag { + k_ent_challenge_hidden = 0x1 +}; + struct ent_challenge{ mdl_transform transform; u32 submesh_start, submesh_count, + flags, id_next, - filter; + filter,filter2, + id_win, + win_event; f32 time_limit; }; +struct ent_unlock{ + u32 pstr_alias, + target, + target_event, + status; +}; + +struct ent_relay { + u32 targets[4][2]; +}; + +struct ent_cubemap { + v3f co; + u32 resolution, live, texture_id, + framebuffer_id, renderbuffer_id, placeholder[2]; +}; + typedef struct ent_call ent_call; struct ent_call{ u32 id, function;