// ================== // HIRE MENU // ================== menu employees { // ================== // don't render // ================== zone render { invis false } // ================== // background // ================== pic back_ul { image menu/empl_ul pos "0 0" } pic back_ur { image menu/empl_ur pos "512 0" } pic back_ll { image menu/empl_ll pos "0 512" } pic back_lr { image menu/empl_lr pos "512 512" } // ================== // names list // ================== func employee_clear { *bt_employee0 image hud/buttons1 *bt_employee1 image hud/buttons1 *bt_employee2 image hud/buttons1 *bt_employee3 image hud/buttons1 *bt_employee4 image hud/buttons1 *bt_employee5 image hud/buttons1 *bt_employee6 image hud/buttons1 *bt_employee7 image hud/buttons1 *bt_employee8 image hud/buttons1 *bt_employee9 image hud/buttons1 *bt_employee10 image hud/buttons1 *bt_employee11 image hud/buttons1 *bt_employee12 image hud/buttons1 *bt_employee13 image hud/buttons1 *bt_employee14 image hud/buttons1 *bt_employee15 image hud/buttons1 *bt_employee16 image hud/buttons1 *bt_employee17 image hud/buttons1 *bt_employee18 image hud/buttons1 } confunc employeedel0 { *bt_employee0 image hud/buttons1 } confunc employeedel1 { *bt_employee1 image hud/buttons1 } confunc employeedel2 { *bt_employee2 image hud/buttons1 } confunc employeedel3 { *bt_employee3 image hud/buttons1 } confunc employeedel4 { *bt_employee4 image hud/buttons1 } confunc employeedel5 { *bt_employee5 image hud/buttons1 } confunc employeedel6 { *bt_employee6 image hud/buttons1 } confunc employeedel7 { *bt_employee7 image hud/buttons1 } confunc employeedel8 { *bt_employee8 image hud/buttons1 } confunc employeedel9 { *bt_employee9 image hud/buttons1 } confunc employeedel10 { *bt_employee10 image hud/buttons1 } confunc employeedel11 { *bt_employee11 image hud/buttons1 } confunc employeedel12 { *bt_employee12 image hud/buttons1 } confunc employeedel13 { *bt_employee13 image hud/buttons1 } confunc employeedel14 { *bt_employee14 image hud/buttons1 } confunc employeedel15 { *bt_employee15 image hud/buttons1 } confunc employeedel16 { *bt_employee16 image hud/buttons1 } confunc employeedel17 { *bt_employee17 image hud/buttons1 } confunc employeedel18 { *bt_employee18 image hud/buttons1 } confunc employeeadd0 { *bt_employee0 image hud/buttons1a } confunc employeeadd1 { *bt_employee1 image hud/buttons1a } confunc employeeadd2 { *bt_employee2 image hud/buttons1a } confunc employeeadd3 { *bt_employee3 image hud/buttons1a } confunc employeeadd4 { *bt_employee4 image hud/buttons1a } confunc employeeadd5 { *bt_employee5 image hud/buttons1a } confunc employeeadd6 { *bt_employee6 image hud/buttons1a } confunc employeeadd7 { *bt_employee7 image hud/buttons1a } confunc employeeadd8 { *bt_employee8 image hud/buttons1a } confunc employeeadd9 { *bt_employee9 image hud/buttons1a } confunc employeeadd10 { *bt_employee10 image hud/buttons1a } confunc employeeadd11 { *bt_employee11 image hud/buttons1a } confunc employeeadd12 { *bt_employee12 image hud/buttons1a } confunc employeeadd13 { *bt_employee13 image hud/buttons1a } confunc employeeadd14 { *bt_employee14 image hud/buttons1a } confunc employeeadd15 { *bt_employee15 image hud/buttons1a } confunc employeeadd16 { *bt_employee16 image hud/buttons1a } confunc employeeadd17 { *bt_employee17 image hud/buttons1a } confunc employeeadd18 { *bt_employee18 image hud/buttons1a } confunc employeedisable0 { *bt_employee0 image hud/buttons1g } confunc employeedisable1 { *bt_employee1 image hud/buttons1g } confunc employeedisable2 { *bt_employee2 image hud/buttons1g } confunc employeedisable3 { *bt_employee3 image hud/buttons1g } confunc employeedisable4 { *bt_employee4 image hud/buttons1g } confunc employeedisable5 { *bt_employee5 image hud/buttons1g } confunc employeedisable6 { *bt_employee6 image hud/buttons1g } confunc employeedisable7 { *bt_employee7 image hud/buttons1g } confunc employeedisable8 { *bt_employee8 image hud/buttons1g } confunc employeedisable9 { *bt_employee9 image hud/buttons1g } confunc employeedisable10 { *bt_employee10 image hud/buttons1g } confunc employeedisable11 { *bt_employee11 image hud/buttons1g } confunc employeedisable12 { *bt_employee12 image hud/buttons1g } confunc employeedisable13 { *bt_employee13 image hud/buttons1g } confunc employeedisable14 { *bt_employee14 image hud/buttons1g } confunc employeedisable15 { *bt_employee15 image hud/buttons1g } confunc employeedisable16 { *bt_employee16 image hud/buttons1g } confunc employeedisable17 { *bt_employee17 image hud/buttons1g } confunc employeedisable18 { *bt_employee18 image hud/buttons1g } pic bt_employee0 { tooltip "_Hire/Unhire" pos "365 22" texl "154 76" texh "207 113" mousefx true click { cmd "employee_hire 0" } } pic bt_employee1 { tooltip "_Hire/Unhire" pos "365 60" texl "154 76" texh "207 113" mousefx true click { cmd "employee_hire 1" } } pic bt_employee2 { tooltip "_Hire/Unhire" pos "365 98" texl "154 76" texh "207 113" mousefx true click { cmd "employee_hire 2" } } pic bt_employee3 { tooltip "_Hire/Unhire" pos "365 136" texl "154 76" texh "207 113" mousefx true click { cmd "employee_hire 3" } } pic bt_employee4 { tooltip "_Hire/Unhire" pos "365 174" texl "154 76" texh "207 113" mousefx true click { cmd "employee_hire 4" } } pic bt_employee5 { tooltip "_Hire/Unhire" pos "365 212" texl "154 76" texh "207 113" mousefx true click { cmd "employee_hire 5" } } pic bt_employee6 { tooltip "_Hire/Unhire" pos "365 250" texl "154 76" texh "207 113" mousefx true click { cmd "employee_hire 6" } } pic bt_employee7 { tooltip "_Hire/Unhire" pos "365 288" texl "154 76" texh "207 113" mousefx true click { cmd "employee_hire 7" } } pic bt_employee8 { tooltip "_Hire/Unhire" pos "365 326" texl "154 76" texh "207 113" mousefx true click { cmd "employee_hire 8" } } pic bt_employee9 { tooltip "_Hire/Unhire" pos "365 364" texl "154 76" texh "207 113" mousefx true click { cmd "employee_hire 9" } } pic bt_employee10 { tooltip "_Hire/Unhire" pos "365 402" texl "154 76" texh "207 113" mousefx true click { cmd "employee_hire 10" } } pic bt_employee11 { tooltip "_Hire/Unhire" pos "365 440" texl "154 76" texh "207 113" mousefx true click { cmd "employee_hire 11" } } pic bt_employee12 { tooltip "_Hire/Unhire" pos "365 478" texl "154 76" texh "207 113" mousefx true click { cmd "employee_hire 12" } } pic bt_employee13 { tooltip "_Hire/Unhire" pos "365 516" texl "154 76" texh "207 113" mousefx true click { cmd "employee_hire 13" } } pic bt_employee14 { tooltip "_Hire/Unhire" pos "365 554" texl "154 76" texh "207 113" mousefx true click { cmd "employee_hire 14" } } pic bt_employee15 { tooltip "_Hire/Unhire" pos "365 592" texl "154 76" texh "207 113" mousefx true click { cmd "employee_hire 15" } } pic bt_employee16 { tooltip "_Hire/Unhire" pos "365 630" texl "154 76" texh "207 113" mousefx true click { cmd "employee_hire 16" } } pic bt_employee17 { tooltip "_Hire/Unhire" pos "365 668" texl "154 76" texh "207 113" mousefx true click { cmd "employee_hire 17" } } pic bt_employee18 { tooltip "_Hire/Unhire" pos "365 706" texl "154 76" texh "207 113" mousefx true click { cmd "employee_hire 18" } } text employee_list { height "19" format "38 100" color "0 .78 0 1" mousefx true pos "50 32" size "290 702" num 1 // bgcolor "1 1 1 0.5" click wheel { cmd "employee_scroll" } } // ================== // actor info // ================== string name { if "mn_show_employee == 1" string "*cvar mn_name" pos "475 17" } confunc mn_name_changed { *name mousefx false cmd "team_changename" } pic bt_edit { if "mn_employee_hired == 1" tooltip "_Rename your employee" image menu/buttons_small pos "875 17" texl "0 48" texh "16 64" click { cmd "msgmenu ?mn_name" *name mousefx true } } model body { if "mn_show_employee == 1" md2 "*cvar mn_body" skin "*cvar mn_skin" anim "stand2" origin "580 215 0" angles "0 70 90" scale "6.7 6.7 6.7" color "0.5 0.5 0.5 1" } model head { if "mn_show_employee == 1" md2 "*cvar mn_head" skin "*cvar mn_skin" tag "body tag_head" color "0.5 0.5 0.5 1" scale "1.0 1.0 1.0" } pic rank_img { if "mn_show_employee == 1" pos "475 370" image "*cvar mn_chrrank_img" } string rank_lbl { if "mn_show_employee == 1" pos "475 75" string "*cvar mn_chrrank" } string pwr_lbl { pos "700 80" string "_Strength:" } string pwr_val { if "mn_show_employee == 1" pos "975 80" string "*cvar mn_tpwr" align ur } pic pwr_rahmen { pos "707 98" image menu/bar_rahmen } bar pwr_bar { if "mn_show_employee == 1" pos "716 103" current "*cvar mn_vpwr" size "245 6" color "0 .8 0 1" max 100 align uc } string spd_lbl { pos "700 110" string "_Speed:" } string spd_val { if "mn_show_employee == 1" pos "975 110" string "*cvar mn_tspd" align ur } pic spd_rahmen { pos "707 128" image menu/bar_rahmen } bar spd_bar { if "mn_show_employee == 1" pos "716 133" current "*cvar mn_vspd" size "245 6" color "0 .8 0 1" max 100 align uc } string acc_lbl { pos "700 140" string "_Accuracy:" } string acc_val { if "mn_show_employee == 1" pos "975 140" string "*cvar mn_tacc" align ur } pic acc_rahmen { pos "707 158" image menu/bar_rahmen } bar acc_bar { if "mn_show_employee == 1" pos "716 163" current "*cvar mn_vacc" size "245 6" color "0 .8 0 1" max 100 align uc } string mnd_lbl { pos "700 170" string "_Mind:" } string mnd_val { if "mn_show_employee == 1" pos "975 170" string "*cvar mn_tmnd" align ur } pic mnd_rahmen { pos "707 188" image menu/bar_rahmen } bar mnd_bar { if "mn_show_employee == 1" pos "716 193" current "*cvar mn_vmnd" size "245 6" color "0 .8 0 1" max 100 align uc } string cls_lbl { pos "700 210" string "_Close Combat:" } string cls_val { if "mn_show_employee == 1" pos "975 210" string "*cvar mn_tcls" align ur } pic cls_rahmen { pos "707 228" image menu/bar_rahmen } bar cls_bar { if "mn_show_employee == 1" pos "716 233" current "*cvar mn_vcls" size "245 6" color "0 .8 0 1" max 100 align uc } string hvy_lbl { pos "700 240" string "_Heavy Weapons:" } string hvy_val { if "mn_show_employee == 1" pos "975 240" string "*cvar mn_thvy" align ur } pic hvy_rahmen { pos "707 258" image menu/bar_rahmen } bar hvy_bar { if "mn_show_employee == 1" pos "716 263" current "*cvar mn_vhvy" size "245 6" color "0 .8 0 1" max 100 align uc } string ass_lbl { pos "700 270" string "_Assault Weapons:" } string ass_val { if "mn_show_employee == 1" pos "975 270" string "*cvar mn_tass" align ur } pic ass_rahmen { pos "707 288" image menu/bar_rahmen } bar ass_bar { if "mn_show_employee == 1" pos "716 293" current "*cvar mn_vass" size "245 6" color "0 .8 0 1" max 100 align uc } string snp_lbl { pos "700 300" string "_Sniper Rifles:" } string snp_val { if "mn_show_employee == 1" pos "975 300" string "*cvar mn_tsnp" align ur } pic snp_rahmen { pos "707 318" image menu/bar_rahmen } bar snp_bar { if "mn_show_employee == 1" pos "716 323" current "*cvar mn_vsnp" size "245 6" color "0 .8 0 1" max 100 align uc } string exp_lbl { pos "700 330" string "_High-Explosives:" } string exp_val { if "mn_show_employee == 1" pos "975 330" string "*cvar mn_texp" align ur } pic exp_rahmen { pos "707 348" image menu/bar_rahmen } bar exp_bar { if "mn_show_employee == 1" pos "716 353" current "*cvar mn_vexp" size "245 6" color "0 .8 0 1" max 100 align uc } string hp_lbl { pos "700 360" string "_Health:" } string hp_val { if "mn_show_employee == 1" pos "975 360" string "*cvar mn_thp" align ur } pic hp_rahmen { pos "707 378" image menu/bar_rahmen } bar hp_bar { if "mn_show_employee == 1" pos "716 383" current "*cvar mn_vhp" size "245 6" color "0 .8 0 1" max "*cvar mn_vhpmax" align uc } string missions_lbl { pos "700 393" string "_Missions Performed:" } string missions_val { if "mn_show_employee == 1" pos "975 393" string "*cvar mn_chrmis" align ur } string kills_lbl { pos "700 413" string "_Enemies Killed:" } string kills_val { if "mn_show_employee == 1" pos "975 413" string "*cvar mn_chrkillalien" align ur } // ==================== // employee description // ==================== text description { pos "610 428" // bgcolor "1 1 1 0.5" size "366 80" format "20 260" num 18 } // ================== // buttons // ================== confunc empl_reset { *s_scientists color "1 1 1 0.6" *s_soldiers color "1 1 1 0.6" *s_workers color "1 1 1 0.6" *s_medics color "1 1 1 0.6" } confunc empl_soldiers { cmd "employee_init 0;" empl_reset *s_soldiers color "1 1 1 1" } confunc empl_scientists { cmd "employee_init 1;" empl_reset *s_scientists color "1 1 1 1" } confunc empl_workers { cmd "employee_init 2;" empl_reset *s_workers color "1 1 1 1" } confunc empl_medics { cmd "employee_init 3;" empl_reset *s_medics color "1 1 1 1" } pic bt_soldier { tooltip "_Hire soldiers" image menu/button_blue mousefx true pos "615 585" texl "0 0" texh "128 52" click { empl_soldiers } } string s_soldiers { pos "679 611" align cc color "1 1 1 0.6" font "f_big" string "_Soldiers" } pic bt_scientists { tooltip "_Hire scientists" image menu/button_blue mousefx true pos "615 655" texl "0 0" texh "128 52" click { empl_scientists } } string s_scientists { pos "679 681" align cc color "1 1 1 0.6" font "f_big" string "_Scientists" } pic bt_workers { tooltip "_Hire workers" image menu/button_blue mousefx true pos "765 585" texl "0 0" texh "128 52" click { empl_workers } } string s_workers { pos "829 611" align cc color "1 1 1 0.6" font "f_big" string "_Workers" } pic bt_medics { tooltip "_Hire medics" image menu/button_blue mousefx true pos "765 655" texl "0 0" texh "128 52" click { empl_medics } } string s_medics { pos "829 681" align cc color "1 1 1 0.6" font "f_big" string "_Medics" } pic bt_continue { tooltip "_Back to baseview" image hud/buttons2 mousefx true pos "940 686" texl "0 0" texh "64 37" click { cmd mn_pop } } // ================== // init function // ================== func init { employee_clear empl_soldiers cmd "employee_init 0" } }