Skip to content

Commit

Permalink
Merge pull request #98 from Vladislav4KZ/menu-enhancements
Browse files Browse the repository at this point in the history
touch: add definitions for various game scenarios in the map objective overview
  • Loading branch information
Velaron authored Sep 13, 2024
2 parents 3e19bf0 + dc02fb2 commit 8f325bc
Showing 1 changed file with 74 additions and 3 deletions.
77 changes: 74 additions & 3 deletions 3rdparty/cs16client-extras/touch/chooseteam.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ touch_setclientonly 1
touch_emulate 1
cmd_scripting 1
touch_set_stroke 1 255 174 0 150
set scenario_defined 0

alias _erase_frame "touch_removebutton _menu_*; _menu_off; hidescoreboard2"
alias _menu_off "touch_setclientonly 0; touch_emulate 0"
Expand Down Expand Up @@ -51,9 +52,79 @@ touch_addbutton "_menu_txt_slot9" "#9 SHOW SCOREBOARD" "" 0.150000 0.800000 0.36
touch_addbutton "_menu_slot0" "*white" "+menu_slot0" 0.140000 0.853333 0.360000 0.906667 0 0 0 150 260
touch_addbutton "_menu_txt_slot0" "#0 CANCEL" "" 0.150000 0.871111 0.360000 0.906667 255 174 0 255 4
touch_addbutton "_menu_frame" "*white" "" 0.390000 0.213333 0.860000 0.835556 0 0 0 200 260
touch_addbutton "_menu_frame_txt_title" "#Bomb/Defuse or Hostage Rescue scenario." "" 0.400000 0.231111 0.850000 0.817778 255 174 0 255 4
touch_addbutton "_menu_frame_txt_desc2" "#Terrorists:;The Terrorist carrying the C4 must destroy one of;the payloads or prevent Counter-Terrorist force from rescuing;the hostages or Kill the VIP before he escapes." "" 0.400000 0.284444 0.850000 0.426667 255 174 0 255 4
touch_addbutton "_menu_frame_txt_desc1" "#Counter-Terrorists:;Prevent Terrorists from bombing or Rescue the hostages or;Protect the VIP for Escort him to the escaping region." "" 0.400000 0.444444 0.850000 0.551111 255 174 0 255 4

if $cscl_mapprefix == as_
:scenario_defined 1
:touch_addbutton "_menu_frame_txt_title" "#VIP Assassination scenario." "" 0.400000 0.231111 0.850000 0.817778 255 174 0 255 4
:touch_addbutton "_menu_frame_txt_desc1" "#Terrorists:;The Terrorists must eliminate the VIP before he reaches the;extraction point." "" 0.400000 0.284444 0.850000 0.426667 255 174 0 255 4
:touch_addbutton "_menu_frame_txt_desc2" "#Counter-Terrorists:;Escort the VIP to the extraction point, eliminating Terrorist forces;along the way." "" 0.400000 0.444444 0.850000 0.551111 255 174 0 255 4

if $cscl_mapprefix == cs_
:scenario_defined 1
:touch_addbutton "_menu_frame_txt_title" "#Hostage Rescue scenario." "" 0.400000 0.231111 0.850000 0.817778 255 174 0 255 4
:touch_addbutton "_menu_frame_txt_desc1" "#Terrorists:;Prevent hostages from being rescued by Сounter-Terrorist forces." "" 0.400000 0.284444 0.850000 0.426667 255 174 0 255 4
:touch_addbutton "_menu_frame_txt_desc2" "#Counter-Terrorists:;Escort the hostages to the rescue zone." "" 0.400000 0.444444 0.850000 0.551111 255 174 0 255 4

if $cscl_mapprefix == de_
:scenario_defined 1
:touch_addbutton "_menu_frame_txt_title" "#Bomb Plant/Defuse scenario." "" 0.400000 0.231111 0.850000 0.817778 255 174 0 255 4
:touch_addbutton "_menu_frame_txt_desc1" "#Terrorists:;A terrorist carrying C4 must blow up one of the payloads or;strategic objects." "" 0.400000 0.284444 0.850000 0.426667 255 174 0 255 4
:touch_addbutton "_menu_frame_txt_desc2" "#Counter-Terrorists:;Prevent Terrorists from blowing up payloads or strategic objects." "" 0.400000 0.444444 0.850000 0.551111 255 174 0 255 4

if $cscl_mapprefix == es_
:scenario_defined 1
:touch_addbutton "_menu_frame_txt_title" "#Terrorist Escape scenario." "" 0.400000 0.231111 0.850000 0.817778 255 174 0 255 4
:touch_addbutton "_menu_frame_txt_desc1" "#Terrorists:;Find places with equipment and use it for defense during your;escape." "" 0.400000 0.284444 0.850000 0.426667 255 174 0 255 4
:touch_addbutton "_menu_frame_txt_desc2" "#Counter-Terrorists:;Do not let the Terrorists escape." "" 0.400000 0.444444 0.850000 0.551111 255 174 0 255 4

if $cscl_mapprefix == csde_
:scenario_defined 1
:touch_addbutton "_menu_frame_txt_title" "#Hostage Rescue and Bomb Plant/Defuse scenario." "" 0.400000 0.231111 0.850000 0.817778 255 174 0 255 4
:touch_addbutton "_menu_frame_txt_desc1" "#Terrorists:;Destroy one of the payloads or strategic objects and don't let the;Counter-Terrorists rescue the hostages." "" 0.400000 0.284444 0.850000 0.426667 255 174 0 255 4
:touch_addbutton "_menu_frame_txt_desc2" "#Counter-Terrorists:;Rescue the hostages and prevent the terrorists from blowing up;any objects." "" 0.400000 0.444444 0.850000 0.551111 255 174 0 255 4

if $cscl_mapprefix == fy_
:scenario_defined 1
:touch_addbutton "_menu_frame_txt_title" "#Fight Yard scenario." "" 0.400000 0.231111 0.850000 0.817778 255 174 0 255 4
:touch_addbutton "_menu_frame_txt_desc1" "#Pick up weapons from the ground or look for the buy zone and;kill each other." "" 0.400000 0.284444 0.850000 0.426667 255 174 0 255 4

if $cscl_mapprefix == he_
:scenario_defined 1
:touch_addbutton "_menu_frame_txt_title" "#Grenade Wars scenario." "" 0.400000 0.231111 0.850000 0.817778 255 174 0 255 4
:touch_addbutton "_menu_frame_txt_desc1" "#You have to blow each other up with high explosive grenades." "" 0.400000 0.284444 0.850000 0.426667 255 174 0 255 4

if $cscl_mapprefix == awp_
:scenario_defined 1
:touch_addbutton "_menu_frame_txt_title" "#Sniper Wars scenario." "" 0.400000 0.231111 0.850000 0.817778 255 174 0 255 4
:touch_addbutton "_menu_frame_txt_desc1" "#You have to kill enemies with a sniper rifle." "" 0.400000 0.284444 0.850000 0.426667 255 174 0 255 4

if $cscl_mapprefix == ka_
:scenario_defined 1
:touch_addbutton "_menu_frame_txt_title" "#Knife Arena scenario." "" 0.400000 0.231111 0.850000 0.817778 255 174 0 255 4
:touch_addbutton "_menu_frame_txt_desc1" "#You have to kill enemies with a knife." "" 0.400000 0.284444 0.850000 0.426667 255 174 0 255 4

if $cscl_mapprefix == 1hp_
:scenario_defined 1
:touch_addbutton "_menu_frame_txt_title" "#1 Health Point scenario." "" 0.400000 0.231111 0.850000 0.817778 255 174 0 255 4
:touch_addbutton "_menu_frame_txt_desc1" "#You need to kill enemies with a knife with one health point." "" 0.400000 0.284444 0.850000 0.426667 255 174 0 255 4

if $cscl_mapprefix == 35hp_
:scenario_defined 1
:touch_addbutton "_menu_frame_txt_title" "#35 Health Points scenario." "" 0.400000 0.231111 0.850000 0.817778 255 174 0 255 4
:touch_addbutton "_menu_frame_txt_desc1" "#You need to kill enemies with a knife with 35 health points." "" 0.400000 0.284444 0.850000 0.426667 255 174 0 255 4

if $cscl_mapprefix == aim_
:scenario_defined 1
:touch_addbutton "_menu_frame_txt_title" "#Aim Training scenario." "" 0.400000 0.231111 0.850000 0.817778 255 174 0 255 4
:touch_addbutton "_menu_frame_txt_desc1" "#On this map, you can train your aim on a specific type of weapon." "" 0.400000 0.284444 0.850000 0.426667 255 174 0 255 4

if $cscl_mapprefix == dm_
:scenario_defined 1
:touch_addbutton "_menu_frame_txt_title" "#Deathmatch scenario." "" 0.400000 0.231111 0.850000 0.817778 255 174 0 255 4
:touch_addbutton "_menu_frame_txt_desc1" "#The objective is simple - kill each other to death.;No additional tasks are provided." "" 0.400000 0.284444 0.850000 0.426667 255 174 0 255 4

if $scenario_defined != 1
:touch_addbutton "_menu_frame_txt_title" "#The map scenario is undefined." "" 0.400000 0.231111 0.850000 0.817778 255 174 0 255 4

//alias +menu_slot0 "touch_setcolor _menu_slot0 255 174 0 150"
//alias -menu_slot0 "touch_setcolor _menu_slot0 0 0 0 150"
Expand Down

0 comments on commit 8f325bc

Please sign in to comment.