summaryrefslogtreecommitdiffstats
path: root/games/hunt/huntd/huntd.6
blob: 65bb168de6b9d1221680ef925d6df95b1e0bf25f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
.\"	$NetBSD: huntd.6,v 1.3 1998/01/09 08:03:42 perry Exp $
.\"	$OpenBSD: huntd.6,v 1.5 1999/03/14 02:07:31 pjanzen Exp $
.\"
.\"  Hunt
.\"  Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold
.\"  San Francisco, California
.\"
.\"  Copyright (c) 1985 Regents of the University of California.
.\"  All rights reserved.  The Berkeley software License Agreement
.\"  specifies the terms and conditions for redistribution.
.\"
.Dd August 21, 1986
.Os 4BSD
.Dt HUNTD 6
.Sh NAME
.Nm huntd
.Nd hunt daemon, back-end for hunt game
.Sh SYNOPSIS
.Nm huntd
.Op Fl s
.Op Fl p Ar port
.Op Fl a Ar addr
.Sh DESCRIPTION
.Nm
controls the multi-player
.Xr hunt 6
game.
.Pp
The
.Fl s
option is for running
.Nm
forever (server mode).
This is similar to running it under the control of
.Xr inetd 8
(see below),
but it consumes a process table entry when no one is playing.
.Pp
The
.Fl p Ar port
option changes the udp port number used to rendezvous with the player
process and thus allows for private games of
.Xr hunt 6 .
.Pp
The
.Fl a Ar addr
option is used to cause the server to bind to a specific interface address.
The
.Ar addr
must be given as an IP address.
.Sh INETD
.Pp
To run
.Nm
from
.Xr inetd 8 ,
you'll need to put the
.Sq hunt
service in
.Pa /etc/services :
.Dl hunt 26740/udp		# multi-player/multi-host mazewars
and add a line in
.Pa /etc/inetd.conf :
.Dl hunt dgram udp wait nobody /usr/games/huntd HUNT
.Pp
Do not use any of the command line options \(em if you want
.Xr inetd 8
to start up
.Nm huntd
on a private port, change the port listed in
.Pa /etc/services .
.Sh "NETWORK RENDEZVOUS"
When
.Xr hunt 6
starts up, it broadcasts on the local area net
(using the broadcast address for each interface) to find a
.Nm hunt
game in progress.
If a
.Nm huntd
hears the request, it sends back the port number for the
.Nm hunt
process to connect to.
.Pp
Regardless of how
.Nm
is started, it always checks incoming connections with
.Xr host_access 5 ,
using a service name of
.Sq huntd .
.Sh "CONFIGURATION"
When
.Nm
starts, it looks for configuration files that determine
game parameters.
Each line of a configuration file is of the form
.Ar var No = Ar value .
Comments start with a hash sign (`#').
The configuration files loaded in order (if they exist) are:
.Pa /etc/hunt.conf ,
.Pa "$HOME/.hunt.conf" ,
and
.Pa ./.hunt.conf .
.Pp
Many of these variables require intimate knowledge of the
driver source code.
The complete list of configurable variables is:
.Bl -tag -width pdroneabsorb -compact
.It random
enable dispersion doors (default 1)
.It reflect
enable generation of reflection walls (default 1)
.It monitor
enable monitors (default 1)
.It ooze
enable slime shots (default 1)
.It fly
enable flight (default 1)
.It volcano
enable volcanoes (default 1)
.It drone
enable drone (default 1)
.It boots
enable boots (default 1)
.It scan
enable scanning (default 1)
.It cloak
enable cloaking (default 1)
.It logerr
errors to stderr (default 1)
.It syslog
errors to syslog(8) (default 0)
.It scoredecay
nr deaths before nr kills begins to decay (default 15)
.It maxremove
Maximum number of holes in the maze wall (default 40)
.It linger
Seconds to keep game open with no players. \&-1 means forever. (default 90)
.It flytime
max time flying (default 20)
.It flystep
max displacement each flying time unit (default 5)
.It volcano_max
max size of volcano (default 50)
.It ptrip_face
chance of tripping a grenade on pickup (default 2)
.It ptrip_back
chance of same when backing onto it (default 95)
.It ptrip_side
chance of same when walking sideways into it (default 50)
.It prandom
percentage of time dispersion doors appear (default 1)
.It preflect
percentage of time reflection walls appear (default 1)
.It pshot_coll
percent chance of shots colliding (default 5)
.It pgren_coll
percent chance of grenades colliding (default 10)
.It pgren_catch
facing player chance of catching grenade (default 10)
.It pmiss
chance of bullet missing player (default 5)
.It pdroneabsorb
chance of absorbing a drone (default 1)
.It fall_frac
divisor of damage used for fall damage (default 5)
.It bulspd
speed of bullets (default 5)
.It ishots
initial ammo for player (default 15)
.It nshots
ammo boost for all when new player joins (default 5)
.It maxncshot
max number of simultaneous shots per player (default 2)
.It maxdam
the initial shield for each player (default 10)
.It mindam
minimum damage from one unit of ammo (default 5)
.It stabdam
damage from stabbing (default 2)
.It killgain
shield gained from killing someone (default 2)
.It slimefactor
charge multiplier for slime (default 3)
.It slimespeed
speed of slime (default 5)
.It lavaspeed
speed of volcano lava (default 1)
.It cloaklen
duration of a cloak (default 20)
.It scanlen
duration of a scan (default 20)
.It mindshot
minimum shot class needed to make a drone (default 2)
.It simstep
minimum simulation step in microseconds. Zero means traditional blocking 
behaviour. Try 55000 for something reasonable (default 0)
.El
.Sh "SEE ALSO"
.Xr hunt 6 ,
.Xr inetd 8 ,
.Xr hosts_options 5 .
.Sh AUTHORS
Conrad Huang, Ken Arnold, and Greg Couch;
.br
University of California, San Francisco, Computer Graphics Lab
.\"Sh BUGS