home *** CD-ROM | disk | FTP | other *** search
Wrap
/* TeamFortress 1.1 - 27/8/96 Robin Walker, John Cook, Ian Caughley. Functions handling all the help displaying for TeamFortress. */ // Prototypes // Help Functions void(float helpindex) TeamFortress_Help; void() TeamFortress_MOTD; void() TeamFortress_HelpIndex; void() TeamFortress_HelpWeapon; void() TeamFortress_HelpClass; void() TeamFortress_HelpItem; void() TeamFortress_HelpGeneral; void() TeamFortress_HelpPreImp; void() TeamFortress_HelpShowPreImp; void() TeamFortress_HelpShowImp; void() TeamFortress_HelpSkin; //========================================================================= // HELP FUNCTIONS //========================================================================= //========================================================================= // Help for the Impulse commands in TeamFortress void(float helpindex) TeamFortress_Help = { // prevent help pre-impulse from triggering anything else self.impulse = 0; self.last_impulse = 0; if (helpindex == TF_HELP) TeamFortress_HelpIndex(); if (helpindex == TF_HELP_GENERAL) TeamFortress_HelpGeneral(); if (helpindex == TF_HELP_CLASS) TeamFortress_HelpClass(); if (helpindex == TF_HELP_WEAPON) TeamFortress_HelpWeapon(); if (helpindex == TF_HELP_ITEM) TeamFortress_HelpItem(); if (helpindex == TF_HELP_PREIMP) TeamFortress_HelpPreImp(); if (helpindex == TF_HELP_PREIMP_SHOW) TeamFortress_HelpShowPreImp(); if (helpindex == TF_HELP_IMP_SHOW) TeamFortress_HelpShowImp(); if (helpindex == TF_HELP_SKIN) TeamFortress_HelpSkin(); }; void() TeamFortress_MOTD = { if (self.motd == 0) { // If you run this is a server, you're welcome to change to initial // message here, but _please_ leave in the first line. // display welcome // sprint this bit so it gets put into the console log sprint(self,"Type helpme for Help. :)\n"); centerprint(self, "Welcome to TeamFortress! v1.0\nRobin Walker, John Cook, Ian Caughley.\n======================================\nType helpme for Help. :)\n"); // Stuff Aliases // Help TeamFortress_Alias("helpme",TF_HELP, TF_HELP); TeamFortress_Alias("generalhelp",TF_HELP,TF_HELP_GENERAL); TeamFortress_Alias("classhelp",TF_HELP,TF_HELP_CLASS); TeamFortress_Alias("weaponhelp",TF_HELP,TF_HELP_WEAPON); TeamFortress_Alias("itemhelp",TF_HELP,TF_HELP_ITEM); TeamFortress_Alias("preimphelp",TF_HELP,TF_HELP_PREIMP); TeamFortress_Alias("showpreimp",TF_HELP,TF_HELP_PREIMP_SHOW); TeamFortress_Alias("showimp",TF_HELP,TF_HELP_IMP_SHOW); TeamFortress_Alias("skinhelp",TF_HELP,TF_HELP_SKIN); // General TeamFortress_Alias("inv",TF_INVENTORY,0); // Class Changing TeamFortress_Alias("scout",(TF_CHANGEPC+PC_SCOUT),0); TeamFortress_Alias("sniper",(TF_CHANGEPC+PC_SNIPER),0); TeamFortress_Alias("soldier",(TF_CHANGEPC+PC_SOLDIER),0); TeamFortress_Alias("demoman",(TF_CHANGEPC+PC_DEMOMAN),0); TeamFortress_Alias("medic",(TF_CHANGEPC+PC_MEDIC),0); TeamFortress_Alias("hwguy",(TF_CHANGEPC+PC_HVYWEAP),0); // Grenades TeamFortress_Alias("primeone", TF_GRENADE_1,0); TeamFortress_Alias("primetwo", TF_GRENADE_2,0); TeamFortress_Alias("throwgren", TF_GRENADE_T,0); // Pipebombs TeamFortress_Alias("detpipe", TF_PB_DETONATE,0); // Sample aliases for the Scanner TeamFortress_Alias("scan10", TF_SCAN, 10); TeamFortress_Alias("scan50", TF_SCAN, 50); TeamFortress_Alias("scan250", TF_SCAN, 250); TeamFortress_Alias("scanf", TF_SCAN, TF_SCAN_FRIENDLY); TeamFortress_Alias("scane", TF_SCAN, TF_SCAN_ENEMY); // Sample aliases for the Detpack TeamFortress_Alias("det5", TF_DETPACK, 5); TeamFortress_Alias("det20", TF_DETPACK, 20); TeamFortress_Alias("det250", TF_DETPACK, 250); // Toggleable Game Settings TeamFortress_Alias("t_skin", TF_TOGGLE, TF_TOGGLE_SKIN); TeamFortress_Alias("t_classpersist", TF_TOGGLE, TF_TOGGLE_CLASS_PERSIST); TeamFortress_Alias("t_cheatcheck", TF_TOGGLE, TF_TOGGLE_CHEATCHECK); TeamFortress_Alias("t_fortressmap", TF_TOGGLE, TF_TOGGLE_FORTRESSMAP); // Skin handlers TeamFortress_Alias("nextskin", TF_SKIN_NEXT, 0); TeamFortress_Alias("prevskin", TF_SKIN_PREV, 0); TeamFortress_Alias("skin10", TF_MULTISKIN, 10); TeamFortress_Alias("skin20", TF_MULTISKIN, 20); // Team handlers TeamFortress_Alias("imin1",TF_TEAM, 1); TeamFortress_Alias("imin2",TF_TEAM, 2); TeamFortress_Alias("imin3",TF_TEAM, 3); TeamFortress_Alias("imin4",TF_TEAM, 4); self.motd = 1; } }; //========================================================================= // Help displayed when someone types the alais "classhelp" void() TeamFortress_HelpClass = { sprint(self, "Commands to choose Playerclass:\n"); sprint(self, "scout : Scout\n"); sprint(self, "sniper : Sniper\n"); sprint(self, "soldier : Soldier\n"); sprint(self, "demoman : Demolitions Man\n"); sprint(self, "medic : Combat Medic\n"); sprint(self, "hwguy : Heavy Weapons Guy\n"); }; //========================================================================= // Help displayed when someone types the alais "itemhelp" void() TeamFortress_HelpItem = { sprint(self, "Commands to use new items:\n"); sprint(self, "det5 : Set detpack for 5 sec\n"); sprint(self, "det20 : Set detpack for 20 sec\n"); sprint(self, "det250 : Set detpack for 250 sec\n"); sprint(self, "scan10 : Scan using 10 energy\n"); sprint(self, "scan50 : Scan using 50 energy\n"); sprint(self, "scan250 : Scan using 250 energy\n"); sprint(self, "scanf : Toggle scanning of Friendlies\n"); sprint(self, "scane : Toggle scanning of Enemies\n"); }; //========================================================================= // Help displayed when someone types the alais "weaponhelp" void() TeamFortress_HelpWeapon = { sprint(self, "Commands to use new weapons:\n"); sprint(self, "primeone : Prime a Grenade of Type 1\n"); sprint(self, "primetwo : Prime a Grenade of Type 2\n"); sprint(self, "throwgren : Throw the primed Grenade\n"); sprint(self, "detpipe : Detonate pipebombs\n"); }; //========================================================================= // Help displayed when someone types the alais "preimphelp" void() TeamFortress_HelpPreImp = { local string imp; sprint(self, "This is fairly advanced. If you don't know how to make aliases "); sprint(self, "then just ignore this section. You can play the game just fine without it.\n"); sprint(self, "Pre-impulses are impulses that are used before another impulse that "); sprint(self, "change the interpretation of the second impulse. "); sprint(self, "e.g. The scanner uses a Pre-Impulse. The impulse that is given _after_ "); sprint(self, "the Pre-Impulse is interpreted by the scanner to be the amount of energy "); sprint(self, "you wish to spend on the scan.\n"); sprint(self, "There are already aliases bound which use the Scanner, and other Pre-Impulse "); sprint(self, "items, but you may wish to make your own using different times//energy//etc.\n"); sprint(self, "If so, you want to make an alias which does the Pre-Impulse, then does a Wait, "); sprint(self, "then does the impulse specifying time//energy//etc. Then bind the alias to a key.\n"); sprint(self, "e.g. alias scan56 \"impulse "); imp = ftos(TF_SCAN); sprint(self, imp); sprint(self, ";wait; impulse 56\"\n"); sprint(self, "See the readme.txt for more help on Pre-Impulses.\n"); sprint(self, "To see a list of all Pre-Impulses being used at the moment, type showpreimp.\n"); sprint(self, "Use pageup in the console to see all of the above :)\n"); }; //========================================================================= // Help displayed when someone types the alais "showpreimp" void() TeamFortress_HelpShowPreImp = { local string imp; sprint(self, "Pre-Impulses being used:\n"); sprint(self, "Scanner Pre-Imp : "); imp = ftos(TF_SCAN); sprint(self, imp); sprint(self, "\nDetpack Pre-Imp : "); imp = ftos(TF_DETPACK); sprint(self, imp); sprint(self, "\nMultiskin Pre-Imp : "); imp = ftos(TF_MULTISKIN); sprint(self, imp); sprint(self, "\nToggle Pre-Imp : "); imp = ftos(TF_TOGGLE); sprint(self, imp); sprint(self, "\nHelp Pre-Imp : "); imp = ftos(TF_HELP); sprint(self, imp); sprint(self, "\n"); }; //========================================================================= // Help displayed when someone types the alias "helpme" void() TeamFortress_HelpIndex = { sprint(self, "Help Index\n"); sprint(self, "==========\n"); sprint(self, "generalhelp : General Command Help.\n"); sprint(self, "classhelp : Player Classes Help.\n"); sprint(self, "weaponhelp : Weapon Command Help.\n"); sprint(self, "itemhelp : Item Command Help.\n"); sprint(self, "skinhelp : Skin Selection Help.\n"); sprint(self, "togglehelp : Option Toggling Help.\n"); sprint(self, "preimphelp : Pre-Impulse Summary.\n"); sprint(self, "showpreimp : Show all Pre-Impulses.\n"); sprint(self, "showimp : Show all Impulses.\n"); sprint(self, "===================================\n"); sprint(self, "Comments : walker@netspace.net.au\n"); sprint(self, "Full command descriptions in Readme.txt\n"); sprint(self, "Use pageup in the console to see all the help :)\n"); }; //========================================================================= // Help displayed when someone types the alias "generalhelp" void() TeamFortress_HelpGeneral = { sprint(self, "inv : Display your inventory.\n"); sprint(self, "==\n"); sprint(self, "Comments : walker@netspace.net.au\n"); sprint(self, "Full command descriptions in Readme.txt\n"); sprint(self, "Use pageup in the console to see all the impulses above :)\n"); }; //========================================================================= // Help displayed when someone types the alais "skinhelp" void() TeamFortress_HelpSkin = { sprint(self, "Commands for skin selection are:\n"); sprint(self, "nextskin : See if you can guess :)\n"); sprint(self, "prevskin : See above.\n"); sprint(self, "skin10 : Set your skin to no 10\n"); sprint(self, "skin20 : Set your skin to no 20\n"); sprint(self, "These all have no effect if Classkin is On. Instead,"); sprint(self, "your skin will be assigned to you based on your class."); }; //========================================================================= // Help displayed when someone types the alais "showimp" void() TeamFortress_HelpShowImp = { local string imp; sprint(self, "Impulses being used:\n"); sprint(self, "Inventory : "); imp = ftos(TF_INVENTORY); sprint(self, imp); sprint(self, "\nPrime Grenade 1 : "); imp = ftos(TF_GRENADE_1); sprint(self, imp); sprint(self, "\nPrime Grenade 2 : "); imp = ftos(TF_GRENADE_2); sprint(self, imp); sprint(self, "\nThrow Grenade : "); imp = ftos(TF_GRENADE_T); sprint(self, imp); sprint(self, "\nDet.Pipebombs : "); imp = ftos(TF_PB_DETONATE); sprint(self, imp); sprint(self, "\nScout : "); imp = ftos(TF_CHANGEPC + PC_SCOUT); sprint(self, imp); sprint(self, "\nSniper : "); imp = ftos(TF_CHANGEPC + PC_SNIPER); sprint(self, imp); sprint(self, "\nSoldier : "); imp = ftos(TF_CHANGEPC + PC_SOLDIER); sprint(self, imp); sprint(self, "\nDemolitions Man : "); imp = ftos(TF_CHANGEPC + PC_DEMOMAN); sprint(self, imp); sprint(self, "\nCombat Medic : "); imp = ftos(TF_CHANGEPC + PC_MEDIC); sprint(self, imp); sprint(self, "\nHeavy WeaponGuy : "); imp = ftos(TF_CHANGEPC + PC_HVYWEAP); sprint(self, imp); sprint(self, "\nNext Skin : "); imp = ftos(TF_SKIN_NEXT); sprint(self, imp); sprint(self, "\nPrevious Skin : "); imp = ftos(TF_SKIN_PREV); sprint(self, imp); sprint(self, "\nPre-Impulses are used for more advanced uses.\n"); sprint(self, "Type preimphelp to see the Pre-Impulse Summary.\n"); };