diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..14b56c12f --- /dev/null +++ b/.gitignore @@ -0,0 +1,20 @@ +bam +.bam +/config.lua +/datasrc/__pycache__ +/datasrc/*.pyc +/objs +src/game/generated +/*.dll + +/crapnet* +/dilate* +/fake_server* +/map_resave* +/map_version* +/mastersrv* +/packetgen* +/tileset_border* +/versionsrv* +/infclass_client* +/infclass_srv* diff --git a/config.lua b/config.lua deleted file mode 100644 index 8f003bafd..000000000 --- a/config.lua +++ /dev/null @@ -1,20 +0,0 @@ -compiler.driver = 'gcc' -compiler.c_compiler = false -compiler.cxx_compiler = false -stackprotector.value = true -minmacosxsdk.value = false -macosxppc.value = false -zlib.value = true -zlib.include_path = false -sdl.value = true -sdl.use_sdlconfig = true -sdl.use_winlib = 0 -sdl.use_osxframework = false -icu.value = true -icu.use_pkgconfig = true -icu.use_winlib = 0 -freetype.value = true -freetype.use_ftconfig = true -freetype.use_winlib = 0 -mysql.value = true -mysql.use_mysqlconfig = true diff --git a/src/game/generated/client_data.cpp b/src/game/generated/client_data.cpp deleted file mode 100644 index fbdb874c0..000000000 --- a/src/game/generated/client_data.cpp +++ /dev/null @@ -1,501 +0,0 @@ -#include "client_data.h" -static CDataSound x1893[] = { - /* x1893[0] */ { 0, "audio/wp_gun_fire-01.wv", }, - /* x1893[1] */ { 0, "audio/wp_gun_fire-02.wv", }, - /* x1893[2] */ { 0, "audio/wp_gun_fire-03.wv", }, -}; -static CDataSound x1909[] = { - /* x1909[0] */ { 0, "audio/wp_shotty_fire-01.wv", }, - /* x1909[1] */ { 0, "audio/wp_shotty_fire-02.wv", }, - /* x1909[2] */ { 0, "audio/wp_shotty_fire-03.wv", }, -}; -static CDataSound x1925[] = { - /* x1925[0] */ { 0, "audio/wp_flump_launch-01.wv", }, - /* x1925[1] */ { 0, "audio/wp_flump_launch-02.wv", }, - /* x1925[2] */ { 0, "audio/wp_flump_launch-03.wv", }, -}; -static CDataSound x1941[] = { - /* x1941[0] */ { 0, "audio/wp_hammer_swing-01.wv", }, - /* x1941[1] */ { 0, "audio/wp_hammer_swing-02.wv", }, - /* x1941[2] */ { 0, "audio/wp_hammer_swing-03.wv", }, -}; -static CDataSound x1957[] = { - /* x1957[0] */ { 0, "audio/wp_hammer_hit-01.wv", }, - /* x1957[1] */ { 0, "audio/wp_hammer_hit-02.wv", }, - /* x1957[2] */ { 0, "audio/wp_hammer_hit-03.wv", }, -}; -static CDataSound x1973[] = { - /* x1973[0] */ { 0, "audio/wp_ninja_attack-01.wv", }, - /* x1973[1] */ { 0, "audio/wp_ninja_attack-02.wv", }, - /* x1973[2] */ { 0, "audio/wp_ninja_attack-03.wv", }, -}; -static CDataSound x1989[] = { - /* x1989[0] */ { 0, "audio/wp_flump_explo-01.wv", }, - /* x1989[1] */ { 0, "audio/wp_flump_explo-02.wv", }, - /* x1989[2] */ { 0, "audio/wp_flump_explo-03.wv", }, -}; -static CDataSound x2005[] = { - /* x2005[0] */ { 0, "audio/wp_ninja_hit-01.wv", }, - /* x2005[1] */ { 0, "audio/wp_ninja_hit-02.wv", }, - /* x2005[2] */ { 0, "audio/wp_ninja_hit-03.wv", }, -}; -static CDataSound x2021[] = { - /* x2021[0] */ { 0, "audio/wp_rifle_fire-01.wv", }, - /* x2021[1] */ { 0, "audio/wp_rifle_fire-02.wv", }, - /* x2021[2] */ { 0, "audio/wp_rifle_fire-03.wv", }, -}; -static CDataSound x2037[] = { - /* x2037[0] */ { 0, "audio/wp_rifle_bnce-01.wv", }, - /* x2037[1] */ { 0, "audio/wp_rifle_bnce-02.wv", }, - /* x2037[2] */ { 0, "audio/wp_rifle_bnce-03.wv", }, -}; -static CDataSound x2053[] = { - /* x2053[0] */ { 0, "audio/wp_switch-01.wv", }, - /* x2053[1] */ { 0, "audio/wp_switch-02.wv", }, - /* x2053[2] */ { 0, "audio/wp_switch-03.wv", }, -}; -static CDataSound x2069[] = { - /* x2069[0] */ { 0, "audio/vo_teefault_pain_short-01.wv", }, - /* x2069[1] */ { 0, "audio/vo_teefault_pain_short-02.wv", }, - /* x2069[2] */ { 0, "audio/vo_teefault_pain_short-03.wv", }, - /* x2069[3] */ { 0, "audio/vo_teefault_pain_short-04.wv", }, - /* x2069[4] */ { 0, "audio/vo_teefault_pain_short-05.wv", }, - /* x2069[5] */ { 0, "audio/vo_teefault_pain_short-06.wv", }, - /* x2069[6] */ { 0, "audio/vo_teefault_pain_short-07.wv", }, - /* x2069[7] */ { 0, "audio/vo_teefault_pain_short-08.wv", }, - /* x2069[8] */ { 0, "audio/vo_teefault_pain_short-09.wv", }, - /* x2069[9] */ { 0, "audio/vo_teefault_pain_short-10.wv", }, - /* x2069[10] */ { 0, "audio/vo_teefault_pain_short-11.wv", }, - /* x2069[11] */ { 0, "audio/vo_teefault_pain_short-12.wv", }, -}; -static CDataSound x2112[] = { - /* x2112[0] */ { 0, "audio/vo_teefault_pain_long-01.wv", }, - /* x2112[1] */ { 0, "audio/vo_teefault_pain_long-02.wv", }, -}; -static CDataSound x2125[] = { - /* x2125[0] */ { 0, "audio/foley_land-01.wv", }, - /* x2125[1] */ { 0, "audio/foley_land-02.wv", }, - /* x2125[2] */ { 0, "audio/foley_land-03.wv", }, - /* x2125[3] */ { 0, "audio/foley_land-04.wv", }, -}; -static CDataSound x2144[] = { - /* x2144[0] */ { 0, "audio/foley_dbljump-01.wv", }, - /* x2144[1] */ { 0, "audio/foley_dbljump-02.wv", }, - /* x2144[2] */ { 0, "audio/foley_dbljump-03.wv", }, -}; -static CDataSound x2160[] = { - /* x2160[0] */ { 0, "audio/foley_foot_left-01.wv", }, - /* x2160[1] */ { 0, "audio/foley_foot_left-02.wv", }, - /* x2160[2] */ { 0, "audio/foley_foot_left-03.wv", }, - /* x2160[3] */ { 0, "audio/foley_foot_left-04.wv", }, - /* x2160[4] */ { 0, "audio/foley_foot_right-01.wv", }, - /* x2160[5] */ { 0, "audio/foley_foot_right-02.wv", }, - /* x2160[6] */ { 0, "audio/foley_foot_right-03.wv", }, - /* x2160[7] */ { 0, "audio/foley_foot_right-04.wv", }, -}; -static CDataSound x2191[] = { - /* x2191[0] */ { 0, "audio/foley_body_splat-01.wv", }, - /* x2191[1] */ { 0, "audio/foley_body_splat-02.wv", }, - /* x2191[2] */ { 0, "audio/foley_body_splat-03.wv", }, -}; -static CDataSound x2207[] = { - /* x2207[0] */ { 0, "audio/vo_teefault_spawn-01.wv", }, - /* x2207[1] */ { 0, "audio/vo_teefault_spawn-02.wv", }, - /* x2207[2] */ { 0, "audio/vo_teefault_spawn-03.wv", }, - /* x2207[3] */ { 0, "audio/vo_teefault_spawn-04.wv", }, - /* x2207[4] */ { 0, "audio/vo_teefault_spawn-05.wv", }, - /* x2207[5] */ { 0, "audio/vo_teefault_spawn-06.wv", }, - /* x2207[6] */ { 0, "audio/vo_teefault_spawn-07.wv", }, -}; -static CDataSound x2235[] = { - /* x2235[0] */ { 0, "audio/sfx_skid-01.wv", }, - /* x2235[1] */ { 0, "audio/sfx_skid-02.wv", }, - /* x2235[2] */ { 0, "audio/sfx_skid-03.wv", }, - /* x2235[3] */ { 0, "audio/sfx_skid-04.wv", }, -}; -static CDataSound x2254[] = { - /* x2254[0] */ { 0, "audio/vo_teefault_cry-01.wv", }, - /* x2254[1] */ { 0, "audio/vo_teefault_cry-02.wv", }, -}; -static CDataSound x2267[] = { - /* x2267[0] */ { 0, "audio/hook_loop-01.wv", }, - /* x2267[1] */ { 0, "audio/hook_loop-02.wv", }, -}; -static CDataSound x2280[] = { - /* x2280[0] */ { 0, "audio/hook_attach-01.wv", }, - /* x2280[1] */ { 0, "audio/hook_attach-02.wv", }, - /* x2280[2] */ { 0, "audio/hook_attach-03.wv", }, -}; -static CDataSound x2296[] = { - /* x2296[0] */ { 0, "audio/foley_body_impact-01.wv", }, - /* x2296[1] */ { 0, "audio/foley_body_impact-02.wv", }, - /* x2296[2] */ { 0, "audio/foley_body_impact-03.wv", }, -}; -static CDataSound x2312[] = { - /* x2312[0] */ { 0, "audio/hook_noattach-01.wv", }, - /* x2312[1] */ { 0, "audio/hook_noattach-02.wv", }, -}; -static CDataSound x2325[] = { - /* x2325[0] */ { 0, "audio/sfx_pickup_hrt-01.wv", }, - /* x2325[1] */ { 0, "audio/sfx_pickup_hrt-02.wv", }, -}; -static CDataSound x2338[] = { - /* x2338[0] */ { 0, "audio/sfx_pickup_arm-01.wv", }, - /* x2338[1] */ { 0, "audio/sfx_pickup_arm-02.wv", }, - /* x2338[2] */ { 0, "audio/sfx_pickup_arm-03.wv", }, - /* x2338[3] */ { 0, "audio/sfx_pickup_arm-04.wv", }, -}; -static CDataSound x2357[] = { - /* x2357[0] */ { 0, "audio/sfx_pickup_launcher.wv", }, -}; -static CDataSound x2367[] = { - /* x2367[0] */ { 0, "audio/sfx_pickup_sg.wv", }, -}; -static CDataSound x2377[] = { - /* x2377[0] */ { 0, "audio/sfx_pickup_ninja.wv", }, -}; -static CDataSound x2387[] = { - /* x2387[0] */ { 0, "audio/sfx_spawn_wpn-01.wv", }, - /* x2387[1] */ { 0, "audio/sfx_spawn_wpn-02.wv", }, - /* x2387[2] */ { 0, "audio/sfx_spawn_wpn-03.wv", }, -}; -static CDataSound x2403[] = { - /* x2403[0] */ { 0, "audio/wp_noammo-01.wv", }, - /* x2403[1] */ { 0, "audio/wp_noammo-02.wv", }, - /* x2403[2] */ { 0, "audio/wp_noammo-03.wv", }, - /* x2403[3] */ { 0, "audio/wp_noammo-04.wv", }, - /* x2403[4] */ { 0, "audio/wp_noammo-05.wv", }, -}; -static CDataSound x2425[] = { - /* x2425[0] */ { 0, "audio/sfx_hit_weak-01.wv", }, - /* x2425[1] */ { 0, "audio/sfx_hit_weak-02.wv", }, -}; -static CDataSound x2438[] = { - /* x2438[0] */ { 0, "audio/sfx_msg-server.wv", }, -}; -static CDataSound x2448[] = { - /* x2448[0] */ { 0, "audio/sfx_msg-client.wv", }, -}; -static CDataSound x2458[] = { - /* x2458[0] */ { 0, "audio/sfx_msg-highlight.wv", }, -}; -static CDataSound x2468[] = { - /* x2468[0] */ { 0, "audio/sfx_ctf_drop.wv", }, -}; -static CDataSound x2478[] = { - /* x2478[0] */ { 0, "audio/sfx_ctf_rtn.wv", }, -}; -static CDataSound x2488[] = { - /* x2488[0] */ { 0, "audio/sfx_ctf_grab_pl.wv", }, -}; -static CDataSound x2498[] = { - /* x2498[0] */ { 0, "audio/sfx_ctf_grab_en.wv", }, -}; -static CDataSound x2508[] = { - /* x2508[0] */ { 0, "audio/sfx_ctf_cap_pl.wv", }, -}; -static CDataSound x2518[] = { - /* x2518[0] */ { 0, "audio/music_menu.wv", }, -}; -static CDataSoundset x9[] = { - /* x9[0] */ { "gun_fire", 3,x1893, -1, }, - /* x9[1] */ { "shotgun_fire", 3,x1909, -1, }, - /* x9[2] */ { "grenade_fire", 3,x1925, -1, }, - /* x9[3] */ { "hammer_fire", 3,x1941, -1, }, - /* x9[4] */ { "hammer_hit", 3,x1957, -1, }, - /* x9[5] */ { "ninja_fire", 3,x1973, -1, }, - /* x9[6] */ { "grenade_explode", 3,x1989, -1, }, - /* x9[7] */ { "ninja_hit", 3,x2005, -1, }, - /* x9[8] */ { "rifle_fire", 3,x2021, -1, }, - /* x9[9] */ { "rifle_bounce", 3,x2037, -1, }, - /* x9[10] */ { "weapon_switch", 3,x2053, -1, }, - /* x9[11] */ { "player_pain_short", 12,x2069, -1, }, - /* x9[12] */ { "player_pain_long", 2,x2112, -1, }, - /* x9[13] */ { "body_land", 4,x2125, -1, }, - /* x9[14] */ { "player_airjump", 3,x2144, -1, }, - /* x9[15] */ { "player_jump", 8,x2160, -1, }, - /* x9[16] */ { "player_die", 3,x2191, -1, }, - /* x9[17] */ { "player_spawn", 7,x2207, -1, }, - /* x9[18] */ { "player_skid", 4,x2235, -1, }, - /* x9[19] */ { "tee_cry", 2,x2254, -1, }, - /* x9[20] */ { "hook_loop", 2,x2267, -1, }, - /* x9[21] */ { "hook_attach_ground", 3,x2280, -1, }, - /* x9[22] */ { "hook_attach_player", 3,x2296, -1, }, - /* x9[23] */ { "hook_noattach", 2,x2312, -1, }, - /* x9[24] */ { "pickup_health", 2,x2325, -1, }, - /* x9[25] */ { "pickup_armor", 4,x2338, -1, }, - /* x9[26] */ { "pickup_grenade", 1,x2357, -1, }, - /* x9[27] */ { "pickup_shotgun", 1,x2367, -1, }, - /* x9[28] */ { "pickup_ninja", 1,x2377, -1, }, - /* x9[29] */ { "weapon_spawn", 3,x2387, -1, }, - /* x9[30] */ { "weapon_noammo", 5,x2403, -1, }, - /* x9[31] */ { "hit", 2,x2425, -1, }, - /* x9[32] */ { "chat_server", 1,x2438, -1, }, - /* x9[33] */ { "chat_client", 1,x2448, -1, }, - /* x9[34] */ { "chat_highlight", 1,x2458, -1, }, - /* x9[35] */ { "ctf_drop", 1,x2468, -1, }, - /* x9[36] */ { "ctf_return", 1,x2478, -1, }, - /* x9[37] */ { "ctf_grab_pl", 1,x2488, -1, }, - /* x9[38] */ { "ctf_grab_en", 1,x2498, -1, }, - /* x9[39] */ { "ctf_capture", 1,x2508, -1, }, - /* x9[40] */ { "menu", 1,x2518, -1, }, -}; -static CDataImage x14[] = { - /* x14[0] */ { "null", "", -1, }, - /* x14[1] */ { "game", "game.png", -1, }, - /* x14[2] */ { "particles", "particles.png", -1, }, - /* x14[3] */ { "cursor", "gui_cursor.png", -1, }, - /* x14[4] */ { "banner", "gui_logo.png", -1, }, - /* x14[5] */ { "emoticons", "emoticons.png", -1, }, - /* x14[6] */ { "browseicons", "browse_icons.png", -1, }, - /* x14[7] */ { "console_bg", "console.png", -1, }, - /* x14[8] */ { "console_bar", "console_bar.png", -1, }, - /* x14[9] */ { "demobuttons", "demo_buttons.png", -1, }, - /* x14[10] */ { "fileicons", "file_icons.png", -1, }, - /* x14[11] */ { "guibuttons", "gui_buttons.png", -1, }, - /* x14[12] */ { "guiicons", "gui_icons.png", -1, }, -}; -static CDataPickupspec x19[] = { - /* x19[0] */ { "health", 15, 0, }, - /* x19[1] */ { "armor", 15, 0, }, - /* x19[2] */ { "weapon", 15, 0, }, - /* x19[3] */ { "ninja", 90, 90, }, -}; -static CDataSpriteset x28[] = { - /* x28[0] */ { &x14[2], 8, 8, }, - /* x28[1] */ { &x14[1], 32, 16, }, - /* x28[2] */ { &x14[0], 8, 4, }, - /* x28[3] */ { &x14[6], 4, 1, }, - /* x28[4] */ { &x14[5], 4, 4, }, - /* x28[5] */ { &x14[9], 5, 1, }, - /* x28[6] */ { &x14[10], 8, 1, }, - /* x28[7] */ { &x14[11], 12, 4, }, - /* x28[8] */ { &x14[12], 8, 2, }, -}; -static CDataSprite x44[] = { - /* x44[0] */ { "part_slice", &x28[0], 0, 0, 1, 1, }, - /* x44[1] */ { "part_ball", &x28[0], 1, 0, 1, 1, }, - /* x44[2] */ { "part_splat01", &x28[0], 2, 0, 1, 1, }, - /* x44[3] */ { "part_splat02", &x28[0], 3, 0, 1, 1, }, - /* x44[4] */ { "part_splat03", &x28[0], 4, 0, 1, 1, }, - /* x44[5] */ { "part_smoke", &x28[0], 0, 1, 1, 1, }, - /* x44[6] */ { "part_shell", &x28[0], 0, 2, 2, 2, }, - /* x44[7] */ { "part_expl01", &x28[0], 0, 4, 4, 4, }, - /* x44[8] */ { "part_airjump", &x28[0], 2, 2, 2, 2, }, - /* x44[9] */ { "part_hit01", &x28[0], 4, 1, 2, 2, }, - /* x44[10] */ { "health_full", &x28[1], 21, 0, 2, 2, }, - /* x44[11] */ { "health_empty", &x28[1], 23, 0, 2, 2, }, - /* x44[12] */ { "armor_full", &x28[1], 21, 2, 2, 2, }, - /* x44[13] */ { "armor_empty", &x28[1], 23, 2, 2, 2, }, - /* x44[14] */ { "star1", &x28[1], 15, 0, 2, 2, }, - /* x44[15] */ { "star2", &x28[1], 17, 0, 2, 2, }, - /* x44[16] */ { "star3", &x28[1], 19, 0, 2, 2, }, - /* x44[17] */ { "part1", &x28[1], 6, 0, 1, 1, }, - /* x44[18] */ { "part2", &x28[1], 6, 1, 1, 1, }, - /* x44[19] */ { "part3", &x28[1], 7, 0, 1, 1, }, - /* x44[20] */ { "part4", &x28[1], 7, 1, 1, 1, }, - /* x44[21] */ { "part5", &x28[1], 8, 0, 1, 1, }, - /* x44[22] */ { "part6", &x28[1], 8, 1, 1, 1, }, - /* x44[23] */ { "part7", &x28[1], 9, 0, 2, 2, }, - /* x44[24] */ { "part8", &x28[1], 11, 0, 2, 2, }, - /* x44[25] */ { "part9", &x28[1], 13, 0, 2, 2, }, - /* x44[26] */ { "weapon_gun_body", &x28[1], 2, 4, 4, 2, }, - /* x44[27] */ { "weapon_gun_cursor", &x28[1], 0, 4, 2, 2, }, - /* x44[28] */ { "weapon_gun_proj", &x28[1], 6, 4, 2, 2, }, - /* x44[29] */ { "weapon_gun_muzzle1", &x28[1], 8, 4, 3, 2, }, - /* x44[30] */ { "weapon_gun_muzzle2", &x28[1], 12, 4, 3, 2, }, - /* x44[31] */ { "weapon_gun_muzzle3", &x28[1], 16, 4, 3, 2, }, - /* x44[32] */ { "weapon_shotgun_body", &x28[1], 2, 6, 8, 2, }, - /* x44[33] */ { "weapon_shotgun_cursor", &x28[1], 0, 6, 2, 2, }, - /* x44[34] */ { "weapon_shotgun_proj", &x28[1], 10, 6, 2, 2, }, - /* x44[35] */ { "weapon_shotgun_muzzle1", &x28[1], 12, 6, 3, 2, }, - /* x44[36] */ { "weapon_shotgun_muzzle2", &x28[1], 16, 6, 3, 2, }, - /* x44[37] */ { "weapon_shotgun_muzzle3", &x28[1], 20, 6, 3, 2, }, - /* x44[38] */ { "weapon_grenade_body", &x28[1], 2, 8, 7, 2, }, - /* x44[39] */ { "weapon_grenade_cursor", &x28[1], 0, 8, 2, 2, }, - /* x44[40] */ { "weapon_grenade_proj", &x28[1], 10, 8, 2, 2, }, - /* x44[41] */ { "weapon_hammer_body", &x28[1], 2, 1, 4, 3, }, - /* x44[42] */ { "weapon_hammer_cursor", &x28[1], 0, 0, 2, 2, }, - /* x44[43] */ { "weapon_hammer_proj", &x28[1], 0, 0, 0, 0, }, - /* x44[44] */ { "weapon_ninja_body", &x28[1], 2, 10, 8, 2, }, - /* x44[45] */ { "weapon_ninja_cursor", &x28[1], 0, 10, 2, 2, }, - /* x44[46] */ { "weapon_ninja_proj", &x28[1], 0, 0, 0, 0, }, - /* x44[47] */ { "weapon_rifle_body", &x28[1], 2, 12, 7, 3, }, - /* x44[48] */ { "weapon_rifle_cursor", &x28[1], 0, 12, 2, 2, }, - /* x44[49] */ { "weapon_rifle_proj", &x28[1], 10, 12, 2, 2, }, - /* x44[50] */ { "hook_chain", &x28[1], 2, 0, 1, 1, }, - /* x44[51] */ { "hook_head", &x28[1], 3, 0, 2, 1, }, - /* x44[52] */ { "weapon_ninja_muzzle1", &x28[1], 25, 0, 7, 4, }, - /* x44[53] */ { "weapon_ninja_muzzle2", &x28[1], 25, 4, 7, 4, }, - /* x44[54] */ { "weapon_ninja_muzzle3", &x28[1], 25, 8, 7, 4, }, - /* x44[55] */ { "pickup_health", &x28[1], 10, 2, 2, 2, }, - /* x44[56] */ { "pickup_armor", &x28[1], 12, 2, 2, 2, }, - /* x44[57] */ { "pickup_weapon", &x28[1], 3, 0, 6, 2, }, - /* x44[58] */ { "pickup_ninja", &x28[1], 2, 10, 8, 2, }, - /* x44[59] */ { "flag_blue", &x28[1], 12, 8, 4, 8, }, - /* x44[60] */ { "flag_red", &x28[1], 16, 8, 4, 8, }, - /* x44[61] */ { "tee_body", &x28[2], 0, 0, 3, 3, }, - /* x44[62] */ { "tee_body_outline", &x28[2], 3, 0, 3, 3, }, - /* x44[63] */ { "tee_foot", &x28[2], 6, 1, 2, 1, }, - /* x44[64] */ { "tee_foot_outline", &x28[2], 6, 2, 2, 1, }, - /* x44[65] */ { "tee_hand", &x28[2], 6, 0, 1, 1, }, - /* x44[66] */ { "tee_hand_outline", &x28[2], 7, 0, 1, 1, }, - /* x44[67] */ { "tee_eye_normal", &x28[2], 2, 3, 1, 1, }, - /* x44[68] */ { "tee_eye_angry", &x28[2], 3, 3, 1, 1, }, - /* x44[69] */ { "tee_eye_pain", &x28[2], 4, 3, 1, 1, }, - /* x44[70] */ { "tee_eye_happy", &x28[2], 5, 3, 1, 1, }, - /* x44[71] */ { "tee_eye_dead", &x28[2], 6, 3, 1, 1, }, - /* x44[72] */ { "tee_eye_surprise", &x28[2], 7, 3, 1, 1, }, - /* x44[73] */ { "oop", &x28[4], 0, 0, 1, 1, }, - /* x44[74] */ { "exclamation", &x28[4], 1, 0, 1, 1, }, - /* x44[75] */ { "hearts", &x28[4], 2, 0, 1, 1, }, - /* x44[76] */ { "drop", &x28[4], 3, 0, 1, 1, }, - /* x44[77] */ { "dotdot", &x28[4], 0, 1, 1, 1, }, - /* x44[78] */ { "music", &x28[4], 1, 1, 1, 1, }, - /* x44[79] */ { "sorry", &x28[4], 2, 1, 1, 1, }, - /* x44[80] */ { "ghost", &x28[4], 3, 1, 1, 1, }, - /* x44[81] */ { "sushi", &x28[4], 0, 2, 1, 1, }, - /* x44[82] */ { "splattee", &x28[4], 1, 2, 1, 1, }, - /* x44[83] */ { "deviltee", &x28[4], 2, 2, 1, 1, }, - /* x44[84] */ { "zomg", &x28[4], 3, 2, 1, 1, }, - /* x44[85] */ { "zzz", &x28[4], 0, 3, 1, 1, }, - /* x44[86] */ { "wtf", &x28[4], 1, 3, 1, 1, }, - /* x44[87] */ { "eyes", &x28[4], 2, 3, 1, 1, }, - /* x44[88] */ { "question", &x28[4], 3, 3, 1, 1, }, - /* x44[89] */ { "browse_lock", &x28[3], 0, 0, 1, 1, }, - /* x44[90] */ { "browse_heart", &x28[3], 1, 0, 1, 1, }, - /* x44[91] */ { "browse_unpure", &x28[3], 3, 0, 1, 1, }, - /* x44[92] */ { "demobutton_play", &x28[5], 0, 0, 1, 1, }, - /* x44[93] */ { "demobutton_pause", &x28[5], 1, 0, 1, 1, }, - /* x44[94] */ { "demobutton_stop", &x28[5], 2, 0, 1, 1, }, - /* x44[95] */ { "demobutton_slower", &x28[5], 3, 0, 1, 1, }, - /* x44[96] */ { "demobutton_faster", &x28[5], 4, 0, 1, 1, }, - /* x44[97] */ { "file_demo1", &x28[6], 0, 0, 1, 1, }, - /* x44[98] */ { "file_demo2", &x28[6], 1, 0, 1, 1, }, - /* x44[99] */ { "file_folder", &x28[6], 2, 0, 1, 1, }, - /* x44[100] */ { "file_map1", &x28[6], 5, 0, 1, 1, }, - /* x44[101] */ { "file_map2", &x28[6], 6, 0, 1, 1, }, - /* x44[102] */ { "guibutton_off", &x28[7], 0, 0, 4, 4, }, - /* x44[103] */ { "guibutton_on", &x28[7], 4, 0, 4, 4, }, - /* x44[104] */ { "guibutton_hover", &x28[7], 8, 0, 4, 4, }, - /* x44[105] */ { "guiicon_mute", &x28[8], 0, 0, 4, 2, }, - /* x44[106] */ { "guiicon_friend", &x28[8], 4, 0, 4, 2, }, -}; -static CAnimKeyframe x4276[] = { - /* x4276[0] */ { 0.000000, 0.000000, -4.000000, 0.000000, }, -}; -static CAnimKeyframe x4283[] = { - /* x4283[0] */ { 0.000000, 0.000000, 10.000000, 0.000000, }, -}; -static CAnimKeyframe x4290[] = { - /* x4290[0] */ { 0.000000, 0.000000, 10.000000, 0.000000, }, -}; -static CAnimKeyframe *x4297 = 0; -static CAnimKeyframe *x4321 = 0; -static CAnimKeyframe x4328[] = { - /* x4328[0] */ { 0.000000, -7.000000, 0.000000, 0.000000, }, -}; -static CAnimKeyframe x4335[] = { - /* x4335[0] */ { 0.000000, 7.000000, 0.000000, 0.000000, }, -}; -static CAnimKeyframe *x4342 = 0; -static CAnimKeyframe *x4361 = 0; -static CAnimKeyframe x4368[] = { - /* x4368[0] */ { 0.000000, -3.000000, 0.000000, -0.100000, }, -}; -static CAnimKeyframe x4375[] = { - /* x4375[0] */ { 0.000000, 3.000000, 0.000000, -0.100000, }, -}; -static CAnimKeyframe *x4382 = 0; -static CAnimKeyframe x4401[] = { - /* x4401[0] */ { 0.000000, 0.000000, 0.000000, 0.000000, }, - /* x4401[1] */ { 0.200000, 0.000000, -1.000000, 0.000000, }, - /* x4401[2] */ { 0.400000, 0.000000, 0.000000, 0.000000, }, - /* x4401[3] */ { 0.600000, 0.000000, 0.000000, 0.000000, }, - /* x4401[4] */ { 0.800000, 0.000000, -1.000000, 0.000000, }, - /* x4401[5] */ { 1.000000, 0.000000, 0.000000, 0.000000, }, -}; -static CAnimKeyframe x4408[] = { - /* x4408[0] */ { 0.000000, 8.000000, 0.000000, 0.000000, }, - /* x4408[1] */ { 0.200000, -8.000000, 0.000000, 0.000000, }, - /* x4408[2] */ { 0.400000, -10.000000, -4.000000, 0.200000, }, - /* x4408[3] */ { 0.600000, -8.000000, -8.000000, 0.300000, }, - /* x4408[4] */ { 0.800000, 4.000000, -4.000000, -0.200000, }, - /* x4408[5] */ { 1.000000, 8.000000, 0.000000, 0.000000, }, -}; -static CAnimKeyframe x4415[] = { - /* x4415[0] */ { 0.000000, -10.000000, -4.000000, 0.200000, }, - /* x4415[1] */ { 0.200000, -8.000000, -8.000000, 0.300000, }, - /* x4415[2] */ { 0.400000, 4.000000, -4.000000, -0.200000, }, - /* x4415[3] */ { 0.600000, 8.000000, 0.000000, 0.000000, }, - /* x4415[4] */ { 0.800000, 8.000000, 0.000000, 0.000000, }, - /* x4415[5] */ { 1.000000, -10.000000, -4.000000, 0.200000, }, -}; -static CAnimKeyframe *x4422 = 0; -static CAnimKeyframe *x4521 = 0; -static CAnimKeyframe *x4528 = 0; -static CAnimKeyframe *x4535 = 0; -static CAnimKeyframe x4542[] = { - /* x4542[0] */ { 0.000000, 0.000000, 0.000000, -0.100000, }, - /* x4542[1] */ { 0.300000, 0.000000, 0.000000, 0.250000, }, - /* x4542[2] */ { 0.400000, 0.000000, 0.000000, 0.300000, }, - /* x4542[3] */ { 0.500000, 0.000000, 0.000000, 0.250000, }, - /* x4542[4] */ { 1.000000, 0.000000, 0.000000, -0.100000, }, -}; -static CAnimKeyframe *x4576 = 0; -static CAnimKeyframe *x4583 = 0; -static CAnimKeyframe *x4590 = 0; -static CAnimKeyframe x4597[] = { - /* x4597[0] */ { 0.000000, 0.000000, 0.000000, -0.250000, }, - /* x4597[1] */ { 0.100000, 0.000000, 0.000000, -0.050000, }, - /* x4597[2] */ { 0.150000, 0.000000, 0.000000, 0.350000, }, - /* x4597[3] */ { 0.420000, 0.000000, 0.000000, 0.400000, }, - /* x4597[4] */ { 0.500000, 0.000000, 0.000000, 0.350000, }, - /* x4597[5] */ { 1.000000, 0.000000, 0.000000, -0.250000, }, -}; -static CAnimation x75[] = { - /* x75[0] */ { "base", /* x75[0].body */ { 1,x4276, }, /* x75[0].back_foot */ { 1,x4283, }, /* x75[0].front_foot */ { 1,x4290, }, /* x75[0].attach */ { 0,x4297, }, }, - /* x75[1] */ { "idle", /* x75[1].body */ { 0,x4321, }, /* x75[1].back_foot */ { 1,x4328, }, /* x75[1].front_foot */ { 1,x4335, }, /* x75[1].attach */ { 0,x4342, }, }, - /* x75[2] */ { "inair", /* x75[2].body */ { 0,x4361, }, /* x75[2].back_foot */ { 1,x4368, }, /* x75[2].front_foot */ { 1,x4375, }, /* x75[2].attach */ { 0,x4382, }, }, - /* x75[3] */ { "walk", /* x75[3].body */ { 6,x4401, }, /* x75[3].back_foot */ { 6,x4408, }, /* x75[3].front_foot */ { 6,x4415, }, /* x75[3].attach */ { 0,x4422, }, }, - /* x75[4] */ { "hammer_swing", /* x75[4].body */ { 0,x4521, }, /* x75[4].back_foot */ { 0,x4528, }, /* x75[4].front_foot */ { 0,x4535, }, /* x75[4].attach */ { 5,x4542, }, }, - /* x75[5] */ { "ninja_swing", /* x75[5].body */ { 0,x4576, }, /* x75[5].back_foot */ { 0,x4583, }, /* x75[5].front_foot */ { 0,x4590, }, /* x75[5].attach */ { 6,x4597, }, }, -}; -static CDataSprite* *x4754 = 0; -static CDataSprite* x4891[] = { - &x44[29], - &x44[30], - &x44[31], -}; -static CDataSprite* x5076[] = { - &x44[35], - &x44[36], - &x44[37], -}; -static CDataSprite* *x5261 = 0; -static CDataSprite* *x5398 = 0; -static CDataSprite* x5535[] = { - &x44[52], - &x44[53], - &x44[54], -}; -static CDataWeaponspec x1887[] = { - /* x1887[0] */ { "hammer", &x44[41], &x44[42], &x44[43], 0,x4754, 96, 125, 10, 0, 3, 4.000000, -20.000000, 0.000000, 0.000000, 5.000000, }, - /* x1887[1] */ { "gun", &x44[26], &x44[27], &x44[28], 3,x4891, 64, 125, 10, 500, 1, 32.000000, 4.000000, 50.000000, 6.000000, 5.000000, }, - /* x1887[2] */ { "shotgun", &x44[32], &x44[33], &x44[34], 3,x5076, 96, 500, 10, 0, 1, 24.000000, -2.000000, 70.000000, 6.000000, 5.000000, }, - /* x1887[3] */ { "grenade", &x44[38], &x44[39], &x44[40], 0,x5261, 96, 500, 10, 0, 1, 24.000000, -2.000000, 0.000000, 0.000000, 5.000000, }, - /* x1887[4] */ { "rifle", &x44[47], &x44[48], &x44[49], 0,x5398, 92, 800, 10, 0, 5, 24.000000, -2.000000, 0.000000, 0.000000, 5.000000, }, - /* x1887[5] */ { "ninja", &x44[44], &x44[45], &x44[46], 3,x5535, 96, 800, 10, 0, 9, 0.000000, 0.000000, 40.000000, -4.000000, 5.000000, }, -}; -CDataContainer datacontainer = -/* datacontainer */ { - 41,x9, - 13,x14, - 4,x19, - 9,x28, - 107,x44, - 6,x75, - /* datacontainer.weapons */ { /* datacontainer.weapons.hammer */ { &x1887[0], }, /* datacontainer.weapons.gun */ { &x1887[1], 1.250000, 2200.000000, 2.000000, }, /* datacontainer.weapons.shotgun */ { &x1887[2], 1.250000, 2200.000000, 0.800000, 0.250000, }, /* datacontainer.weapons.grenade */ { &x1887[3], 7.000000, 1000.000000, 2.000000, }, /* datacontainer.weapons.rifle */ { &x1887[4], 800.000000, 150, 1, 0.000000, }, /* datacontainer.weapons.ninja */ { &x1887[5], 15000, 200, 50, }, 6,x1887, }, -} -; -CDataContainer *g_pData = &datacontainer; diff --git a/src/game/generated/client_data.h b/src/game/generated/client_data.h deleted file mode 100644 index 08181eefb..000000000 --- a/src/game/generated/client_data.h +++ /dev/null @@ -1,288 +0,0 @@ -#ifndef CLIENT_CONTENT_HEADER -#define CLIENT_CONTENT_HEADER -struct CDataSound -{ - int m_Id; - const char* m_pFilename; -}; -struct CDataSoundset -{ - const char* m_pName; - int m_NumSounds; - CDataSound *m_aSounds; - int m_Last; -}; -struct CDataImage -{ - const char* m_pName; - const char* m_pFilename; - int m_Id; -}; -struct CDataSpriteset -{ - CDataImage* m_pImage; - int m_Gridx; - int m_Gridy; -}; -struct CDataSprite -{ - const char* m_pName; - CDataSpriteset* m_pSet; - int m_X; - int m_Y; - int m_W; - int m_H; -}; -struct CDataPickupspec -{ - const char* m_pName; - int m_Respawntime; - int m_Spawndelay; -}; -struct CAnimKeyframe -{ - float m_Time; - float m_X; - float m_Y; - float m_Angle; -}; -struct CAnimSequence -{ - int m_NumFrames; - CAnimKeyframe *m_aFrames; -}; -struct CAnimation -{ - const char* m_pName; - CAnimSequence m_Body; - CAnimSequence m_BackFoot; - CAnimSequence m_FrontFoot; - CAnimSequence m_Attach; -}; -struct CDataWeaponspec -{ - const char* m_pName; - CDataSprite* m_pSpriteBody; - CDataSprite* m_pSpriteCursor; - CDataSprite* m_pSpriteProj; - int m_NumSpriteMuzzles; - CDataSprite* *m_aSpriteMuzzles; - int m_VisualSize; - int m_Firedelay; - int m_Maxammo; - int m_Ammoregentime; - int m_Damage; - float m_Offsetx; - float m_Offsety; - float m_Muzzleoffsetx; - float m_Muzzleoffsety; - float m_Muzzleduration; -}; -struct CDataWeaponspecHammer -{ - CDataWeaponspec* m_pBase; -}; -struct CDataWeaponspecGun -{ - CDataWeaponspec* m_pBase; - float m_Curvature; - float m_Speed; - float m_Lifetime; -}; -struct CDataWeaponspecShotgun -{ - CDataWeaponspec* m_pBase; - float m_Curvature; - float m_Speed; - float m_Speeddiff; - float m_Lifetime; -}; -struct CDataWeaponspecGrenade -{ - CDataWeaponspec* m_pBase; - float m_Curvature; - float m_Speed; - float m_Lifetime; -}; -struct CDataWeaponspecRifle -{ - CDataWeaponspec* m_pBase; - float m_Reach; - int m_BounceDelay; - int m_BounceNum; - float m_BounceCost; -}; -struct CDataWeaponspecNinja -{ - CDataWeaponspec* m_pBase; - int m_Duration; - int m_Movetime; - int m_Velocity; -}; -struct CDataWeaponspecs -{ - CDataWeaponspecHammer m_Hammer; - CDataWeaponspecGun m_Gun; - CDataWeaponspecShotgun m_Shotgun; - CDataWeaponspecGrenade m_Grenade; - CDataWeaponspecRifle m_Rifle; - CDataWeaponspecNinja m_Ninja; - int m_NumId; - CDataWeaponspec *m_aId; -}; -struct CDataContainer -{ - int m_NumSounds; - CDataSoundset *m_aSounds; - int m_NumImages; - CDataImage *m_aImages; - int m_NumPickups; - CDataPickupspec *m_aPickups; - int m_NumSpritesets; - CDataSpriteset *m_aSpritesets; - int m_NumSprites; - CDataSprite *m_aSprites; - int m_NumAnimations; - CAnimation *m_aAnimations; - CDataWeaponspecs m_Weapons; -}; -extern CDataContainer *g_pData; -enum -{ - IMAGE_NULL=0, - IMAGE_GAME, - IMAGE_PARTICLES, - IMAGE_CURSOR, - IMAGE_BANNER, - IMAGE_EMOTICONS, - IMAGE_BROWSEICONS, - IMAGE_CONSOLE_BG, - IMAGE_CONSOLE_BAR, - IMAGE_DEMOBUTTONS, - IMAGE_FILEICONS, - IMAGE_GUIBUTTONS, - IMAGE_GUIICONS, - NUM_IMAGES -}; -enum -{ - ANIM_BASE=0, - ANIM_IDLE, - ANIM_INAIR, - ANIM_WALK, - ANIM_HAMMER_SWING, - ANIM_NINJA_SWING, - NUM_ANIMS -}; -enum -{ - SPRITE_PART_SLICE=0, - SPRITE_PART_BALL, - SPRITE_PART_SPLAT01, - SPRITE_PART_SPLAT02, - SPRITE_PART_SPLAT03, - SPRITE_PART_SMOKE, - SPRITE_PART_SHELL, - SPRITE_PART_EXPL01, - SPRITE_PART_AIRJUMP, - SPRITE_PART_HIT01, - SPRITE_HEALTH_FULL, - SPRITE_HEALTH_EMPTY, - SPRITE_ARMOR_FULL, - SPRITE_ARMOR_EMPTY, - SPRITE_STAR1, - SPRITE_STAR2, - SPRITE_STAR3, - SPRITE_PART1, - SPRITE_PART2, - SPRITE_PART3, - SPRITE_PART4, - SPRITE_PART5, - SPRITE_PART6, - SPRITE_PART7, - SPRITE_PART8, - SPRITE_PART9, - SPRITE_WEAPON_GUN_BODY, - SPRITE_WEAPON_GUN_CURSOR, - SPRITE_WEAPON_GUN_PROJ, - SPRITE_WEAPON_GUN_MUZZLE1, - SPRITE_WEAPON_GUN_MUZZLE2, - SPRITE_WEAPON_GUN_MUZZLE3, - SPRITE_WEAPON_SHOTGUN_BODY, - SPRITE_WEAPON_SHOTGUN_CURSOR, - SPRITE_WEAPON_SHOTGUN_PROJ, - SPRITE_WEAPON_SHOTGUN_MUZZLE1, - SPRITE_WEAPON_SHOTGUN_MUZZLE2, - SPRITE_WEAPON_SHOTGUN_MUZZLE3, - SPRITE_WEAPON_GRENADE_BODY, - SPRITE_WEAPON_GRENADE_CURSOR, - SPRITE_WEAPON_GRENADE_PROJ, - SPRITE_WEAPON_HAMMER_BODY, - SPRITE_WEAPON_HAMMER_CURSOR, - SPRITE_WEAPON_HAMMER_PROJ, - SPRITE_WEAPON_NINJA_BODY, - SPRITE_WEAPON_NINJA_CURSOR, - SPRITE_WEAPON_NINJA_PROJ, - SPRITE_WEAPON_RIFLE_BODY, - SPRITE_WEAPON_RIFLE_CURSOR, - SPRITE_WEAPON_RIFLE_PROJ, - SPRITE_HOOK_CHAIN, - SPRITE_HOOK_HEAD, - SPRITE_WEAPON_NINJA_MUZZLE1, - SPRITE_WEAPON_NINJA_MUZZLE2, - SPRITE_WEAPON_NINJA_MUZZLE3, - SPRITE_PICKUP_HEALTH, - SPRITE_PICKUP_ARMOR, - SPRITE_PICKUP_WEAPON, - SPRITE_PICKUP_NINJA, - SPRITE_FLAG_BLUE, - SPRITE_FLAG_RED, - SPRITE_TEE_BODY, - SPRITE_TEE_BODY_OUTLINE, - SPRITE_TEE_FOOT, - SPRITE_TEE_FOOT_OUTLINE, - SPRITE_TEE_HAND, - SPRITE_TEE_HAND_OUTLINE, - SPRITE_TEE_EYE_NORMAL, - SPRITE_TEE_EYE_ANGRY, - SPRITE_TEE_EYE_PAIN, - SPRITE_TEE_EYE_HAPPY, - SPRITE_TEE_EYE_DEAD, - SPRITE_TEE_EYE_SURPRISE, - SPRITE_OOP, - SPRITE_EXCLAMATION, - SPRITE_HEARTS, - SPRITE_DROP, - SPRITE_DOTDOT, - SPRITE_MUSIC, - SPRITE_SORRY, - SPRITE_GHOST, - SPRITE_SUSHI, - SPRITE_SPLATTEE, - SPRITE_DEVILTEE, - SPRITE_ZOMG, - SPRITE_ZZZ, - SPRITE_WTF, - SPRITE_EYES, - SPRITE_QUESTION, - SPRITE_BROWSE_LOCK, - SPRITE_BROWSE_HEART, - SPRITE_BROWSE_UNPURE, - SPRITE_DEMOBUTTON_PLAY, - SPRITE_DEMOBUTTON_PAUSE, - SPRITE_DEMOBUTTON_STOP, - SPRITE_DEMOBUTTON_SLOWER, - SPRITE_DEMOBUTTON_FASTER, - SPRITE_FILE_DEMO1, - SPRITE_FILE_DEMO2, - SPRITE_FILE_FOLDER, - SPRITE_FILE_MAP1, - SPRITE_FILE_MAP2, - SPRITE_GUIBUTTON_OFF, - SPRITE_GUIBUTTON_ON, - SPRITE_GUIBUTTON_HOVER, - SPRITE_GUIICON_MUTE, - SPRITE_GUIICON_FRIEND, - NUM_SPRITES -}; -#endif diff --git a/src/game/generated/nethash.cpp b/src/game/generated/nethash.cpp deleted file mode 100644 index cb8a9c9c7..000000000 --- a/src/game/generated/nethash.cpp +++ /dev/null @@ -1 +0,0 @@ -#define GAME_NETVERSION_HASH "17847aa80933ed4b" diff --git a/src/game/generated/protocol.cpp b/src/game/generated/protocol.cpp deleted file mode 100644 index 72356f07e..000000000 --- a/src/game/generated/protocol.cpp +++ /dev/null @@ -1,560 +0,0 @@ -#include -#include -#include "protocol.h" -CNetObjHandler::CNetObjHandler() -{ - m_pMsgFailedOn = ""; - m_pObjCorrectedOn = ""; - m_NumObjCorrections = 0; -} - -int CNetObjHandler::NumObjCorrections() { return m_NumObjCorrections; } -const char *CNetObjHandler::CorrectedObjOn() { return m_pObjCorrectedOn; } -const char *CNetObjHandler::FailedMsgOn() { return m_pMsgFailedOn; } - - - - - -static const int max_int = 0x7fffffff; -int CNetObjHandler::ClampInt(const char *pErrorMsg, int Value, int Min, int Max) -{ - if(Value < Min) { m_pObjCorrectedOn = pErrorMsg; m_NumObjCorrections++; return Min; } - if(Value > Max) { m_pObjCorrectedOn = pErrorMsg; m_NumObjCorrections++; return Max; } - return Value; -} -const char *CNetObjHandler::ms_apObjNames[] = { - "invalid", - "PlayerInput", - "Projectile", - "Laser", - "Pickup", - "Flag", - "GameInfo", - "GameData", - "CharacterCore", - "Character", - "PlayerInfo", - "ClientInfo", - "SpectatorInfo", - "Common", - "Explosion", - "Spawn", - "HammerHit", - "Death", - "SoundGlobal", - "SoundWorld", - "DamageInd", - "" -}; - -int CNetObjHandler::ms_aObjSizes[] = { - 0, - sizeof(CNetObj_PlayerInput), - sizeof(CNetObj_Projectile), - sizeof(CNetObj_Laser), - sizeof(CNetObj_Pickup), - sizeof(CNetObj_Flag), - sizeof(CNetObj_GameInfo), - sizeof(CNetObj_GameData), - sizeof(CNetObj_CharacterCore), - sizeof(CNetObj_Character), - sizeof(CNetObj_PlayerInfo), - sizeof(CNetObj_ClientInfo), - sizeof(CNetObj_SpectatorInfo), - sizeof(CNetEvent_Common), - sizeof(CNetEvent_Explosion), - sizeof(CNetEvent_Spawn), - sizeof(CNetEvent_HammerHit), - sizeof(CNetEvent_Death), - sizeof(CNetEvent_SoundGlobal), - sizeof(CNetEvent_SoundWorld), - sizeof(CNetEvent_DamageInd), - 0 -}; - -const char *CNetObjHandler::ms_apMsgNames[] = { - "invalid", - "Sv_Motd", - "Sv_Broadcast", - "Sv_Chat", - "Sv_KillMsg", - "Sv_SoundGlobal", - "Sv_TuneParams", - "Sv_ExtraProjectile", - "Sv_ReadyToEnter", - "Sv_WeaponPickup", - "Sv_Emoticon", - "Sv_VoteClearOptions", - "Sv_VoteOptionListAdd", - "Sv_VoteOptionAdd", - "Sv_VoteOptionRemove", - "Sv_VoteSet", - "Sv_VoteStatus", - "Cl_Say", - "Cl_SetTeam", - "Cl_SetSpectatorMode", - "Cl_StartInfo", - "Cl_ChangeInfo", - "Cl_Kill", - "Cl_Emoticon", - "Cl_Vote", - "Cl_CallVote", - "" -}; - -const char *CNetObjHandler::GetObjName(int Type) -{ - if(Type < 0 || Type >= NUM_NETOBJTYPES) return "(out of range)"; - return ms_apObjNames[Type]; -}; - -int CNetObjHandler::GetObjSize(int Type) -{ - if(Type < 0 || Type >= NUM_NETOBJTYPES) return 0; - return ms_aObjSizes[Type]; -}; - -const char *CNetObjHandler::GetMsgName(int Type) -{ - if(Type < 0 || Type >= NUM_NETMSGTYPES) return "(out of range)"; - return ms_apMsgNames[Type]; -}; - -int CNetObjHandler::ValidateObj(int Type, void *pData, int Size) -{ - switch(Type) - { - case NETOBJTYPE_PLAYERINPUT: - { - CNetObj_PlayerInput *pObj = (CNetObj_PlayerInput *)pData; - if(sizeof(*pObj) != Size) return -1; - ClampInt("m_PlayerFlags", pObj->m_PlayerFlags, 0, 256); - return 0; - } - - case NETOBJTYPE_PROJECTILE: - { - CNetObj_Projectile *pObj = (CNetObj_Projectile *)pData; - if(sizeof(*pObj) != Size) return -1; - ClampInt("m_Type", pObj->m_Type, 0, NUM_WEAPONS-1); - ClampInt("m_StartTick", pObj->m_StartTick, 0, max_int); - return 0; - } - - case NETOBJTYPE_LASER: - { - CNetObj_Laser *pObj = (CNetObj_Laser *)pData; - if(sizeof(*pObj) != Size) return -1; - ClampInt("m_StartTick", pObj->m_StartTick, 0, max_int); - return 0; - } - - case NETOBJTYPE_PICKUP: - { - CNetObj_Pickup *pObj = (CNetObj_Pickup *)pData; - if(sizeof(*pObj) != Size) return -1; - ClampInt("m_Type", pObj->m_Type, 0, max_int); - ClampInt("m_Subtype", pObj->m_Subtype, 0, max_int); - return 0; - } - - case NETOBJTYPE_FLAG: - { - CNetObj_Flag *pObj = (CNetObj_Flag *)pData; - if(sizeof(*pObj) != Size) return -1; - ClampInt("m_Team", pObj->m_Team, TEAM_RED, TEAM_BLUE); - return 0; - } - - case NETOBJTYPE_GAMEINFO: - { - CNetObj_GameInfo *pObj = (CNetObj_GameInfo *)pData; - if(sizeof(*pObj) != Size) return -1; - ClampInt("m_GameFlags", pObj->m_GameFlags, 0, 256); - ClampInt("m_GameStateFlags", pObj->m_GameStateFlags, 0, 256); - ClampInt("m_RoundStartTick", pObj->m_RoundStartTick, 0, max_int); - ClampInt("m_WarmupTimer", pObj->m_WarmupTimer, 0, max_int); - ClampInt("m_ScoreLimit", pObj->m_ScoreLimit, 0, max_int); - ClampInt("m_TimeLimit", pObj->m_TimeLimit, 0, max_int); - ClampInt("m_RoundNum", pObj->m_RoundNum, 0, max_int); - ClampInt("m_RoundCurrent", pObj->m_RoundCurrent, 0, max_int); - return 0; - } - - case NETOBJTYPE_GAMEDATA: - { - CNetObj_GameData *pObj = (CNetObj_GameData *)pData; - if(sizeof(*pObj) != Size) return -1; - ClampInt("m_FlagCarrierRed", pObj->m_FlagCarrierRed, FLAG_MISSING, MAX_CLIENTS-1); - ClampInt("m_FlagCarrierBlue", pObj->m_FlagCarrierBlue, FLAG_MISSING, MAX_CLIENTS-1); - return 0; - } - - case NETOBJTYPE_CHARACTERCORE: - { - CNetObj_CharacterCore *pObj = (CNetObj_CharacterCore *)pData; - if(sizeof(*pObj) != Size) return -1; - ClampInt("m_Direction", pObj->m_Direction, -1, 1); - ClampInt("m_Jumped", pObj->m_Jumped, 0, 3); - ClampInt("m_HookedPlayer", pObj->m_HookedPlayer, 0, MAX_CLIENTS-1); - ClampInt("m_HookState", pObj->m_HookState, -1, 5); - ClampInt("m_HookTick", pObj->m_HookTick, 0, max_int); - return 0; - } - - case NETOBJTYPE_CHARACTER: - { - CNetObj_Character *pObj = (CNetObj_Character *)pData; - if(sizeof(*pObj) != Size) return -1; - ClampInt("m_PlayerFlags", pObj->m_PlayerFlags, 0, 256); - ClampInt("m_Health", pObj->m_Health, 0, 10); - ClampInt("m_Armor", pObj->m_Armor, 0, 10); - ClampInt("m_AmmoCount", pObj->m_AmmoCount, 0, 10); - ClampInt("m_Weapon", pObj->m_Weapon, 0, NUM_WEAPONS-1); - ClampInt("m_Emote", pObj->m_Emote, 0, 6); - ClampInt("m_AttackTick", pObj->m_AttackTick, 0, max_int); - return 0; - } - - case NETOBJTYPE_PLAYERINFO: - { - CNetObj_PlayerInfo *pObj = (CNetObj_PlayerInfo *)pData; - if(sizeof(*pObj) != Size) return -1; - ClampInt("m_Local", pObj->m_Local, 0, 1); - ClampInt("m_ClientID", pObj->m_ClientID, 0, MAX_CLIENTS-1); - ClampInt("m_Team", pObj->m_Team, TEAM_SPECTATORS, TEAM_BLUE); - return 0; - } - - case NETOBJTYPE_CLIENTINFO: - { - CNetObj_ClientInfo *pObj = (CNetObj_ClientInfo *)pData; - if(sizeof(*pObj) != Size) return -1; - ClampInt("m_UseCustomColor", pObj->m_UseCustomColor, 0, 1); - return 0; - } - - case NETOBJTYPE_SPECTATORINFO: - { - CNetObj_SpectatorInfo *pObj = (CNetObj_SpectatorInfo *)pData; - if(sizeof(*pObj) != Size) return -1; - ClampInt("m_SpectatorID", pObj->m_SpectatorID, SPEC_FREEVIEW, MAX_CLIENTS-1); - return 0; - } - - case NETEVENTTYPE_COMMON: - { - CNetEvent_Common *pObj = (CNetEvent_Common *)pData; - if(sizeof(*pObj) != Size) return -1; - return 0; - } - - case NETEVENTTYPE_EXPLOSION: - { - CNetEvent_Explosion *pObj = (CNetEvent_Explosion *)pData; - if(sizeof(*pObj) != Size) return -1; - return 0; - } - - case NETEVENTTYPE_SPAWN: - { - CNetEvent_Spawn *pObj = (CNetEvent_Spawn *)pData; - if(sizeof(*pObj) != Size) return -1; - return 0; - } - - case NETEVENTTYPE_HAMMERHIT: - { - CNetEvent_HammerHit *pObj = (CNetEvent_HammerHit *)pData; - if(sizeof(*pObj) != Size) return -1; - return 0; - } - - case NETEVENTTYPE_DEATH: - { - CNetEvent_Death *pObj = (CNetEvent_Death *)pData; - if(sizeof(*pObj) != Size) return -1; - ClampInt("m_ClientID", pObj->m_ClientID, 0, MAX_CLIENTS-1); - return 0; - } - - case NETEVENTTYPE_SOUNDGLOBAL: - { - CNetEvent_SoundGlobal *pObj = (CNetEvent_SoundGlobal *)pData; - if(sizeof(*pObj) != Size) return -1; - ClampInt("m_SoundID", pObj->m_SoundID, 0, NUM_SOUNDS-1); - return 0; - } - - case NETEVENTTYPE_SOUNDWORLD: - { - CNetEvent_SoundWorld *pObj = (CNetEvent_SoundWorld *)pData; - if(sizeof(*pObj) != Size) return -1; - ClampInt("m_SoundID", pObj->m_SoundID, 0, NUM_SOUNDS-1); - return 0; - } - - case NETEVENTTYPE_DAMAGEIND: - { - CNetEvent_DamageInd *pObj = (CNetEvent_DamageInd *)pData; - if(sizeof(*pObj) != Size) return -1; - return 0; - } - - } - return -1; -}; - -void *CNetObjHandler::SecureUnpackMsg(int Type, CUnpacker *pUnpacker) -{ - m_pMsgFailedOn = 0; - switch(Type) - { - case NETMSGTYPE_SV_MOTD: - { - CNetMsg_Sv_Motd *pMsg = (CNetMsg_Sv_Motd *)m_aMsgData; - (void)pMsg; - pMsg->m_pMessage = pUnpacker->GetString(); - } break; - - case NETMSGTYPE_SV_BROADCAST: - { - CNetMsg_Sv_Broadcast *pMsg = (CNetMsg_Sv_Broadcast *)m_aMsgData; - (void)pMsg; - pMsg->m_pMessage = pUnpacker->GetString(); - } break; - - case NETMSGTYPE_SV_CHAT: - { - CNetMsg_Sv_Chat *pMsg = (CNetMsg_Sv_Chat *)m_aMsgData; - (void)pMsg; - pMsg->m_Team = pUnpacker->GetInt(); - pMsg->m_ClientID = pUnpacker->GetInt(); - pMsg->m_pMessage = pUnpacker->GetString(CUnpacker::SANITIZE_CC|CUnpacker::SKIP_START_WHITESPACES); - if(pMsg->m_Team < TEAM_SPECTATORS || pMsg->m_Team > TEAM_BLUE) { m_pMsgFailedOn = "m_Team"; break; } - if(pMsg->m_ClientID < -1 || pMsg->m_ClientID > MAX_CLIENTS-1) { m_pMsgFailedOn = "m_ClientID"; break; } - } break; - - case NETMSGTYPE_SV_KILLMSG: - { - CNetMsg_Sv_KillMsg *pMsg = (CNetMsg_Sv_KillMsg *)m_aMsgData; - (void)pMsg; - pMsg->m_Killer = pUnpacker->GetInt(); - pMsg->m_Victim = pUnpacker->GetInt(); - pMsg->m_Weapon = pUnpacker->GetInt(); - pMsg->m_ModeSpecial = pUnpacker->GetInt(); - if(pMsg->m_Killer < 0 || pMsg->m_Killer > MAX_CLIENTS-1) { m_pMsgFailedOn = "m_Killer"; break; } - if(pMsg->m_Victim < 0 || pMsg->m_Victim > MAX_CLIENTS-1) { m_pMsgFailedOn = "m_Victim"; break; } - if(pMsg->m_Weapon < -3 || pMsg->m_Weapon > NUM_WEAPONS-1) { m_pMsgFailedOn = "m_Weapon"; break; } - } break; - - case NETMSGTYPE_SV_SOUNDGLOBAL: - { - CNetMsg_Sv_SoundGlobal *pMsg = (CNetMsg_Sv_SoundGlobal *)m_aMsgData; - (void)pMsg; - pMsg->m_SoundID = pUnpacker->GetInt(); - if(pMsg->m_SoundID < 0 || pMsg->m_SoundID > NUM_SOUNDS-1) { m_pMsgFailedOn = "m_SoundID"; break; } - } break; - - case NETMSGTYPE_SV_TUNEPARAMS: - { - CNetMsg_Sv_TuneParams *pMsg = (CNetMsg_Sv_TuneParams *)m_aMsgData; - (void)pMsg; - } break; - - case NETMSGTYPE_SV_EXTRAPROJECTILE: - { - CNetMsg_Sv_ExtraProjectile *pMsg = (CNetMsg_Sv_ExtraProjectile *)m_aMsgData; - (void)pMsg; - } break; - - case NETMSGTYPE_SV_READYTOENTER: - { - CNetMsg_Sv_ReadyToEnter *pMsg = (CNetMsg_Sv_ReadyToEnter *)m_aMsgData; - (void)pMsg; - } break; - - case NETMSGTYPE_SV_WEAPONPICKUP: - { - CNetMsg_Sv_WeaponPickup *pMsg = (CNetMsg_Sv_WeaponPickup *)m_aMsgData; - (void)pMsg; - pMsg->m_Weapon = pUnpacker->GetInt(); - if(pMsg->m_Weapon < 0 || pMsg->m_Weapon > NUM_WEAPONS-1) { m_pMsgFailedOn = "m_Weapon"; break; } - } break; - - case NETMSGTYPE_SV_EMOTICON: - { - CNetMsg_Sv_Emoticon *pMsg = (CNetMsg_Sv_Emoticon *)m_aMsgData; - (void)pMsg; - pMsg->m_ClientID = pUnpacker->GetInt(); - pMsg->m_Emoticon = pUnpacker->GetInt(); - if(pMsg->m_ClientID < 0 || pMsg->m_ClientID > MAX_CLIENTS-1) { m_pMsgFailedOn = "m_ClientID"; break; } - if(pMsg->m_Emoticon < 0 || pMsg->m_Emoticon > NUM_EMOTICONS-1) { m_pMsgFailedOn = "m_Emoticon"; break; } - } break; - - case NETMSGTYPE_SV_VOTECLEAROPTIONS: - { - CNetMsg_Sv_VoteClearOptions *pMsg = (CNetMsg_Sv_VoteClearOptions *)m_aMsgData; - (void)pMsg; - } break; - - case NETMSGTYPE_SV_VOTEOPTIONLISTADD: - { - CNetMsg_Sv_VoteOptionListAdd *pMsg = (CNetMsg_Sv_VoteOptionListAdd *)m_aMsgData; - (void)pMsg; - pMsg->m_NumOptions = pUnpacker->GetInt(); - pMsg->m_pDescription0 = pUnpacker->GetString(CUnpacker::SANITIZE_CC|CUnpacker::SKIP_START_WHITESPACES); - pMsg->m_pDescription1 = pUnpacker->GetString(CUnpacker::SANITIZE_CC|CUnpacker::SKIP_START_WHITESPACES); - pMsg->m_pDescription2 = pUnpacker->GetString(CUnpacker::SANITIZE_CC|CUnpacker::SKIP_START_WHITESPACES); - pMsg->m_pDescription3 = pUnpacker->GetString(CUnpacker::SANITIZE_CC|CUnpacker::SKIP_START_WHITESPACES); - pMsg->m_pDescription4 = pUnpacker->GetString(CUnpacker::SANITIZE_CC|CUnpacker::SKIP_START_WHITESPACES); - pMsg->m_pDescription5 = pUnpacker->GetString(CUnpacker::SANITIZE_CC|CUnpacker::SKIP_START_WHITESPACES); - pMsg->m_pDescription6 = pUnpacker->GetString(CUnpacker::SANITIZE_CC|CUnpacker::SKIP_START_WHITESPACES); - pMsg->m_pDescription7 = pUnpacker->GetString(CUnpacker::SANITIZE_CC|CUnpacker::SKIP_START_WHITESPACES); - pMsg->m_pDescription8 = pUnpacker->GetString(CUnpacker::SANITIZE_CC|CUnpacker::SKIP_START_WHITESPACES); - pMsg->m_pDescription9 = pUnpacker->GetString(CUnpacker::SANITIZE_CC|CUnpacker::SKIP_START_WHITESPACES); - pMsg->m_pDescription10 = pUnpacker->GetString(CUnpacker::SANITIZE_CC|CUnpacker::SKIP_START_WHITESPACES); - pMsg->m_pDescription11 = pUnpacker->GetString(CUnpacker::SANITIZE_CC|CUnpacker::SKIP_START_WHITESPACES); - pMsg->m_pDescription12 = pUnpacker->GetString(CUnpacker::SANITIZE_CC|CUnpacker::SKIP_START_WHITESPACES); - pMsg->m_pDescription13 = pUnpacker->GetString(CUnpacker::SANITIZE_CC|CUnpacker::SKIP_START_WHITESPACES); - pMsg->m_pDescription14 = pUnpacker->GetString(CUnpacker::SANITIZE_CC|CUnpacker::SKIP_START_WHITESPACES); - if(pMsg->m_NumOptions < 1 || pMsg->m_NumOptions > 15) { m_pMsgFailedOn = "m_NumOptions"; break; } - } break; - - case NETMSGTYPE_SV_VOTEOPTIONADD: - { - CNetMsg_Sv_VoteOptionAdd *pMsg = (CNetMsg_Sv_VoteOptionAdd *)m_aMsgData; - (void)pMsg; - pMsg->m_pDescription = pUnpacker->GetString(CUnpacker::SANITIZE_CC|CUnpacker::SKIP_START_WHITESPACES); - } break; - - case NETMSGTYPE_SV_VOTEOPTIONREMOVE: - { - CNetMsg_Sv_VoteOptionRemove *pMsg = (CNetMsg_Sv_VoteOptionRemove *)m_aMsgData; - (void)pMsg; - pMsg->m_pDescription = pUnpacker->GetString(CUnpacker::SANITIZE_CC|CUnpacker::SKIP_START_WHITESPACES); - } break; - - case NETMSGTYPE_SV_VOTESET: - { - CNetMsg_Sv_VoteSet *pMsg = (CNetMsg_Sv_VoteSet *)m_aMsgData; - (void)pMsg; - pMsg->m_Timeout = pUnpacker->GetInt(); - pMsg->m_pDescription = pUnpacker->GetString(CUnpacker::SANITIZE_CC|CUnpacker::SKIP_START_WHITESPACES); - pMsg->m_pReason = pUnpacker->GetString(CUnpacker::SANITIZE_CC|CUnpacker::SKIP_START_WHITESPACES); - if(pMsg->m_Timeout < 0 || pMsg->m_Timeout > 60) { m_pMsgFailedOn = "m_Timeout"; break; } - } break; - - case NETMSGTYPE_SV_VOTESTATUS: - { - CNetMsg_Sv_VoteStatus *pMsg = (CNetMsg_Sv_VoteStatus *)m_aMsgData; - (void)pMsg; - pMsg->m_Yes = pUnpacker->GetInt(); - pMsg->m_No = pUnpacker->GetInt(); - pMsg->m_Pass = pUnpacker->GetInt(); - pMsg->m_Total = pUnpacker->GetInt(); - if(pMsg->m_Yes < 0 || pMsg->m_Yes > MAX_CLIENTS) { m_pMsgFailedOn = "m_Yes"; break; } - if(pMsg->m_No < 0 || pMsg->m_No > MAX_CLIENTS) { m_pMsgFailedOn = "m_No"; break; } - if(pMsg->m_Pass < 0 || pMsg->m_Pass > MAX_CLIENTS) { m_pMsgFailedOn = "m_Pass"; break; } - if(pMsg->m_Total < 0 || pMsg->m_Total > MAX_CLIENTS) { m_pMsgFailedOn = "m_Total"; break; } - } break; - - case NETMSGTYPE_CL_SAY: - { - CNetMsg_Cl_Say *pMsg = (CNetMsg_Cl_Say *)m_aMsgData; - (void)pMsg; - pMsg->m_Team = pUnpacker->GetInt(); - pMsg->m_pMessage = pUnpacker->GetString(CUnpacker::SANITIZE_CC|CUnpacker::SKIP_START_WHITESPACES); - if(pMsg->m_Team < 0 || pMsg->m_Team > 1) { m_pMsgFailedOn = "m_Team"; break; } - } break; - - case NETMSGTYPE_CL_SETTEAM: - { - CNetMsg_Cl_SetTeam *pMsg = (CNetMsg_Cl_SetTeam *)m_aMsgData; - (void)pMsg; - pMsg->m_Team = pUnpacker->GetInt(); - if(pMsg->m_Team < TEAM_SPECTATORS || pMsg->m_Team > TEAM_BLUE) { m_pMsgFailedOn = "m_Team"; break; } - } break; - - case NETMSGTYPE_CL_SETSPECTATORMODE: - { - CNetMsg_Cl_SetSpectatorMode *pMsg = (CNetMsg_Cl_SetSpectatorMode *)m_aMsgData; - (void)pMsg; - pMsg->m_SpectatorID = pUnpacker->GetInt(); - if(pMsg->m_SpectatorID < SPEC_FREEVIEW || pMsg->m_SpectatorID > MAX_CLIENTS-1) { m_pMsgFailedOn = "m_SpectatorID"; break; } - } break; - - case NETMSGTYPE_CL_STARTINFO: - { - CNetMsg_Cl_StartInfo *pMsg = (CNetMsg_Cl_StartInfo *)m_aMsgData; - (void)pMsg; - pMsg->m_pName = pUnpacker->GetString(CUnpacker::SANITIZE_CC|CUnpacker::SKIP_START_WHITESPACES); - pMsg->m_pClan = pUnpacker->GetString(CUnpacker::SANITIZE_CC|CUnpacker::SKIP_START_WHITESPACES); - pMsg->m_Country = pUnpacker->GetInt(); - pMsg->m_pSkin = pUnpacker->GetString(CUnpacker::SANITIZE_CC|CUnpacker::SKIP_START_WHITESPACES); - pMsg->m_UseCustomColor = pUnpacker->GetInt(); - pMsg->m_ColorBody = pUnpacker->GetInt(); - pMsg->m_ColorFeet = pUnpacker->GetInt(); - if(pMsg->m_UseCustomColor < 0 || pMsg->m_UseCustomColor > 1) { m_pMsgFailedOn = "m_UseCustomColor"; break; } - } break; - - case NETMSGTYPE_CL_CHANGEINFO: - { - CNetMsg_Cl_ChangeInfo *pMsg = (CNetMsg_Cl_ChangeInfo *)m_aMsgData; - (void)pMsg; - pMsg->m_pName = pUnpacker->GetString(CUnpacker::SANITIZE_CC|CUnpacker::SKIP_START_WHITESPACES); - pMsg->m_pClan = pUnpacker->GetString(CUnpacker::SANITIZE_CC|CUnpacker::SKIP_START_WHITESPACES); - pMsg->m_Country = pUnpacker->GetInt(); - pMsg->m_pSkin = pUnpacker->GetString(CUnpacker::SANITIZE_CC|CUnpacker::SKIP_START_WHITESPACES); - pMsg->m_UseCustomColor = pUnpacker->GetInt(); - pMsg->m_ColorBody = pUnpacker->GetInt(); - pMsg->m_ColorFeet = pUnpacker->GetInt(); - if(pMsg->m_UseCustomColor < 0 || pMsg->m_UseCustomColor > 1) { m_pMsgFailedOn = "m_UseCustomColor"; break; } - } break; - - case NETMSGTYPE_CL_KILL: - { - CNetMsg_Cl_Kill *pMsg = (CNetMsg_Cl_Kill *)m_aMsgData; - (void)pMsg; - } break; - - case NETMSGTYPE_CL_EMOTICON: - { - CNetMsg_Cl_Emoticon *pMsg = (CNetMsg_Cl_Emoticon *)m_aMsgData; - (void)pMsg; - pMsg->m_Emoticon = pUnpacker->GetInt(); - if(pMsg->m_Emoticon < 0 || pMsg->m_Emoticon > NUM_EMOTICONS-1) { m_pMsgFailedOn = "m_Emoticon"; break; } - } break; - - case NETMSGTYPE_CL_VOTE: - { - CNetMsg_Cl_Vote *pMsg = (CNetMsg_Cl_Vote *)m_aMsgData; - (void)pMsg; - pMsg->m_Vote = pUnpacker->GetInt(); - if(pMsg->m_Vote < -1 || pMsg->m_Vote > 1) { m_pMsgFailedOn = "m_Vote"; break; } - } break; - - case NETMSGTYPE_CL_CALLVOTE: - { - CNetMsg_Cl_CallVote *pMsg = (CNetMsg_Cl_CallVote *)m_aMsgData; - (void)pMsg; - pMsg->m_Type = pUnpacker->GetString(CUnpacker::SANITIZE_CC|CUnpacker::SKIP_START_WHITESPACES); - pMsg->m_Value = pUnpacker->GetString(CUnpacker::SANITIZE_CC|CUnpacker::SKIP_START_WHITESPACES); - pMsg->m_Reason = pUnpacker->GetString(CUnpacker::SANITIZE_CC|CUnpacker::SKIP_START_WHITESPACES); - } break; - - default: - m_pMsgFailedOn = "(type out of range)"; - break; - } - - if(pUnpacker->Error()) - m_pMsgFailedOn = "(unpack error)"; - - if(m_pMsgFailedOn) - return 0; - m_pMsgFailedOn = ""; - return m_aMsgData; -}; - diff --git a/src/game/generated/protocol.h b/src/game/generated/protocol.h deleted file mode 100644 index c9d40bb5a..000000000 --- a/src/game/generated/protocol.h +++ /dev/null @@ -1,773 +0,0 @@ -#ifndef GAME_GENERATED_PROTOCOL_H -#define GAME_GENERATED_PROTOCOL_H - - -#include - -enum -{ - INPUT_STATE_MASK=0x3f -}; - -enum -{ - TEAM_SPECTATORS=-1, - TEAM_RED, - TEAM_BLUE, - - FLAG_MISSING=-3, - FLAG_ATSTAND, - FLAG_TAKEN, - - SPEC_FREEVIEW=-1, -}; - -enum -{ - EMOTE_NORMAL=0, - EMOTE_PAIN, - EMOTE_HAPPY, - EMOTE_SURPRISE, - EMOTE_ANGRY, - EMOTE_BLINK, - NUM_EMOTES -}; - -enum -{ - POWERUP_HEALTH=0, - POWERUP_ARMOR, - POWERUP_WEAPON, - POWERUP_NINJA, - NUM_POWERUPS -}; - -enum -{ - EMOTICON_OOP=0, - EMOTICON_EXCLAMATION, - EMOTICON_HEARTS, - EMOTICON_DROP, - EMOTICON_DOTDOT, - EMOTICON_MUSIC, - EMOTICON_SORRY, - EMOTICON_GHOST, - EMOTICON_SUSHI, - EMOTICON_SPLATTEE, - EMOTICON_DEVILTEE, - EMOTICON_ZOMG, - EMOTICON_ZZZ, - EMOTICON_WTF, - EMOTICON_EYES, - EMOTICON_QUESTION, - NUM_EMOTICONS -}; - -enum -{ - PLAYERFLAG_PLAYING = 1<<0, - PLAYERFLAG_IN_MENU = 1<<1, - PLAYERFLAG_CHATTING = 1<<2, - PLAYERFLAG_SCOREBOARD = 1<<3, -}; - -enum -{ - GAMEFLAG_TEAMS = 1<<0, - GAMEFLAG_FLAGS = 1<<1, -}; - -enum -{ - GAMESTATEFLAG_GAMEOVER = 1<<0, - GAMESTATEFLAG_SUDDENDEATH = 1<<1, - GAMESTATEFLAG_PAUSED = 1<<2, -}; - -enum -{ - NETOBJ_INVALID=0, - NETOBJTYPE_PLAYERINPUT, - NETOBJTYPE_PROJECTILE, - NETOBJTYPE_LASER, - NETOBJTYPE_PICKUP, - NETOBJTYPE_FLAG, - NETOBJTYPE_GAMEINFO, - NETOBJTYPE_GAMEDATA, - NETOBJTYPE_CHARACTERCORE, - NETOBJTYPE_CHARACTER, - NETOBJTYPE_PLAYERINFO, - NETOBJTYPE_CLIENTINFO, - NETOBJTYPE_SPECTATORINFO, - NETEVENTTYPE_COMMON, - NETEVENTTYPE_EXPLOSION, - NETEVENTTYPE_SPAWN, - NETEVENTTYPE_HAMMERHIT, - NETEVENTTYPE_DEATH, - NETEVENTTYPE_SOUNDGLOBAL, - NETEVENTTYPE_SOUNDWORLD, - NETEVENTTYPE_DAMAGEIND, - NUM_NETOBJTYPES -}; - -enum -{ - NETMSG_INVALID=0, - NETMSGTYPE_SV_MOTD, - NETMSGTYPE_SV_BROADCAST, - NETMSGTYPE_SV_CHAT, - NETMSGTYPE_SV_KILLMSG, - NETMSGTYPE_SV_SOUNDGLOBAL, - NETMSGTYPE_SV_TUNEPARAMS, - NETMSGTYPE_SV_EXTRAPROJECTILE, - NETMSGTYPE_SV_READYTOENTER, - NETMSGTYPE_SV_WEAPONPICKUP, - NETMSGTYPE_SV_EMOTICON, - NETMSGTYPE_SV_VOTECLEAROPTIONS, - NETMSGTYPE_SV_VOTEOPTIONLISTADD, - NETMSGTYPE_SV_VOTEOPTIONADD, - NETMSGTYPE_SV_VOTEOPTIONREMOVE, - NETMSGTYPE_SV_VOTESET, - NETMSGTYPE_SV_VOTESTATUS, - NETMSGTYPE_CL_SAY, - NETMSGTYPE_CL_SETTEAM, - NETMSGTYPE_CL_SETSPECTATORMODE, - NETMSGTYPE_CL_STARTINFO, - NETMSGTYPE_CL_CHANGEINFO, - NETMSGTYPE_CL_KILL, - NETMSGTYPE_CL_EMOTICON, - NETMSGTYPE_CL_VOTE, - NETMSGTYPE_CL_CALLVOTE, - NUM_NETMSGTYPES -}; - -struct CNetObj_PlayerInput -{ - int m_Direction; - int m_TargetX; - int m_TargetY; - int m_Jump; - int m_Fire; - int m_Hook; - int m_PlayerFlags; - int m_WantedWeapon; - int m_NextWeapon; - int m_PrevWeapon; -}; - -struct CNetObj_Projectile -{ - int m_X; - int m_Y; - int m_VelX; - int m_VelY; - int m_Type; - int m_StartTick; -}; - -struct CNetObj_Laser -{ - int m_X; - int m_Y; - int m_FromX; - int m_FromY; - int m_StartTick; -}; - -struct CNetObj_Pickup -{ - int m_X; - int m_Y; - int m_Type; - int m_Subtype; -}; - -struct CNetObj_Flag -{ - int m_X; - int m_Y; - int m_Team; -}; - -struct CNetObj_GameInfo -{ - int m_GameFlags; - int m_GameStateFlags; - int m_RoundStartTick; - int m_WarmupTimer; - int m_ScoreLimit; - int m_TimeLimit; - int m_RoundNum; - int m_RoundCurrent; -}; - -struct CNetObj_GameData -{ - int m_TeamscoreRed; - int m_TeamscoreBlue; - int m_FlagCarrierRed; - int m_FlagCarrierBlue; -}; - -struct CNetObj_CharacterCore -{ - int m_Tick; - int m_X; - int m_Y; - int m_VelX; - int m_VelY; - int m_Angle; - int m_Direction; - int m_Jumped; - int m_HookedPlayer; - int m_HookState; - int m_HookTick; - int m_HookX; - int m_HookY; - int m_HookDx; - int m_HookDy; -}; - -struct CNetObj_Character : public CNetObj_CharacterCore -{ - int m_PlayerFlags; - int m_Health; - int m_Armor; - int m_AmmoCount; - int m_Weapon; - int m_Emote; - int m_AttackTick; -}; - -struct CNetObj_PlayerInfo -{ - int m_Local; - int m_ClientID; - int m_Team; - int m_Score; - int m_Latency; -}; - -struct CNetObj_ClientInfo -{ - int m_Name0; - int m_Name1; - int m_Name2; - int m_Name3; - int m_Clan0; - int m_Clan1; - int m_Clan2; - int m_Country; - int m_Skin0; - int m_Skin1; - int m_Skin2; - int m_Skin3; - int m_Skin4; - int m_Skin5; - int m_UseCustomColor; - int m_ColorBody; - int m_ColorFeet; -}; - -struct CNetObj_SpectatorInfo -{ - int m_SpectatorID; - int m_X; - int m_Y; -}; - -struct CNetEvent_Common -{ - int m_X; - int m_Y; -}; - -struct CNetEvent_Explosion : public CNetEvent_Common -{ -}; - -struct CNetEvent_Spawn : public CNetEvent_Common -{ -}; - -struct CNetEvent_HammerHit : public CNetEvent_Common -{ -}; - -struct CNetEvent_Death : public CNetEvent_Common -{ - int m_ClientID; -}; - -struct CNetEvent_SoundGlobal : public CNetEvent_Common -{ - int m_SoundID; -}; - -struct CNetEvent_SoundWorld : public CNetEvent_Common -{ - int m_SoundID; -}; - -struct CNetEvent_DamageInd : public CNetEvent_Common -{ - int m_Angle; -}; - -struct CNetMsg_Sv_Motd -{ - const char *m_pMessage; - int MsgID() const { return NETMSGTYPE_SV_MOTD; } - - bool Pack(CMsgPacker *pPacker) - { - pPacker->AddString(m_pMessage, -1); - return pPacker->Error() != 0; - } -}; - -struct CNetMsg_Sv_Broadcast -{ - const char *m_pMessage; - int MsgID() const { return NETMSGTYPE_SV_BROADCAST; } - - bool Pack(CMsgPacker *pPacker) - { - pPacker->AddString(m_pMessage, -1); - return pPacker->Error() != 0; - } -}; - -struct CNetMsg_Sv_Chat -{ - int m_Team; - int m_ClientID; - const char *m_pMessage; - int MsgID() const { return NETMSGTYPE_SV_CHAT; } - - bool Pack(CMsgPacker *pPacker) - { - pPacker->AddInt(m_Team); - pPacker->AddInt(m_ClientID); - pPacker->AddString(m_pMessage, -1); - return pPacker->Error() != 0; - } -}; - -struct CNetMsg_Sv_KillMsg -{ - int m_Killer; - int m_Victim; - int m_Weapon; - int m_ModeSpecial; - int MsgID() const { return NETMSGTYPE_SV_KILLMSG; } - - bool Pack(CMsgPacker *pPacker) - { - pPacker->AddInt(m_Killer); - pPacker->AddInt(m_Victim); - pPacker->AddInt(m_Weapon); - pPacker->AddInt(m_ModeSpecial); - return pPacker->Error() != 0; - } -}; - -struct CNetMsg_Sv_SoundGlobal -{ - int m_SoundID; - int MsgID() const { return NETMSGTYPE_SV_SOUNDGLOBAL; } - - bool Pack(CMsgPacker *pPacker) - { - pPacker->AddInt(m_SoundID); - return pPacker->Error() != 0; - } -}; - -struct CNetMsg_Sv_TuneParams -{ - int MsgID() const { return NETMSGTYPE_SV_TUNEPARAMS; } - - bool Pack(CMsgPacker *pPacker) - { - return pPacker->Error() != 0; - } -}; - -struct CNetMsg_Sv_ExtraProjectile -{ - int MsgID() const { return NETMSGTYPE_SV_EXTRAPROJECTILE; } - - bool Pack(CMsgPacker *pPacker) - { - return pPacker->Error() != 0; - } -}; - -struct CNetMsg_Sv_ReadyToEnter -{ - int MsgID() const { return NETMSGTYPE_SV_READYTOENTER; } - - bool Pack(CMsgPacker *pPacker) - { - return pPacker->Error() != 0; - } -}; - -struct CNetMsg_Sv_WeaponPickup -{ - int m_Weapon; - int MsgID() const { return NETMSGTYPE_SV_WEAPONPICKUP; } - - bool Pack(CMsgPacker *pPacker) - { - pPacker->AddInt(m_Weapon); - return pPacker->Error() != 0; - } -}; - -struct CNetMsg_Sv_Emoticon -{ - int m_ClientID; - int m_Emoticon; - int MsgID() const { return NETMSGTYPE_SV_EMOTICON; } - - bool Pack(CMsgPacker *pPacker) - { - pPacker->AddInt(m_ClientID); - pPacker->AddInt(m_Emoticon); - return pPacker->Error() != 0; - } -}; - -struct CNetMsg_Sv_VoteClearOptions -{ - int MsgID() const { return NETMSGTYPE_SV_VOTECLEAROPTIONS; } - - bool Pack(CMsgPacker *pPacker) - { - return pPacker->Error() != 0; - } -}; - -struct CNetMsg_Sv_VoteOptionListAdd -{ - int m_NumOptions; - const char *m_pDescription0; - const char *m_pDescription1; - const char *m_pDescription2; - const char *m_pDescription3; - const char *m_pDescription4; - const char *m_pDescription5; - const char *m_pDescription6; - const char *m_pDescription7; - const char *m_pDescription8; - const char *m_pDescription9; - const char *m_pDescription10; - const char *m_pDescription11; - const char *m_pDescription12; - const char *m_pDescription13; - const char *m_pDescription14; - int MsgID() const { return NETMSGTYPE_SV_VOTEOPTIONLISTADD; } - - bool Pack(CMsgPacker *pPacker) - { - pPacker->AddInt(m_NumOptions); - pPacker->AddString(m_pDescription0, -1); - pPacker->AddString(m_pDescription1, -1); - pPacker->AddString(m_pDescription2, -1); - pPacker->AddString(m_pDescription3, -1); - pPacker->AddString(m_pDescription4, -1); - pPacker->AddString(m_pDescription5, -1); - pPacker->AddString(m_pDescription6, -1); - pPacker->AddString(m_pDescription7, -1); - pPacker->AddString(m_pDescription8, -1); - pPacker->AddString(m_pDescription9, -1); - pPacker->AddString(m_pDescription10, -1); - pPacker->AddString(m_pDescription11, -1); - pPacker->AddString(m_pDescription12, -1); - pPacker->AddString(m_pDescription13, -1); - pPacker->AddString(m_pDescription14, -1); - return pPacker->Error() != 0; - } -}; - -struct CNetMsg_Sv_VoteOptionAdd -{ - const char *m_pDescription; - int MsgID() const { return NETMSGTYPE_SV_VOTEOPTIONADD; } - - bool Pack(CMsgPacker *pPacker) - { - pPacker->AddString(m_pDescription, -1); - return pPacker->Error() != 0; - } -}; - -struct CNetMsg_Sv_VoteOptionRemove -{ - const char *m_pDescription; - int MsgID() const { return NETMSGTYPE_SV_VOTEOPTIONREMOVE; } - - bool Pack(CMsgPacker *pPacker) - { - pPacker->AddString(m_pDescription, -1); - return pPacker->Error() != 0; - } -}; - -struct CNetMsg_Sv_VoteSet -{ - int m_Timeout; - const char *m_pDescription; - const char *m_pReason; - int MsgID() const { return NETMSGTYPE_SV_VOTESET; } - - bool Pack(CMsgPacker *pPacker) - { - pPacker->AddInt(m_Timeout); - pPacker->AddString(m_pDescription, -1); - pPacker->AddString(m_pReason, -1); - return pPacker->Error() != 0; - } -}; - -struct CNetMsg_Sv_VoteStatus -{ - int m_Yes; - int m_No; - int m_Pass; - int m_Total; - int MsgID() const { return NETMSGTYPE_SV_VOTESTATUS; } - - bool Pack(CMsgPacker *pPacker) - { - pPacker->AddInt(m_Yes); - pPacker->AddInt(m_No); - pPacker->AddInt(m_Pass); - pPacker->AddInt(m_Total); - return pPacker->Error() != 0; - } -}; - -struct CNetMsg_Cl_Say -{ - int m_Team; - const char *m_pMessage; - int MsgID() const { return NETMSGTYPE_CL_SAY; } - - bool Pack(CMsgPacker *pPacker) - { - pPacker->AddInt(m_Team); - pPacker->AddString(m_pMessage, -1); - return pPacker->Error() != 0; - } -}; - -struct CNetMsg_Cl_SetTeam -{ - int m_Team; - int MsgID() const { return NETMSGTYPE_CL_SETTEAM; } - - bool Pack(CMsgPacker *pPacker) - { - pPacker->AddInt(m_Team); - return pPacker->Error() != 0; - } -}; - -struct CNetMsg_Cl_SetSpectatorMode -{ - int m_SpectatorID; - int MsgID() const { return NETMSGTYPE_CL_SETSPECTATORMODE; } - - bool Pack(CMsgPacker *pPacker) - { - pPacker->AddInt(m_SpectatorID); - return pPacker->Error() != 0; - } -}; - -struct CNetMsg_Cl_StartInfo -{ - const char *m_pName; - const char *m_pClan; - int m_Country; - const char *m_pSkin; - int m_UseCustomColor; - int m_ColorBody; - int m_ColorFeet; - int MsgID() const { return NETMSGTYPE_CL_STARTINFO; } - - bool Pack(CMsgPacker *pPacker) - { - pPacker->AddString(m_pName, -1); - pPacker->AddString(m_pClan, -1); - pPacker->AddInt(m_Country); - pPacker->AddString(m_pSkin, -1); - pPacker->AddInt(m_UseCustomColor); - pPacker->AddInt(m_ColorBody); - pPacker->AddInt(m_ColorFeet); - return pPacker->Error() != 0; - } -}; - -struct CNetMsg_Cl_ChangeInfo -{ - const char *m_pName; - const char *m_pClan; - int m_Country; - const char *m_pSkin; - int m_UseCustomColor; - int m_ColorBody; - int m_ColorFeet; - int MsgID() const { return NETMSGTYPE_CL_CHANGEINFO; } - - bool Pack(CMsgPacker *pPacker) - { - pPacker->AddString(m_pName, -1); - pPacker->AddString(m_pClan, -1); - pPacker->AddInt(m_Country); - pPacker->AddString(m_pSkin, -1); - pPacker->AddInt(m_UseCustomColor); - pPacker->AddInt(m_ColorBody); - pPacker->AddInt(m_ColorFeet); - return pPacker->Error() != 0; - } -}; - -struct CNetMsg_Cl_Kill -{ - int MsgID() const { return NETMSGTYPE_CL_KILL; } - - bool Pack(CMsgPacker *pPacker) - { - return pPacker->Error() != 0; - } -}; - -struct CNetMsg_Cl_Emoticon -{ - int m_Emoticon; - int MsgID() const { return NETMSGTYPE_CL_EMOTICON; } - - bool Pack(CMsgPacker *pPacker) - { - pPacker->AddInt(m_Emoticon); - return pPacker->Error() != 0; - } -}; - -struct CNetMsg_Cl_Vote -{ - int m_Vote; - int MsgID() const { return NETMSGTYPE_CL_VOTE; } - - bool Pack(CMsgPacker *pPacker) - { - pPacker->AddInt(m_Vote); - return pPacker->Error() != 0; - } -}; - -struct CNetMsg_Cl_CallVote -{ - const char *m_Type; - const char *m_Value; - const char *m_Reason; - int MsgID() const { return NETMSGTYPE_CL_CALLVOTE; } - - bool Pack(CMsgPacker *pPacker) - { - pPacker->AddString(m_Type, -1); - pPacker->AddString(m_Value, -1); - pPacker->AddString(m_Reason, -1); - return pPacker->Error() != 0; - } -}; - -enum -{ - SOUND_GUN_FIRE=0, - SOUND_SHOTGUN_FIRE, - SOUND_GRENADE_FIRE, - SOUND_HAMMER_FIRE, - SOUND_HAMMER_HIT, - SOUND_NINJA_FIRE, - SOUND_GRENADE_EXPLODE, - SOUND_NINJA_HIT, - SOUND_RIFLE_FIRE, - SOUND_RIFLE_BOUNCE, - SOUND_WEAPON_SWITCH, - SOUND_PLAYER_PAIN_SHORT, - SOUND_PLAYER_PAIN_LONG, - SOUND_BODY_LAND, - SOUND_PLAYER_AIRJUMP, - SOUND_PLAYER_JUMP, - SOUND_PLAYER_DIE, - SOUND_PLAYER_SPAWN, - SOUND_PLAYER_SKID, - SOUND_TEE_CRY, - SOUND_HOOK_LOOP, - SOUND_HOOK_ATTACH_GROUND, - SOUND_HOOK_ATTACH_PLAYER, - SOUND_HOOK_NOATTACH, - SOUND_PICKUP_HEALTH, - SOUND_PICKUP_ARMOR, - SOUND_PICKUP_GRENADE, - SOUND_PICKUP_SHOTGUN, - SOUND_PICKUP_NINJA, - SOUND_WEAPON_SPAWN, - SOUND_WEAPON_NOAMMO, - SOUND_HIT, - SOUND_CHAT_SERVER, - SOUND_CHAT_CLIENT, - SOUND_CHAT_HIGHLIGHT, - SOUND_CTF_DROP, - SOUND_CTF_RETURN, - SOUND_CTF_GRAB_PL, - SOUND_CTF_GRAB_EN, - SOUND_CTF_CAPTURE, - SOUND_MENU, - NUM_SOUNDS -}; -enum -{ - WEAPON_HAMMER=0, - WEAPON_GUN, - WEAPON_SHOTGUN, - WEAPON_GRENADE, - WEAPON_RIFLE, - WEAPON_NINJA, - NUM_WEAPONS -}; - - -class CNetObjHandler -{ - const char *m_pMsgFailedOn; - const char *m_pObjCorrectedOn; - char m_aMsgData[1024]; - int m_NumObjCorrections; - int ClampInt(const char *pErrorMsg, int Value, int Min, int Max); - - static const char *ms_apObjNames[]; - static int ms_aObjSizes[]; - static const char *ms_apMsgNames[]; - -public: - CNetObjHandler(); - - int ValidateObj(int Type, void *pData, int Size); - const char *GetObjName(int Type); - int GetObjSize(int Type); - int NumObjCorrections(); - const char *CorrectedObjOn(); - - const char *GetMsgName(int Type); - void *SecureUnpackMsg(int Type, CUnpacker *pUnpacker); - const char *FailedMsgOn(); -}; - - -#endif // GAME_GENERATED_PROTOCOL_H diff --git a/src/game/generated/server_data.cpp b/src/game/generated/server_data.cpp deleted file mode 100644 index 892c9fc7e..000000000 --- a/src/game/generated/server_data.cpp +++ /dev/null @@ -1,501 +0,0 @@ -#include "server_data.h" -static CDataSound x1893[] = { - /* x1893[0] */ { 0, "audio/wp_gun_fire-01.wv", }, - /* x1893[1] */ { 0, "audio/wp_gun_fire-02.wv", }, - /* x1893[2] */ { 0, "audio/wp_gun_fire-03.wv", }, -}; -static CDataSound x1909[] = { - /* x1909[0] */ { 0, "audio/wp_shotty_fire-01.wv", }, - /* x1909[1] */ { 0, "audio/wp_shotty_fire-02.wv", }, - /* x1909[2] */ { 0, "audio/wp_shotty_fire-03.wv", }, -}; -static CDataSound x1925[] = { - /* x1925[0] */ { 0, "audio/wp_flump_launch-01.wv", }, - /* x1925[1] */ { 0, "audio/wp_flump_launch-02.wv", }, - /* x1925[2] */ { 0, "audio/wp_flump_launch-03.wv", }, -}; -static CDataSound x1941[] = { - /* x1941[0] */ { 0, "audio/wp_hammer_swing-01.wv", }, - /* x1941[1] */ { 0, "audio/wp_hammer_swing-02.wv", }, - /* x1941[2] */ { 0, "audio/wp_hammer_swing-03.wv", }, -}; -static CDataSound x1957[] = { - /* x1957[0] */ { 0, "audio/wp_hammer_hit-01.wv", }, - /* x1957[1] */ { 0, "audio/wp_hammer_hit-02.wv", }, - /* x1957[2] */ { 0, "audio/wp_hammer_hit-03.wv", }, -}; -static CDataSound x1973[] = { - /* x1973[0] */ { 0, "audio/wp_ninja_attack-01.wv", }, - /* x1973[1] */ { 0, "audio/wp_ninja_attack-02.wv", }, - /* x1973[2] */ { 0, "audio/wp_ninja_attack-03.wv", }, -}; -static CDataSound x1989[] = { - /* x1989[0] */ { 0, "audio/wp_flump_explo-01.wv", }, - /* x1989[1] */ { 0, "audio/wp_flump_explo-02.wv", }, - /* x1989[2] */ { 0, "audio/wp_flump_explo-03.wv", }, -}; -static CDataSound x2005[] = { - /* x2005[0] */ { 0, "audio/wp_ninja_hit-01.wv", }, - /* x2005[1] */ { 0, "audio/wp_ninja_hit-02.wv", }, - /* x2005[2] */ { 0, "audio/wp_ninja_hit-03.wv", }, -}; -static CDataSound x2021[] = { - /* x2021[0] */ { 0, "audio/wp_rifle_fire-01.wv", }, - /* x2021[1] */ { 0, "audio/wp_rifle_fire-02.wv", }, - /* x2021[2] */ { 0, "audio/wp_rifle_fire-03.wv", }, -}; -static CDataSound x2037[] = { - /* x2037[0] */ { 0, "audio/wp_rifle_bnce-01.wv", }, - /* x2037[1] */ { 0, "audio/wp_rifle_bnce-02.wv", }, - /* x2037[2] */ { 0, "audio/wp_rifle_bnce-03.wv", }, -}; -static CDataSound x2053[] = { - /* x2053[0] */ { 0, "audio/wp_switch-01.wv", }, - /* x2053[1] */ { 0, "audio/wp_switch-02.wv", }, - /* x2053[2] */ { 0, "audio/wp_switch-03.wv", }, -}; -static CDataSound x2069[] = { - /* x2069[0] */ { 0, "audio/vo_teefault_pain_short-01.wv", }, - /* x2069[1] */ { 0, "audio/vo_teefault_pain_short-02.wv", }, - /* x2069[2] */ { 0, "audio/vo_teefault_pain_short-03.wv", }, - /* x2069[3] */ { 0, "audio/vo_teefault_pain_short-04.wv", }, - /* x2069[4] */ { 0, "audio/vo_teefault_pain_short-05.wv", }, - /* x2069[5] */ { 0, "audio/vo_teefault_pain_short-06.wv", }, - /* x2069[6] */ { 0, "audio/vo_teefault_pain_short-07.wv", }, - /* x2069[7] */ { 0, "audio/vo_teefault_pain_short-08.wv", }, - /* x2069[8] */ { 0, "audio/vo_teefault_pain_short-09.wv", }, - /* x2069[9] */ { 0, "audio/vo_teefault_pain_short-10.wv", }, - /* x2069[10] */ { 0, "audio/vo_teefault_pain_short-11.wv", }, - /* x2069[11] */ { 0, "audio/vo_teefault_pain_short-12.wv", }, -}; -static CDataSound x2112[] = { - /* x2112[0] */ { 0, "audio/vo_teefault_pain_long-01.wv", }, - /* x2112[1] */ { 0, "audio/vo_teefault_pain_long-02.wv", }, -}; -static CDataSound x2125[] = { - /* x2125[0] */ { 0, "audio/foley_land-01.wv", }, - /* x2125[1] */ { 0, "audio/foley_land-02.wv", }, - /* x2125[2] */ { 0, "audio/foley_land-03.wv", }, - /* x2125[3] */ { 0, "audio/foley_land-04.wv", }, -}; -static CDataSound x2144[] = { - /* x2144[0] */ { 0, "audio/foley_dbljump-01.wv", }, - /* x2144[1] */ { 0, "audio/foley_dbljump-02.wv", }, - /* x2144[2] */ { 0, "audio/foley_dbljump-03.wv", }, -}; -static CDataSound x2160[] = { - /* x2160[0] */ { 0, "audio/foley_foot_left-01.wv", }, - /* x2160[1] */ { 0, "audio/foley_foot_left-02.wv", }, - /* x2160[2] */ { 0, "audio/foley_foot_left-03.wv", }, - /* x2160[3] */ { 0, "audio/foley_foot_left-04.wv", }, - /* x2160[4] */ { 0, "audio/foley_foot_right-01.wv", }, - /* x2160[5] */ { 0, "audio/foley_foot_right-02.wv", }, - /* x2160[6] */ { 0, "audio/foley_foot_right-03.wv", }, - /* x2160[7] */ { 0, "audio/foley_foot_right-04.wv", }, -}; -static CDataSound x2191[] = { - /* x2191[0] */ { 0, "audio/foley_body_splat-01.wv", }, - /* x2191[1] */ { 0, "audio/foley_body_splat-02.wv", }, - /* x2191[2] */ { 0, "audio/foley_body_splat-03.wv", }, -}; -static CDataSound x2207[] = { - /* x2207[0] */ { 0, "audio/vo_teefault_spawn-01.wv", }, - /* x2207[1] */ { 0, "audio/vo_teefault_spawn-02.wv", }, - /* x2207[2] */ { 0, "audio/vo_teefault_spawn-03.wv", }, - /* x2207[3] */ { 0, "audio/vo_teefault_spawn-04.wv", }, - /* x2207[4] */ { 0, "audio/vo_teefault_spawn-05.wv", }, - /* x2207[5] */ { 0, "audio/vo_teefault_spawn-06.wv", }, - /* x2207[6] */ { 0, "audio/vo_teefault_spawn-07.wv", }, -}; -static CDataSound x2235[] = { - /* x2235[0] */ { 0, "audio/sfx_skid-01.wv", }, - /* x2235[1] */ { 0, "audio/sfx_skid-02.wv", }, - /* x2235[2] */ { 0, "audio/sfx_skid-03.wv", }, - /* x2235[3] */ { 0, "audio/sfx_skid-04.wv", }, -}; -static CDataSound x2254[] = { - /* x2254[0] */ { 0, "audio/vo_teefault_cry-01.wv", }, - /* x2254[1] */ { 0, "audio/vo_teefault_cry-02.wv", }, -}; -static CDataSound x2267[] = { - /* x2267[0] */ { 0, "audio/hook_loop-01.wv", }, - /* x2267[1] */ { 0, "audio/hook_loop-02.wv", }, -}; -static CDataSound x2280[] = { - /* x2280[0] */ { 0, "audio/hook_attach-01.wv", }, - /* x2280[1] */ { 0, "audio/hook_attach-02.wv", }, - /* x2280[2] */ { 0, "audio/hook_attach-03.wv", }, -}; -static CDataSound x2296[] = { - /* x2296[0] */ { 0, "audio/foley_body_impact-01.wv", }, - /* x2296[1] */ { 0, "audio/foley_body_impact-02.wv", }, - /* x2296[2] */ { 0, "audio/foley_body_impact-03.wv", }, -}; -static CDataSound x2312[] = { - /* x2312[0] */ { 0, "audio/hook_noattach-01.wv", }, - /* x2312[1] */ { 0, "audio/hook_noattach-02.wv", }, -}; -static CDataSound x2325[] = { - /* x2325[0] */ { 0, "audio/sfx_pickup_hrt-01.wv", }, - /* x2325[1] */ { 0, "audio/sfx_pickup_hrt-02.wv", }, -}; -static CDataSound x2338[] = { - /* x2338[0] */ { 0, "audio/sfx_pickup_arm-01.wv", }, - /* x2338[1] */ { 0, "audio/sfx_pickup_arm-02.wv", }, - /* x2338[2] */ { 0, "audio/sfx_pickup_arm-03.wv", }, - /* x2338[3] */ { 0, "audio/sfx_pickup_arm-04.wv", }, -}; -static CDataSound x2357[] = { - /* x2357[0] */ { 0, "audio/sfx_pickup_launcher.wv", }, -}; -static CDataSound x2367[] = { - /* x2367[0] */ { 0, "audio/sfx_pickup_sg.wv", }, -}; -static CDataSound x2377[] = { - /* x2377[0] */ { 0, "audio/sfx_pickup_ninja.wv", }, -}; -static CDataSound x2387[] = { - /* x2387[0] */ { 0, "audio/sfx_spawn_wpn-01.wv", }, - /* x2387[1] */ { 0, "audio/sfx_spawn_wpn-02.wv", }, - /* x2387[2] */ { 0, "audio/sfx_spawn_wpn-03.wv", }, -}; -static CDataSound x2403[] = { - /* x2403[0] */ { 0, "audio/wp_noammo-01.wv", }, - /* x2403[1] */ { 0, "audio/wp_noammo-02.wv", }, - /* x2403[2] */ { 0, "audio/wp_noammo-03.wv", }, - /* x2403[3] */ { 0, "audio/wp_noammo-04.wv", }, - /* x2403[4] */ { 0, "audio/wp_noammo-05.wv", }, -}; -static CDataSound x2425[] = { - /* x2425[0] */ { 0, "audio/sfx_hit_weak-01.wv", }, - /* x2425[1] */ { 0, "audio/sfx_hit_weak-02.wv", }, -}; -static CDataSound x2438[] = { - /* x2438[0] */ { 0, "audio/sfx_msg-server.wv", }, -}; -static CDataSound x2448[] = { - /* x2448[0] */ { 0, "audio/sfx_msg-client.wv", }, -}; -static CDataSound x2458[] = { - /* x2458[0] */ { 0, "audio/sfx_msg-highlight.wv", }, -}; -static CDataSound x2468[] = { - /* x2468[0] */ { 0, "audio/sfx_ctf_drop.wv", }, -}; -static CDataSound x2478[] = { - /* x2478[0] */ { 0, "audio/sfx_ctf_rtn.wv", }, -}; -static CDataSound x2488[] = { - /* x2488[0] */ { 0, "audio/sfx_ctf_grab_pl.wv", }, -}; -static CDataSound x2498[] = { - /* x2498[0] */ { 0, "audio/sfx_ctf_grab_en.wv", }, -}; -static CDataSound x2508[] = { - /* x2508[0] */ { 0, "audio/sfx_ctf_cap_pl.wv", }, -}; -static CDataSound x2518[] = { - /* x2518[0] */ { 0, "audio/music_menu.wv", }, -}; -static CDataSoundset x9[] = { - /* x9[0] */ { "gun_fire", 3,x1893, -1, }, - /* x9[1] */ { "shotgun_fire", 3,x1909, -1, }, - /* x9[2] */ { "grenade_fire", 3,x1925, -1, }, - /* x9[3] */ { "hammer_fire", 3,x1941, -1, }, - /* x9[4] */ { "hammer_hit", 3,x1957, -1, }, - /* x9[5] */ { "ninja_fire", 3,x1973, -1, }, - /* x9[6] */ { "grenade_explode", 3,x1989, -1, }, - /* x9[7] */ { "ninja_hit", 3,x2005, -1, }, - /* x9[8] */ { "rifle_fire", 3,x2021, -1, }, - /* x9[9] */ { "rifle_bounce", 3,x2037, -1, }, - /* x9[10] */ { "weapon_switch", 3,x2053, -1, }, - /* x9[11] */ { "player_pain_short", 12,x2069, -1, }, - /* x9[12] */ { "player_pain_long", 2,x2112, -1, }, - /* x9[13] */ { "body_land", 4,x2125, -1, }, - /* x9[14] */ { "player_airjump", 3,x2144, -1, }, - /* x9[15] */ { "player_jump", 8,x2160, -1, }, - /* x9[16] */ { "player_die", 3,x2191, -1, }, - /* x9[17] */ { "player_spawn", 7,x2207, -1, }, - /* x9[18] */ { "player_skid", 4,x2235, -1, }, - /* x9[19] */ { "tee_cry", 2,x2254, -1, }, - /* x9[20] */ { "hook_loop", 2,x2267, -1, }, - /* x9[21] */ { "hook_attach_ground", 3,x2280, -1, }, - /* x9[22] */ { "hook_attach_player", 3,x2296, -1, }, - /* x9[23] */ { "hook_noattach", 2,x2312, -1, }, - /* x9[24] */ { "pickup_health", 2,x2325, -1, }, - /* x9[25] */ { "pickup_armor", 4,x2338, -1, }, - /* x9[26] */ { "pickup_grenade", 1,x2357, -1, }, - /* x9[27] */ { "pickup_shotgun", 1,x2367, -1, }, - /* x9[28] */ { "pickup_ninja", 1,x2377, -1, }, - /* x9[29] */ { "weapon_spawn", 3,x2387, -1, }, - /* x9[30] */ { "weapon_noammo", 5,x2403, -1, }, - /* x9[31] */ { "hit", 2,x2425, -1, }, - /* x9[32] */ { "chat_server", 1,x2438, -1, }, - /* x9[33] */ { "chat_client", 1,x2448, -1, }, - /* x9[34] */ { "chat_highlight", 1,x2458, -1, }, - /* x9[35] */ { "ctf_drop", 1,x2468, -1, }, - /* x9[36] */ { "ctf_return", 1,x2478, -1, }, - /* x9[37] */ { "ctf_grab_pl", 1,x2488, -1, }, - /* x9[38] */ { "ctf_grab_en", 1,x2498, -1, }, - /* x9[39] */ { "ctf_capture", 1,x2508, -1, }, - /* x9[40] */ { "menu", 1,x2518, -1, }, -}; -static CDataImage x14[] = { - /* x14[0] */ { "null", "", -1, }, - /* x14[1] */ { "game", "game.png", -1, }, - /* x14[2] */ { "particles", "particles.png", -1, }, - /* x14[3] */ { "cursor", "gui_cursor.png", -1, }, - /* x14[4] */ { "banner", "gui_logo.png", -1, }, - /* x14[5] */ { "emoticons", "emoticons.png", -1, }, - /* x14[6] */ { "browseicons", "browse_icons.png", -1, }, - /* x14[7] */ { "console_bg", "console.png", -1, }, - /* x14[8] */ { "console_bar", "console_bar.png", -1, }, - /* x14[9] */ { "demobuttons", "demo_buttons.png", -1, }, - /* x14[10] */ { "fileicons", "file_icons.png", -1, }, - /* x14[11] */ { "guibuttons", "gui_buttons.png", -1, }, - /* x14[12] */ { "guiicons", "gui_icons.png", -1, }, -}; -static CDataPickupspec x19[] = { - /* x19[0] */ { "health", 15, 0, }, - /* x19[1] */ { "armor", 15, 0, }, - /* x19[2] */ { "weapon", 15, 0, }, - /* x19[3] */ { "ninja", 90, 90, }, -}; -static CDataSpriteset x28[] = { - /* x28[0] */ { &x14[2], 8, 8, }, - /* x28[1] */ { &x14[1], 32, 16, }, - /* x28[2] */ { &x14[0], 8, 4, }, - /* x28[3] */ { &x14[6], 4, 1, }, - /* x28[4] */ { &x14[5], 4, 4, }, - /* x28[5] */ { &x14[9], 5, 1, }, - /* x28[6] */ { &x14[10], 8, 1, }, - /* x28[7] */ { &x14[11], 12, 4, }, - /* x28[8] */ { &x14[12], 8, 2, }, -}; -static CDataSprite x44[] = { - /* x44[0] */ { "part_slice", &x28[0], 0, 0, 1, 1, }, - /* x44[1] */ { "part_ball", &x28[0], 1, 0, 1, 1, }, - /* x44[2] */ { "part_splat01", &x28[0], 2, 0, 1, 1, }, - /* x44[3] */ { "part_splat02", &x28[0], 3, 0, 1, 1, }, - /* x44[4] */ { "part_splat03", &x28[0], 4, 0, 1, 1, }, - /* x44[5] */ { "part_smoke", &x28[0], 0, 1, 1, 1, }, - /* x44[6] */ { "part_shell", &x28[0], 0, 2, 2, 2, }, - /* x44[7] */ { "part_expl01", &x28[0], 0, 4, 4, 4, }, - /* x44[8] */ { "part_airjump", &x28[0], 2, 2, 2, 2, }, - /* x44[9] */ { "part_hit01", &x28[0], 4, 1, 2, 2, }, - /* x44[10] */ { "health_full", &x28[1], 21, 0, 2, 2, }, - /* x44[11] */ { "health_empty", &x28[1], 23, 0, 2, 2, }, - /* x44[12] */ { "armor_full", &x28[1], 21, 2, 2, 2, }, - /* x44[13] */ { "armor_empty", &x28[1], 23, 2, 2, 2, }, - /* x44[14] */ { "star1", &x28[1], 15, 0, 2, 2, }, - /* x44[15] */ { "star2", &x28[1], 17, 0, 2, 2, }, - /* x44[16] */ { "star3", &x28[1], 19, 0, 2, 2, }, - /* x44[17] */ { "part1", &x28[1], 6, 0, 1, 1, }, - /* x44[18] */ { "part2", &x28[1], 6, 1, 1, 1, }, - /* x44[19] */ { "part3", &x28[1], 7, 0, 1, 1, }, - /* x44[20] */ { "part4", &x28[1], 7, 1, 1, 1, }, - /* x44[21] */ { "part5", &x28[1], 8, 0, 1, 1, }, - /* x44[22] */ { "part6", &x28[1], 8, 1, 1, 1, }, - /* x44[23] */ { "part7", &x28[1], 9, 0, 2, 2, }, - /* x44[24] */ { "part8", &x28[1], 11, 0, 2, 2, }, - /* x44[25] */ { "part9", &x28[1], 13, 0, 2, 2, }, - /* x44[26] */ { "weapon_gun_body", &x28[1], 2, 4, 4, 2, }, - /* x44[27] */ { "weapon_gun_cursor", &x28[1], 0, 4, 2, 2, }, - /* x44[28] */ { "weapon_gun_proj", &x28[1], 6, 4, 2, 2, }, - /* x44[29] */ { "weapon_gun_muzzle1", &x28[1], 8, 4, 3, 2, }, - /* x44[30] */ { "weapon_gun_muzzle2", &x28[1], 12, 4, 3, 2, }, - /* x44[31] */ { "weapon_gun_muzzle3", &x28[1], 16, 4, 3, 2, }, - /* x44[32] */ { "weapon_shotgun_body", &x28[1], 2, 6, 8, 2, }, - /* x44[33] */ { "weapon_shotgun_cursor", &x28[1], 0, 6, 2, 2, }, - /* x44[34] */ { "weapon_shotgun_proj", &x28[1], 10, 6, 2, 2, }, - /* x44[35] */ { "weapon_shotgun_muzzle1", &x28[1], 12, 6, 3, 2, }, - /* x44[36] */ { "weapon_shotgun_muzzle2", &x28[1], 16, 6, 3, 2, }, - /* x44[37] */ { "weapon_shotgun_muzzle3", &x28[1], 20, 6, 3, 2, }, - /* x44[38] */ { "weapon_grenade_body", &x28[1], 2, 8, 7, 2, }, - /* x44[39] */ { "weapon_grenade_cursor", &x28[1], 0, 8, 2, 2, }, - /* x44[40] */ { "weapon_grenade_proj", &x28[1], 10, 8, 2, 2, }, - /* x44[41] */ { "weapon_hammer_body", &x28[1], 2, 1, 4, 3, }, - /* x44[42] */ { "weapon_hammer_cursor", &x28[1], 0, 0, 2, 2, }, - /* x44[43] */ { "weapon_hammer_proj", &x28[1], 0, 0, 0, 0, }, - /* x44[44] */ { "weapon_ninja_body", &x28[1], 2, 10, 8, 2, }, - /* x44[45] */ { "weapon_ninja_cursor", &x28[1], 0, 10, 2, 2, }, - /* x44[46] */ { "weapon_ninja_proj", &x28[1], 0, 0, 0, 0, }, - /* x44[47] */ { "weapon_rifle_body", &x28[1], 2, 12, 7, 3, }, - /* x44[48] */ { "weapon_rifle_cursor", &x28[1], 0, 12, 2, 2, }, - /* x44[49] */ { "weapon_rifle_proj", &x28[1], 10, 12, 2, 2, }, - /* x44[50] */ { "hook_chain", &x28[1], 2, 0, 1, 1, }, - /* x44[51] */ { "hook_head", &x28[1], 3, 0, 2, 1, }, - /* x44[52] */ { "weapon_ninja_muzzle1", &x28[1], 25, 0, 7, 4, }, - /* x44[53] */ { "weapon_ninja_muzzle2", &x28[1], 25, 4, 7, 4, }, - /* x44[54] */ { "weapon_ninja_muzzle3", &x28[1], 25, 8, 7, 4, }, - /* x44[55] */ { "pickup_health", &x28[1], 10, 2, 2, 2, }, - /* x44[56] */ { "pickup_armor", &x28[1], 12, 2, 2, 2, }, - /* x44[57] */ { "pickup_weapon", &x28[1], 3, 0, 6, 2, }, - /* x44[58] */ { "pickup_ninja", &x28[1], 2, 10, 8, 2, }, - /* x44[59] */ { "flag_blue", &x28[1], 12, 8, 4, 8, }, - /* x44[60] */ { "flag_red", &x28[1], 16, 8, 4, 8, }, - /* x44[61] */ { "tee_body", &x28[2], 0, 0, 3, 3, }, - /* x44[62] */ { "tee_body_outline", &x28[2], 3, 0, 3, 3, }, - /* x44[63] */ { "tee_foot", &x28[2], 6, 1, 2, 1, }, - /* x44[64] */ { "tee_foot_outline", &x28[2], 6, 2, 2, 1, }, - /* x44[65] */ { "tee_hand", &x28[2], 6, 0, 1, 1, }, - /* x44[66] */ { "tee_hand_outline", &x28[2], 7, 0, 1, 1, }, - /* x44[67] */ { "tee_eye_normal", &x28[2], 2, 3, 1, 1, }, - /* x44[68] */ { "tee_eye_angry", &x28[2], 3, 3, 1, 1, }, - /* x44[69] */ { "tee_eye_pain", &x28[2], 4, 3, 1, 1, }, - /* x44[70] */ { "tee_eye_happy", &x28[2], 5, 3, 1, 1, }, - /* x44[71] */ { "tee_eye_dead", &x28[2], 6, 3, 1, 1, }, - /* x44[72] */ { "tee_eye_surprise", &x28[2], 7, 3, 1, 1, }, - /* x44[73] */ { "oop", &x28[4], 0, 0, 1, 1, }, - /* x44[74] */ { "exclamation", &x28[4], 1, 0, 1, 1, }, - /* x44[75] */ { "hearts", &x28[4], 2, 0, 1, 1, }, - /* x44[76] */ { "drop", &x28[4], 3, 0, 1, 1, }, - /* x44[77] */ { "dotdot", &x28[4], 0, 1, 1, 1, }, - /* x44[78] */ { "music", &x28[4], 1, 1, 1, 1, }, - /* x44[79] */ { "sorry", &x28[4], 2, 1, 1, 1, }, - /* x44[80] */ { "ghost", &x28[4], 3, 1, 1, 1, }, - /* x44[81] */ { "sushi", &x28[4], 0, 2, 1, 1, }, - /* x44[82] */ { "splattee", &x28[4], 1, 2, 1, 1, }, - /* x44[83] */ { "deviltee", &x28[4], 2, 2, 1, 1, }, - /* x44[84] */ { "zomg", &x28[4], 3, 2, 1, 1, }, - /* x44[85] */ { "zzz", &x28[4], 0, 3, 1, 1, }, - /* x44[86] */ { "wtf", &x28[4], 1, 3, 1, 1, }, - /* x44[87] */ { "eyes", &x28[4], 2, 3, 1, 1, }, - /* x44[88] */ { "question", &x28[4], 3, 3, 1, 1, }, - /* x44[89] */ { "browse_lock", &x28[3], 0, 0, 1, 1, }, - /* x44[90] */ { "browse_heart", &x28[3], 1, 0, 1, 1, }, - /* x44[91] */ { "browse_unpure", &x28[3], 3, 0, 1, 1, }, - /* x44[92] */ { "demobutton_play", &x28[5], 0, 0, 1, 1, }, - /* x44[93] */ { "demobutton_pause", &x28[5], 1, 0, 1, 1, }, - /* x44[94] */ { "demobutton_stop", &x28[5], 2, 0, 1, 1, }, - /* x44[95] */ { "demobutton_slower", &x28[5], 3, 0, 1, 1, }, - /* x44[96] */ { "demobutton_faster", &x28[5], 4, 0, 1, 1, }, - /* x44[97] */ { "file_demo1", &x28[6], 0, 0, 1, 1, }, - /* x44[98] */ { "file_demo2", &x28[6], 1, 0, 1, 1, }, - /* x44[99] */ { "file_folder", &x28[6], 2, 0, 1, 1, }, - /* x44[100] */ { "file_map1", &x28[6], 5, 0, 1, 1, }, - /* x44[101] */ { "file_map2", &x28[6], 6, 0, 1, 1, }, - /* x44[102] */ { "guibutton_off", &x28[7], 0, 0, 4, 4, }, - /* x44[103] */ { "guibutton_on", &x28[7], 4, 0, 4, 4, }, - /* x44[104] */ { "guibutton_hover", &x28[7], 8, 0, 4, 4, }, - /* x44[105] */ { "guiicon_mute", &x28[8], 0, 0, 4, 2, }, - /* x44[106] */ { "guiicon_friend", &x28[8], 4, 0, 4, 2, }, -}; -static CAnimKeyframe x4276[] = { - /* x4276[0] */ { 0.000000, 0.000000, -4.000000, 0.000000, }, -}; -static CAnimKeyframe x4283[] = { - /* x4283[0] */ { 0.000000, 0.000000, 10.000000, 0.000000, }, -}; -static CAnimKeyframe x4290[] = { - /* x4290[0] */ { 0.000000, 0.000000, 10.000000, 0.000000, }, -}; -static CAnimKeyframe *x4297 = 0; -static CAnimKeyframe *x4321 = 0; -static CAnimKeyframe x4328[] = { - /* x4328[0] */ { 0.000000, -7.000000, 0.000000, 0.000000, }, -}; -static CAnimKeyframe x4335[] = { - /* x4335[0] */ { 0.000000, 7.000000, 0.000000, 0.000000, }, -}; -static CAnimKeyframe *x4342 = 0; -static CAnimKeyframe *x4361 = 0; -static CAnimKeyframe x4368[] = { - /* x4368[0] */ { 0.000000, -3.000000, 0.000000, -0.100000, }, -}; -static CAnimKeyframe x4375[] = { - /* x4375[0] */ { 0.000000, 3.000000, 0.000000, -0.100000, }, -}; -static CAnimKeyframe *x4382 = 0; -static CAnimKeyframe x4401[] = { - /* x4401[0] */ { 0.000000, 0.000000, 0.000000, 0.000000, }, - /* x4401[1] */ { 0.200000, 0.000000, -1.000000, 0.000000, }, - /* x4401[2] */ { 0.400000, 0.000000, 0.000000, 0.000000, }, - /* x4401[3] */ { 0.600000, 0.000000, 0.000000, 0.000000, }, - /* x4401[4] */ { 0.800000, 0.000000, -1.000000, 0.000000, }, - /* x4401[5] */ { 1.000000, 0.000000, 0.000000, 0.000000, }, -}; -static CAnimKeyframe x4408[] = { - /* x4408[0] */ { 0.000000, 8.000000, 0.000000, 0.000000, }, - /* x4408[1] */ { 0.200000, -8.000000, 0.000000, 0.000000, }, - /* x4408[2] */ { 0.400000, -10.000000, -4.000000, 0.200000, }, - /* x4408[3] */ { 0.600000, -8.000000, -8.000000, 0.300000, }, - /* x4408[4] */ { 0.800000, 4.000000, -4.000000, -0.200000, }, - /* x4408[5] */ { 1.000000, 8.000000, 0.000000, 0.000000, }, -}; -static CAnimKeyframe x4415[] = { - /* x4415[0] */ { 0.000000, -10.000000, -4.000000, 0.200000, }, - /* x4415[1] */ { 0.200000, -8.000000, -8.000000, 0.300000, }, - /* x4415[2] */ { 0.400000, 4.000000, -4.000000, -0.200000, }, - /* x4415[3] */ { 0.600000, 8.000000, 0.000000, 0.000000, }, - /* x4415[4] */ { 0.800000, 8.000000, 0.000000, 0.000000, }, - /* x4415[5] */ { 1.000000, -10.000000, -4.000000, 0.200000, }, -}; -static CAnimKeyframe *x4422 = 0; -static CAnimKeyframe *x4521 = 0; -static CAnimKeyframe *x4528 = 0; -static CAnimKeyframe *x4535 = 0; -static CAnimKeyframe x4542[] = { - /* x4542[0] */ { 0.000000, 0.000000, 0.000000, -0.100000, }, - /* x4542[1] */ { 0.300000, 0.000000, 0.000000, 0.250000, }, - /* x4542[2] */ { 0.400000, 0.000000, 0.000000, 0.300000, }, - /* x4542[3] */ { 0.500000, 0.000000, 0.000000, 0.250000, }, - /* x4542[4] */ { 1.000000, 0.000000, 0.000000, -0.100000, }, -}; -static CAnimKeyframe *x4576 = 0; -static CAnimKeyframe *x4583 = 0; -static CAnimKeyframe *x4590 = 0; -static CAnimKeyframe x4597[] = { - /* x4597[0] */ { 0.000000, 0.000000, 0.000000, -0.250000, }, - /* x4597[1] */ { 0.100000, 0.000000, 0.000000, -0.050000, }, - /* x4597[2] */ { 0.150000, 0.000000, 0.000000, 0.350000, }, - /* x4597[3] */ { 0.420000, 0.000000, 0.000000, 0.400000, }, - /* x4597[4] */ { 0.500000, 0.000000, 0.000000, 0.350000, }, - /* x4597[5] */ { 1.000000, 0.000000, 0.000000, -0.250000, }, -}; -static CAnimation x75[] = { - /* x75[0] */ { "base", /* x75[0].body */ { 1,x4276, }, /* x75[0].back_foot */ { 1,x4283, }, /* x75[0].front_foot */ { 1,x4290, }, /* x75[0].attach */ { 0,x4297, }, }, - /* x75[1] */ { "idle", /* x75[1].body */ { 0,x4321, }, /* x75[1].back_foot */ { 1,x4328, }, /* x75[1].front_foot */ { 1,x4335, }, /* x75[1].attach */ { 0,x4342, }, }, - /* x75[2] */ { "inair", /* x75[2].body */ { 0,x4361, }, /* x75[2].back_foot */ { 1,x4368, }, /* x75[2].front_foot */ { 1,x4375, }, /* x75[2].attach */ { 0,x4382, }, }, - /* x75[3] */ { "walk", /* x75[3].body */ { 6,x4401, }, /* x75[3].back_foot */ { 6,x4408, }, /* x75[3].front_foot */ { 6,x4415, }, /* x75[3].attach */ { 0,x4422, }, }, - /* x75[4] */ { "hammer_swing", /* x75[4].body */ { 0,x4521, }, /* x75[4].back_foot */ { 0,x4528, }, /* x75[4].front_foot */ { 0,x4535, }, /* x75[4].attach */ { 5,x4542, }, }, - /* x75[5] */ { "ninja_swing", /* x75[5].body */ { 0,x4576, }, /* x75[5].back_foot */ { 0,x4583, }, /* x75[5].front_foot */ { 0,x4590, }, /* x75[5].attach */ { 6,x4597, }, }, -}; -static CDataSprite* *x4754 = 0; -static CDataSprite* x4891[] = { - &x44[29], - &x44[30], - &x44[31], -}; -static CDataSprite* x5076[] = { - &x44[35], - &x44[36], - &x44[37], -}; -static CDataSprite* *x5261 = 0; -static CDataSprite* *x5398 = 0; -static CDataSprite* x5535[] = { - &x44[52], - &x44[53], - &x44[54], -}; -static CDataWeaponspec x1887[] = { - /* x1887[0] */ { "hammer", &x44[41], &x44[42], &x44[43], 0,x4754, 96, 125, 10, 0, 3, 4.000000, -20.000000, 0.000000, 0.000000, 5.000000, }, - /* x1887[1] */ { "gun", &x44[26], &x44[27], &x44[28], 3,x4891, 64, 125, 10, 500, 1, 32.000000, 4.000000, 50.000000, 6.000000, 5.000000, }, - /* x1887[2] */ { "shotgun", &x44[32], &x44[33], &x44[34], 3,x5076, 96, 500, 10, 0, 1, 24.000000, -2.000000, 70.000000, 6.000000, 5.000000, }, - /* x1887[3] */ { "grenade", &x44[38], &x44[39], &x44[40], 0,x5261, 96, 500, 10, 0, 1, 24.000000, -2.000000, 0.000000, 0.000000, 5.000000, }, - /* x1887[4] */ { "rifle", &x44[47], &x44[48], &x44[49], 0,x5398, 92, 800, 10, 0, 5, 24.000000, -2.000000, 0.000000, 0.000000, 5.000000, }, - /* x1887[5] */ { "ninja", &x44[44], &x44[45], &x44[46], 3,x5535, 96, 800, 10, 0, 9, 0.000000, 0.000000, 40.000000, -4.000000, 5.000000, }, -}; -CDataContainer datacontainer = -/* datacontainer */ { - 41,x9, - 13,x14, - 4,x19, - 9,x28, - 107,x44, - 6,x75, - /* datacontainer.weapons */ { /* datacontainer.weapons.hammer */ { &x1887[0], }, /* datacontainer.weapons.gun */ { &x1887[1], 1.250000, 2200.000000, 2.000000, }, /* datacontainer.weapons.shotgun */ { &x1887[2], 1.250000, 2200.000000, 0.800000, 0.250000, }, /* datacontainer.weapons.grenade */ { &x1887[3], 7.000000, 1000.000000, 2.000000, }, /* datacontainer.weapons.rifle */ { &x1887[4], 800.000000, 150, 1, 0.000000, }, /* datacontainer.weapons.ninja */ { &x1887[5], 15000, 200, 50, }, 6,x1887, }, -} -; -CDataContainer *g_pData = &datacontainer; diff --git a/src/game/generated/server_data.h b/src/game/generated/server_data.h deleted file mode 100644 index daf89f117..000000000 --- a/src/game/generated/server_data.h +++ /dev/null @@ -1,288 +0,0 @@ -#ifndef SERVER_CONTENT_HEADER -#define SERVER_CONTENT_HEADER -struct CDataSound -{ - int m_Id; - const char* m_pFilename; -}; -struct CDataSoundset -{ - const char* m_pName; - int m_NumSounds; - CDataSound *m_aSounds; - int m_Last; -}; -struct CDataImage -{ - const char* m_pName; - const char* m_pFilename; - int m_Id; -}; -struct CDataSpriteset -{ - CDataImage* m_pImage; - int m_Gridx; - int m_Gridy; -}; -struct CDataSprite -{ - const char* m_pName; - CDataSpriteset* m_pSet; - int m_X; - int m_Y; - int m_W; - int m_H; -}; -struct CDataPickupspec -{ - const char* m_pName; - int m_Respawntime; - int m_Spawndelay; -}; -struct CAnimKeyframe -{ - float m_Time; - float m_X; - float m_Y; - float m_Angle; -}; -struct CAnimSequence -{ - int m_NumFrames; - CAnimKeyframe *m_aFrames; -}; -struct CAnimation -{ - const char* m_pName; - CAnimSequence m_Body; - CAnimSequence m_BackFoot; - CAnimSequence m_FrontFoot; - CAnimSequence m_Attach; -}; -struct CDataWeaponspec -{ - const char* m_pName; - CDataSprite* m_pSpriteBody; - CDataSprite* m_pSpriteCursor; - CDataSprite* m_pSpriteProj; - int m_NumSpriteMuzzles; - CDataSprite* *m_aSpriteMuzzles; - int m_VisualSize; - int m_Firedelay; - int m_Maxammo; - int m_Ammoregentime; - int m_Damage; - float m_Offsetx; - float m_Offsety; - float m_Muzzleoffsetx; - float m_Muzzleoffsety; - float m_Muzzleduration; -}; -struct CDataWeaponspecHammer -{ - CDataWeaponspec* m_pBase; -}; -struct CDataWeaponspecGun -{ - CDataWeaponspec* m_pBase; - float m_Curvature; - float m_Speed; - float m_Lifetime; -}; -struct CDataWeaponspecShotgun -{ - CDataWeaponspec* m_pBase; - float m_Curvature; - float m_Speed; - float m_Speeddiff; - float m_Lifetime; -}; -struct CDataWeaponspecGrenade -{ - CDataWeaponspec* m_pBase; - float m_Curvature; - float m_Speed; - float m_Lifetime; -}; -struct CDataWeaponspecRifle -{ - CDataWeaponspec* m_pBase; - float m_Reach; - int m_BounceDelay; - int m_BounceNum; - float m_BounceCost; -}; -struct CDataWeaponspecNinja -{ - CDataWeaponspec* m_pBase; - int m_Duration; - int m_Movetime; - int m_Velocity; -}; -struct CDataWeaponspecs -{ - CDataWeaponspecHammer m_Hammer; - CDataWeaponspecGun m_Gun; - CDataWeaponspecShotgun m_Shotgun; - CDataWeaponspecGrenade m_Grenade; - CDataWeaponspecRifle m_Rifle; - CDataWeaponspecNinja m_Ninja; - int m_NumId; - CDataWeaponspec *m_aId; -}; -struct CDataContainer -{ - int m_NumSounds; - CDataSoundset *m_aSounds; - int m_NumImages; - CDataImage *m_aImages; - int m_NumPickups; - CDataPickupspec *m_aPickups; - int m_NumSpritesets; - CDataSpriteset *m_aSpritesets; - int m_NumSprites; - CDataSprite *m_aSprites; - int m_NumAnimations; - CAnimation *m_aAnimations; - CDataWeaponspecs m_Weapons; -}; -extern CDataContainer *g_pData; -enum -{ - IMAGE_NULL=0, - IMAGE_GAME, - IMAGE_PARTICLES, - IMAGE_CURSOR, - IMAGE_BANNER, - IMAGE_EMOTICONS, - IMAGE_BROWSEICONS, - IMAGE_CONSOLE_BG, - IMAGE_CONSOLE_BAR, - IMAGE_DEMOBUTTONS, - IMAGE_FILEICONS, - IMAGE_GUIBUTTONS, - IMAGE_GUIICONS, - NUM_IMAGES -}; -enum -{ - ANIM_BASE=0, - ANIM_IDLE, - ANIM_INAIR, - ANIM_WALK, - ANIM_HAMMER_SWING, - ANIM_NINJA_SWING, - NUM_ANIMS -}; -enum -{ - SPRITE_PART_SLICE=0, - SPRITE_PART_BALL, - SPRITE_PART_SPLAT01, - SPRITE_PART_SPLAT02, - SPRITE_PART_SPLAT03, - SPRITE_PART_SMOKE, - SPRITE_PART_SHELL, - SPRITE_PART_EXPL01, - SPRITE_PART_AIRJUMP, - SPRITE_PART_HIT01, - SPRITE_HEALTH_FULL, - SPRITE_HEALTH_EMPTY, - SPRITE_ARMOR_FULL, - SPRITE_ARMOR_EMPTY, - SPRITE_STAR1, - SPRITE_STAR2, - SPRITE_STAR3, - SPRITE_PART1, - SPRITE_PART2, - SPRITE_PART3, - SPRITE_PART4, - SPRITE_PART5, - SPRITE_PART6, - SPRITE_PART7, - SPRITE_PART8, - SPRITE_PART9, - SPRITE_WEAPON_GUN_BODY, - SPRITE_WEAPON_GUN_CURSOR, - SPRITE_WEAPON_GUN_PROJ, - SPRITE_WEAPON_GUN_MUZZLE1, - SPRITE_WEAPON_GUN_MUZZLE2, - SPRITE_WEAPON_GUN_MUZZLE3, - SPRITE_WEAPON_SHOTGUN_BODY, - SPRITE_WEAPON_SHOTGUN_CURSOR, - SPRITE_WEAPON_SHOTGUN_PROJ, - SPRITE_WEAPON_SHOTGUN_MUZZLE1, - SPRITE_WEAPON_SHOTGUN_MUZZLE2, - SPRITE_WEAPON_SHOTGUN_MUZZLE3, - SPRITE_WEAPON_GRENADE_BODY, - SPRITE_WEAPON_GRENADE_CURSOR, - SPRITE_WEAPON_GRENADE_PROJ, - SPRITE_WEAPON_HAMMER_BODY, - SPRITE_WEAPON_HAMMER_CURSOR, - SPRITE_WEAPON_HAMMER_PROJ, - SPRITE_WEAPON_NINJA_BODY, - SPRITE_WEAPON_NINJA_CURSOR, - SPRITE_WEAPON_NINJA_PROJ, - SPRITE_WEAPON_RIFLE_BODY, - SPRITE_WEAPON_RIFLE_CURSOR, - SPRITE_WEAPON_RIFLE_PROJ, - SPRITE_HOOK_CHAIN, - SPRITE_HOOK_HEAD, - SPRITE_WEAPON_NINJA_MUZZLE1, - SPRITE_WEAPON_NINJA_MUZZLE2, - SPRITE_WEAPON_NINJA_MUZZLE3, - SPRITE_PICKUP_HEALTH, - SPRITE_PICKUP_ARMOR, - SPRITE_PICKUP_WEAPON, - SPRITE_PICKUP_NINJA, - SPRITE_FLAG_BLUE, - SPRITE_FLAG_RED, - SPRITE_TEE_BODY, - SPRITE_TEE_BODY_OUTLINE, - SPRITE_TEE_FOOT, - SPRITE_TEE_FOOT_OUTLINE, - SPRITE_TEE_HAND, - SPRITE_TEE_HAND_OUTLINE, - SPRITE_TEE_EYE_NORMAL, - SPRITE_TEE_EYE_ANGRY, - SPRITE_TEE_EYE_PAIN, - SPRITE_TEE_EYE_HAPPY, - SPRITE_TEE_EYE_DEAD, - SPRITE_TEE_EYE_SURPRISE, - SPRITE_OOP, - SPRITE_EXCLAMATION, - SPRITE_HEARTS, - SPRITE_DROP, - SPRITE_DOTDOT, - SPRITE_MUSIC, - SPRITE_SORRY, - SPRITE_GHOST, - SPRITE_SUSHI, - SPRITE_SPLATTEE, - SPRITE_DEVILTEE, - SPRITE_ZOMG, - SPRITE_ZZZ, - SPRITE_WTF, - SPRITE_EYES, - SPRITE_QUESTION, - SPRITE_BROWSE_LOCK, - SPRITE_BROWSE_HEART, - SPRITE_BROWSE_UNPURE, - SPRITE_DEMOBUTTON_PLAY, - SPRITE_DEMOBUTTON_PAUSE, - SPRITE_DEMOBUTTON_STOP, - SPRITE_DEMOBUTTON_SLOWER, - SPRITE_DEMOBUTTON_FASTER, - SPRITE_FILE_DEMO1, - SPRITE_FILE_DEMO2, - SPRITE_FILE_FOLDER, - SPRITE_FILE_MAP1, - SPRITE_FILE_MAP2, - SPRITE_GUIBUTTON_OFF, - SPRITE_GUIBUTTON_ON, - SPRITE_GUIBUTTON_HOVER, - SPRITE_GUIICON_MUTE, - SPRITE_GUIICON_FRIEND, - NUM_SPRITES -}; -#endif