Mercurial > ~darius > hgwebdir.cgi > paradise_server
comparison src/torp.c @ 19:de685799a432
Made torps wobbly when going through nebulous terrain.
Only happens if nebula_effect contains photon.
author | darius |
---|---|
date | Wed, 24 Dec 1997 12:40:04 +0000 |
parents | 9fda93e18de5 |
children |
comparison
equal
deleted
inserted
replaced
18:1424868939a8 | 19:de685799a432 |
---|---|
26 #include "defs.h" | 26 #include "defs.h" |
27 #include "struct.h" | 27 #include "struct.h" |
28 #include "data.h" | 28 #include "data.h" |
29 #include "shmem.h" | 29 #include "shmem.h" |
30 | 30 |
31 /* Foo */ | |
32 | |
33 | 31 |
34 /*-----------------------------MODULE VARIABLES----------------------------*/ | 32 /*-----------------------------MODULE VARIABLES----------------------------*/ |
35 | 33 |
36 static struct timeval lasttp; | 34 static struct timeval lasttp; |
37 | 35 |
49 | 47 |
50 /*----------------------------VISIBLE FUNCTIONS------------------------*/ | 48 /*----------------------------VISIBLE FUNCTIONS------------------------*/ |
51 | 49 |
52 /*---------------------------------NTORP--------------------------------*/ | 50 /*---------------------------------NTORP--------------------------------*/ |
53 /* | 51 /* |
54 * If a set of given conditions are met, fire a single torp in direction * | 52 * If a set of given conditions are met, fire a single torp in direction |
55 * course. Type is used because robots are allowed to shoot straight. * | 53 * course. Type is used because robots are allowed to shoot straight. |
56 * Torps sent with status TMOVE wobble a bit. TSTRAIGHT torps (fired * by | 54 * Torps sent with status TMOVE wobble a bit. TSTRAIGHT torps (fired by |
57 * robots) move in a straight line. * | 55 * robots) move in a straight line. |
58 * | 56 * |
59 * torp->t_fuse is the life of the torpedo. It is set here based on * a | 57 * torp->t_fuse is the life of the torpedo. It is set here based on a |
60 * random function. Torps currently live two to five seconds. | 58 * random function. Torps currently live two to five seconds. |
61 */ | 59 */ |
62 | 60 |
63 | 61 |
64 extern void move_torp(); | 62 extern void move_torp(); |