1.\" $NetBSD: hunt.6,v 1.3 1997/10/10 16:32:30 lukem Exp $ 2.\" $OpenBSD: hunt.6,v 1.19 2007/05/31 19:19:17 jmc Exp $ 3.\" $DragonFly: src/games/hunt/hunt/hunt.6,v 1.2 2008/09/04 07:35:06 swildner Exp $ 4.\" 5.\" Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold 6.\" San Francisco, California 7.\" 8.\" Copyright (c) 1985 Regents of the University of California. 9.\" All rights reserved. 10.\" 11.\" Redistribution and use in source and binary forms, with or without 12.\" modification, are permitted provided that the following conditions 13.\" are met: 14.\" 1. Redistributions of source code must retain the above copyright 15.\" notice, this list of conditions and the following disclaimer. 16.\" 2. Redistributions in binary form must reproduce the above copyright 17.\" notice, this list of conditions and the following disclaimer in the 18.\" documentation and/or other materials provided with the distribution. 19.\" 3. Neither the name of the University nor the names of its contributors 20.\" may be used to endorse or promote products derived from this software 21.\" without specific prior written permission. 22.\" 23.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 24.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 25.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 26.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 27.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33.\" SUCH DAMAGE. 34.\" 35.Dd September 2, 2008 36.Dt HUNT 6 37.Os 38.Sh NAME 39.Nm hunt 40.Nd a multi-player multi-terminal game 41.Sh SYNOPSIS 42.Nm 43.Op Fl bcfmqSs 44.Op Fl n Ar name 45.Op Fl p Ar port 46.Op Fl t Ar team 47.Op Fl w Ar message 48.Oo 49.Op Fl h 50.Ar host 51.Oc 52.Sh DESCRIPTION 53The object of the game 54.Nm 55is to kill off the other players. 56There are no rooms, no treasures, and no monsters. 57Instead, you wander around a maze, find grenades, trip mines, and shoot down 58walls and players. 59The more players you kill before you die, the better your score is. 60If the 61.Fl m 62flag is given, 63you enter the game as a monitor 64.Po 65you can see the action but you cannot play 66.Pc . 67.Pp 68.Nm 69looks for an active game on the local network. 70The location of the game may be specified by giving the 71.Ar host 72argument. 73This presupposes that a hunt game is already running on that host: see 74.Xr huntd 6 75for details on how to set up a game on a specific host. 76If more than one game is found, you may pick which game to play in. 77If no games are found, 78.Nm 79will exit. 80.Pp 81If the 82.Fl q 83flag is given, 84.Nm 85queries the local network 86.Pq or specific host 87and reports on all active games found. 88This is useful for shell startup scripts, e.g., csh's 89.Pa .login . 90.Pp 91The player name may be specified on the command line by using the 92.Fl n 93option. 94.Pp 95The 96.Fl c , 97.Fl s , 98and 99.Fl f 100options are for entering the game cloaked, scanning, or flying, respectively. 101.Pp 102The 103.Fl b 104option turns off beeping when you reach the typeahead limit. 105.Pp 106The 107.Fl t 108option aids team play by making everyone else on your team 109appear as the team name. 110A team name is a single digit to avoid conflicting with other characters 111used in the game. 112Use a team name consisting of a single space 113.Pq Sq \ 114to remain on your own. 115.Pp 116The 117.Fl p 118.Ar port 119option allows the rendezvous port number to be set. 120.Pp 121The 122.Fl w 123.Ar message 124option is the only way to send a message to everyone else's screen when 125you start up. 126It is most often used to say 127.Dq eat slime death - NickD's coming in . 128.Pp 129When you die and are asked if you wish to re-enter the game, 130there are other answers than just yes or no. 131You can also reply with a 132.Ic w 133to write a message before continuing or 134.Ic o 135to change how you enter the game 136.Pq cloaked, scanning, or flying . 137.Sh "PLAYING HINTS" 138.Nm 139only works on terminals with at least 24 lines, 80 columns, and 140cursor addressing. 141The screen is divided in to 3 areas. 142On the right hand side is the status area. 143It shows damage sustained, 144charges remaining, 145who's in the game, 146who's scanning 147.Po 148the 149.Ql \&* 150in front of the name 151.Pc , 152who's cloaked 153.Po 154the 155.Ql \&+ 156in front of the name 157.Pc , 158and other players' scores. 159The rest of the screen is taken up by your map of the maze. 160The 24th line 161is used for longer messages that don't fit in the status area. 162.Pp 163.Nm 164uses the same keys to move as 165.Xr vi 1 166does, i.e., 167.Ic h , 168.Ic j , 169.Ic k , 170and 171.Ic l 172for left, down, up, right, respectively. 173To change which direction you're facing in the maze, 174use the upper case version of the movement key 175.Po 176i.e., 177.Ic HJKL 178.Pc . 179You can only fire or throw things in the direction you're facing. 180.Pp 181Other commands are: 182.Bl -tag -width Ic -compact 183.It Ic f No or Ic 1 184Fire a bullet 185.Pq Takes 1 charge 186.It Ic g No or Ic 2 187Throw grenade 188.Pq Takes 9 charges 189.It Ic F No or Ic 3 190Throw satchel charge 191.Pq Takes 25 charges 192.It Ic G No or Ic 4 193Throw bomb 194.Pq Takes 49 charges 195.It Ic 5 196Throw big bomb 197.Pq Takes 81 charges 198.It Ic 6 199Throw even bigger bomb 200.Pq Takes 121 charges 201.It Ic 7 202Throw even more big bomb 203.Pq Takes 169 charges 204.It Ic 8 205Throw even more bigger bomb 206.Pq Takes 225 charges 207.It Ic 9 208Throw very big bomb 209.Pq Takes 289 charges 210.It Ic 0 211Throw very, very big bomb 212.Pq Takes 361 charges 213.It Ic @ 214Throw biggest bomb 215.Pq Takes 441 charges 216.It Ic o 217Throw small slime 218.Pq Takes 5 charges 219.It Ic O 220Throw big slime 221.Pq Takes 10 charges 222.It Ic p 223Throw bigger slime 224.Pq Takes 15 charges 225.It Ic P 226Throw biggest slime 227.Pq Takes 20 charges 228.It Ic s 229Scan 230.Pq show where other players are 231.Pq Takes 1 charge 232.It Ic c 233Cloak 234.Pq hide from scanners 235.Pq Takes 1 charge 236.It Ic ^L 237Redraw screen 238.It Ic q 239Quit 240.El 241.Pp 242The symbols on the screen are: 243.Bl -tag -width Ic -compact 244.It Li \&- \&| \&+ 245walls 246.It Li \&/ \e 247diagonal 248.Pq deflecting 249walls 250.It Li # 251doors 252.Pq dispersion walls 253.It Li ; 254small mine 255.It Li g 256large mine 257.It Li : 258bullet 259.It Li o 260grenade 261.It Li O 262satchel charge 263.It Li @ 264bomb 265.It Li s 266small slime 267.It Li $ 268big slime 269.It Li > < ^ v 270you, facing right, left, up, or down 271.It Li } { i \&! 272other players facing right, left, up, or down 273.It \&* 274explosion 275.It Li \&\e|/ 276.It Li \&-*- 277grenade and large mine explosion 278.It Li \&/|\e 279.El 280.Pp 281Other helpful hints: 282.Bl -bullet -compact 283.It 284You can only fire in the direction you are facing. 285.It 286You can only fire three shots in a row before the gun must cool off. 287.It 288Shots move 5 times faster than you do. 289.It 290To stab someone, 291you face that player and move at them. 292.It 293Stabbing does 2 points worth of damage and shooting does 5 points. 294.It 295Slime does 5 points of damage each time it hits. 296.It 297You start with 15 charges and get 5 more every time a player enters 298or re-enters. 299.It 300Grenade explosions cover a 3 by 3 area, each larger bomb cover a 301correspondingly larger area 302.Po 303ranging from 5 by 5 to 21 by 21 304.Pc . 305All explosions are centered around the square the shot hits and 306do the most damage in the center. 307.It 308Slime affects all squares it oozes over. 309The number of squares is equal to the number of charges used, 310multiplied by 311.Va slimefactor 312as set by 313.Xr huntd 6 314.Pq default 3 . 315.It 316One small mine and one large mine are placed in the maze for every new player. 317A mine has a 2% probability of tripping when you walk forward on to it; 31850% when going sideways; 31995% when backing up. 320Tripping a mine costs you 5 points or 10 points, respectively. 321Defusing a mine is worth 1 charge or 9 charges, respectively. 322.It 323You cannot see behind you. 324.It 325Cloaking consumes 1 ammo charge per 20 of your moves. 326.It 327Scanning consumes 1 ammo charge per (20 \(mu the number of players) 328of other player moves. 329.It 330Turning on cloaking turns off scanning \(em turning on scanning turns off 331cloaking. 332.It 333When you kill someone, 334you get 2 more damage capacity points and 2 damage points get taken away. 335.It 336Maximum typeahead is 5 characters. 337.It 338A shot destroys normal 339.Pq i.e., non-diagonal, non-door 340walls. 341.It 342Diagonal walls deflect shots and change orientation. 343.It 344Doors disperse shots in random directions 345.Pq up, down, left, right . 346.It 347Diagonal walls and doors cannot be destroyed by direct shots but may 348be destroyed by an adjacent grenade explosion. 349.It 350Slime goes around walls, not through them. 351.It 352Walls regenerate, reappearing in the order they were destroyed. 353One percent of the regenerated walls will be diagonal walls or doors. 354When a wall is generated directly beneath a player, he is thrown in 355a random direction for a random period of time. 356When he lands, he 357sustains damage 358.Po 359up to 20 percent of the amount of damage already sustained 360.Pc ; 361i.e., 362the less damage he had, the more nimble he is and 363therefore less likely to hurt himself on landing. 364.\"It 365.\"There is a volcano close to the center of the maze which goes off 366.\"close to every 30 deaths. 367.It 368Every 30 deaths or so, a 369.Ql \&? 370will appear. 371It is a wandering bomb which will explode when it hits someone, or 372when it is slimed. 373.It 374If no one moves, everything stands still. 375But see the 376.Va simstep 377configuration variable in 378.Xr huntd 6 379.It 380The environment variable 381.Ev HUNT 382is checked to get the player name. 383If you don't have this variable set, 384.Nm 385will ask you what name you want to play under. 386If you wish to set other options than just your name, 387you can enumerate the options as follows: 388.Dl setenv HUNT "name=Sneaky,team=1,cloak,mapkey=zoFfGg1f2g3F4G" 389sets the player name to Sneaky, 390sets the team to one, 391sets the enter game attribute to cloaked, 392and the maps 393.Ic z No to Ic o , 394.Ic F No to Ic f , 395.Ic G No to Ic g , 396.Ic 1 No to Ic f , 397.Ic 2 No to Ic g , 398.Ic 3 No to Ic F , 399and 400.Ic 4 No to Ic G . 401The 402.Ic mapkey 403option must be last. 404Other options are: 405.Ic scan , fly , nobeep , 406.Ic port= Ns Ar string , 407.Ic host= Ns Ar string , 408and 409.Ic message= Ns Ar string 410\(em which correspond to the command line options. 411String options cannot contain commas since commas 412are used to separate options. 413.It 414It's a boring game if you're the only one playing. 415.El 416.Pp 417Your score is the decayed average of the ratio of number of kills to number 418of times you entered the game and is only kept for the duration 419of a single session of 420.Nm . 421.\" .Pp 422.\" .Nm 423.\" normally drives up the load average to be approximately 424.\" (number_of_players + 0.5) greater than it would be without a 425.\" .Nm 426.\" game executing. 427.Sh STATISTICS 428The 429.Fl S 430option fetches the current game statistics. 431.Pp 432Two groups of statistics are presented: the first group of statistics is 433that of the clients currently connected to the game, and is reset each 434time the client rejoins, while the second group of statistics is on all 435players 436.Pq dead or alive 437by name, and collected over the lifetime of the 438game daemon. 439.Pp 440The meaning of the column headings are as follows: 441.Bl -tag -width No -compact -offset 442.It Score 443the player's last score 444.It Ducked 445how many shots a player ducked 446.It Absorb 447how many shots a player absorbed 448.It Faced 449how many shots were fired at player's face 450.It Shot 451how many shots were fired at player 452.It Robbed 453how many of player's shots were absorbed 454.It Missed 455how many of player's shots were ducked 456.It SlimeK 457how many slime kills player had 458.It Enemy 459how many enemies were killed 460.It Friend 461how many friends were killed 462.Pq self and same team 463.It Deaths 464how many times player died 465.It Still 466how many times player died without typing in any commands 467.It Saved 468how many times a shot/bomb would have killed player if he hadn't 469ducked or absorbed it 470.It Connect 471current connection state(s) of player: 472.Sq p 473for playing, 474.Sq m 475for monitoring 476.El 477.Sh FILES 478.Bl -tag -width Pa -compact 479.It Pa /usr/games/huntd 480game coordinator 481.El 482.Sh SEE ALSO 483.Xr huntd 6 484.Sh AUTHORS 485Conrad Huang, Ken Arnold, and Greg Couch; 486.br 487University of California, San Francisco, Computer Graphics Lab 488.Sh BUGS 489To keep up the pace, not everything is as realistic as possible. 490.Pp 491The historic behaviour of 492.Nm 493automatically starting 494.Xr huntd 6 495is no longer supported. 496.Sh ACKNOWLEDGEMENTS 497We thank Don Kneller, 498John Thomason, Eric Pettersen, Mark Day, 499and Scott Weiner for providing 500endless hours of play-testing to improve the character of the game. 501We hope their significant others will forgive them; 502we certainly don't. 503