diff --git a/config/tutorial.cfg b/config/tutorial.cfg index fdb17b64..c9d72260 100644 --- a/config/tutorial.cfg +++ b/config/tutorial.cfg @@ -1,92 +1,98 @@ watchingtutorial = 0 bind ESCAPE [ if $connected [ ingamemenu ] [if (= (watchingtutorial) 1) [ showmenu "Tutorial Menu" ] [ if (watchingdemo) [ showmenu "Watching demo" ] [ showmenu main ] ] ] ] - tutstart = [ - if (= $arg1 1) [ - mapstartonce = [tut] - - //disable most of the HUD - getconsize__ = $consize - getcrosshairsize__ = $crosshairsize - gethidespecthud__ = $hidespecthud - gethideteam__ = $hideteam - gethidehudequipment__ = $hidehudequipment - consize 0 - crosshairsize 0 - hidespecthud 1 - hideteam 1 - hidehudequipment 1 - //begin - watchingtutorial = [1] - demo "tutorial_demo" -] []] - - endtutorial = [ - consize $getconsize__ - crosshairsize $getcrosshairsize__ - hidespecthud $gethidespecthud__ - hideteam $gethideteam__ - hidehudequipment $gethidehudequipment__ - watchingtutorial = 0 +alias tutstart [ + if (= $arg1 1) [ + mapstartonce = [tut; music "pingpong/03-pp-kamikadze" 89000 [music "pingpong/03-pp-kamikadze" 89000 [music "pingpong/03-pp-kamikadze" 89000 [music "pingpong/03-pp-kamikadze" 89000 [music "pingpong/03-pp-kamikadze" 89000]]]]] + //disable most of the HUD + getconsize__ = $consize + getcrosshairsize__ = $crosshairsize + gethidespecthud__ = $hidespecthud + gethideteam__ = $hideteam + gethidehudequipment__ = $hidehudequipment + consize 0 + crosshairsize 0 + hidespecthud 1 + hideteam 1 + hidehudequipment 1 + //begin + watchingtutorial = [1] + demo "tutorial_demo" + ] [] ] -tut = [ - sleep 50 [paused 1; showmenu "AC Tutorial - Welcome"; sleep 20 [mapstartonce = [endtutorial]]] - consize 1; echo " 2Live tutorial information will appear here." + +alias endtutorial [ + consize $getconsize__ + crosshairsize $getcrosshairsize__ + hidespecthud $gethidespecthud__ + hideteam $gethideteam__ + hidehudequipment $gethidehudequipment__ + watchingtutorial = 0 ] - -tut2 = [ - sleep 9000 [paused 1; showmenu "AC Tutorial - Basic Movement"] //Need echoes timed with the movement before the paused 1 + +alias tut [ + sleep 50 [paused 1; showmenu "AC Tutorial - Welcome"; sleep 20 [mapstartonce = [endtutorial]]] + consize 1; echo " 2Live tutorial information will appear here." ] - -tut3 = [ - sleep 8000 [paused 1; showmenu "AC Tutorial - More Movement"] //ibid + +alias tut2 [ + sleep 9000 [paused 1; showmenu "AC Tutorial - Basic Movement"] //Need echoes timed with the movement before the paused 1 ] - -tut4 = [ - consize 1; echo "Here, the players are straferunning." - sleep 14200 [ - consize 2; echo "Now, they are jumping." - sleep 6000 [ - consize 1; echo "See them crouch up and down!" - sleep 6000 [ - echo "See them crouchjump up and down!" ] ] ] - sleep 42000 [paused 1; showmenu "AC Tutorial - Weapons"] //Main timing sequence to go to next menu, all above are subkeyframes + +alias tut3 [ + sleep 8000 [paused 1; showmenu "AC Tutorial - More Movement"] //ibid ] - -tut5 = [ - sleep 10 [paused 1; showmenu "AC Tutorial - Weapon Info"] + +alias tut4 [ + consize 1; echo "Here, the players are straferunning." + sleep 14200 [ + consize 2; echo "Now, they are jumping." + sleep 6000 [ + consize 1; echo "See them crouch up and down!" + sleep 6000 [ + echo "See them crouchjump up and down!" ] ] ] + sleep 42000 [paused 1; showmenu "AC Tutorial - Weapons"] //Main timing sequence to go to next menu, all above are subkeyframes ] - -tut6 = [ - sleep 6000 [consize 2; echo "Someone is about to get splattered with the shotgun"] - sleep 18000 [consize 2; echo "BOOM HEADSHOT! Remember, there is no spread while scoping."] - sleep 26000 [consize 2; echo "Slice and dice with the knife."] - sleep 41000 [consize 2; echo "Fire in the hole! Grenades, grenades, grenades."] - sleep 50000 [paused 1; showmenu "AC Tutorial - CTF"] + +alias tut5 [ + sleep 10 [paused 1; showmenu "AC Tutorial - Weapon Info"] ] - -tut7 = [ - sleep 9000 [consize 3; echo "Touch a flag to pick it up"] - sleep 17000 [echo "You will drop the flag if you get fragged."] - sleep 19000 [echo "Touch the flag to return it"] - sleep 26000 [echo "Touch your own flag to score!"] - sleep 41000 [paused 1; showmenu "AC Tutorial - Advanced"] + +alias tut6 [ + sleep 6000 [consize 2; echo "Someone is about to get splattered with the shotgun"] + sleep 18000 [consize 2; echo "BOOM HEADSHOT! Remember, there is no spread while scoping."] + sleep 26000 [consize 2; echo "Slice and dice with the knife."] + sleep 41000 [consize 2; echo "Fire in the hole! Grenades, grenades, grenades."] + sleep 50000 [paused 1; showmenu "AC Tutorial - CTF"] ] - -tut8 = [ - sleep 50 [echo "They are now edge jumping. These are popular spots to edgejump."] - sleep 18500 [echo "To rifle sprint, face opposite to where you want to go, and jump backwards while shooting."] - sleep 32500 [echo "Similar to the rifle sprint, rifle jump by jumping, facing down, and shooting."] - sleep 49000 [echo "That was a bad attempt at grenade jumping. You are not supposed to suicide."] - sleep 50000 [echo "A good grenade jump will give you height and distance."] - sleep 65000 [echo "Time for the combat demonstration!"] - sleep 200000 [paused 1; showmenu "AC Tutorial - GG"] + +alias tut7 [ + sleep 9000 [consize 3; echo "Touch a flag to pick it up"] + sleep 17000 [echo "You will drop the flag if you get fragged."] + sleep 19000 [echo "Touch the flag to return it"] + sleep 26000 [echo "Touch your own flag to score!"] + sleep 41000 [paused 1; showmenu "AC Tutorial - Advanced"] ] - + +alias tut8 [ + sleep 50 [echo "They are now edge jumping. These are popular spots to edgejump."] + sleep 18500 [echo "To rifle sprint, face opposite to where you want to go, and jump backwards while shooting."] + sleep 32500 [echo "Similar to the rifle sprint, rifle jump by jumping, facing down, and shooting."] + sleep 49000 [echo "That was a bad attempt at grenade jumping. You are not supposed to suicide."] + sleep 50000 [echo "A good grenade jump will give you height and distance."] + sleep 65000 [echo "Time for the combat demonstration!"] + sleep 200000 [paused 1; showmenu "AC Tutorial - GG"] +] + +alias endmenuitem [ + sleep 1000 [showscores 1] + sleep 15000 [endtutorial; dm ac_complex] +] + newmenu "Tutorial Menu" menuitem "Go back to tutorial" [closemenu "Watching Tutorial"; paused 0] menuitem "Restart tutorial" "tutstart 1" -menuitem " 3Stop 5tutorial" "dm ac_complex; endtutorial" - +menuitem " 3Stop 5tutorial" " endtutorial; dm ac_complex" + newmenu "AC Tutorial - Welcome" menuitem " 1Thank you for downloading and trying 2AssaultCube!" -1 menuitem "" -1 @@ -94,8 +100,8 @@ menuitem "This short tutorial will show you the basics so you" -1 menuitem "can start fragging as soon as possible. Just sit back" -1 menuitem "and watch. You will be able to experiment after." -1 menuitem "" -1 -menuitem " 0Continue" "paused 0; tut2; consize 0" - +menuitem " 0Continue" "paused 0; tut2; consize 0" + newmenu "AC Tutorial - Basic Movement" menuitem "Basic movement is done with the WASD keys." -1 menuitem "For left-handed players that prefer to use" -1 @@ -110,7 +116,7 @@ menuitem "A: Left" -1 menuitem "D: Right" -1 menuitem "" -1 menuitem " 0Continue - 1/7" "paused 0; tut3" - + newmenu "AC Tutorial - More Movement" menuitem "If you combine a directional key (W or S)" -1 menuitem "with a strafing key, you will straferun." -1 @@ -134,8 +140,8 @@ menuitem "" -1 menuitem "Jump: spacebar" -1 menuitem "Crouch: shift" -1 menuitem "" -1 -menuitem " 0Continue - 2/7" "paused 0; tut4" - +menuitem " 0Continue - 2/7" "paused 0; tut4" + newmenu "AC Tutorial - Weapons" menuitem "There is a variety of weapons in AssaultCube." -1 menuitem "Some are better for certain situations than" -1 @@ -163,8 +169,8 @@ menuitem "Scope/Grenade: right mouse" -1 menuitem "Cycle through weapons: mousewheel" -1 menuitem "Knife: middle mouse click" menuitem "" -1 -menuitem " 0Continue - 3/7" "paused 0; tut5" - +menuitem " 0Continue - 3/7" "paused 0; tut5" + newmenu "AC Tutorial - Weapon Info" menuitem "When you get close enough to your enemy, the" -1 menuitem "shotgun will splatter them into bits of gibs (gore)." -1 @@ -178,8 +184,8 @@ menuitem "" -1 menuitem "Be careful with grenades! One can easily damage,"-1 menuitem "or gib teammates with these." -1 menuitem "" -1 -menuitem " 0Continue - 4/7" "paused 0; tut6" - +menuitem " 0Continue - 4/7" "paused 0; tut6" + newmenu "AC Tutorial - CTF" menuitem "Capture the Flag, or CTF for short, is one of the" -1 menuitem "most popular gamemodes in AssaultCube. The objective" -1 @@ -189,8 +195,8 @@ menuitem "you are the flag carrier and your own flag is stolen," -1 menuitem "is usually safer to proceed to the safety of your own" -1 menuitem "base." -1 menuitem "" -1 -menuitem " 0Continue - 5/7" "paused 0; tut7" - +menuitem " 0Continue - 5/7" "paused 0; tut7" + newmenu "AC Tutorial - Advanced" menuitem "There are several advanced tactics you can use while" -1 menuitem "playing AssaultCube." -1 @@ -210,8 +216,8 @@ menuitem "of the grenade to propel yourself." -1 menuitem "" -1 menuitem "After this is done, you will watch demonstration of" -1 menuitem "real combat in AssaultCube." -menuitem " 0Continue - 6/7" "paused 0; tut8" - +menuitem " 0Continue - 6/7" "paused 0; tut8" + newmenu "AC Tutorial - GG" menuitem "Thats it! The tutorial is over now. Take a minute" -1 menuitem "to look at the scoreboard. Your name along with" -1 @@ -231,10 +237,5 @@ menuitem "" -1 menuitem "Show scoreboard: TAB" -1 menuitem "Try it out!" -1 menuitem "" -1 -menuitem " 0Finish - 7/7" "paused 0; endmenuitem" - -endmenuitem = [ - sleep 1000 [showscores 1] - sleep 60000 dm ac_complex; endtutorial -] +menuitem " 0Finish - 7/7" "paused 0; endmenuitem"