2001-07-19 07:27:14 +00:00
|
|
|
#define NIT_TESLA 32768 //The *real* bug zapper!
|
|
|
|
#define NIT_SECURITY_CAMERA 65536 //CH Security Camera
|
|
|
|
#define NIT_TELEPORTER 131072 //CH Teleporter
|
|
|
|
#define PC_ENGINEER_TF_ITEMS NIT_TESLA | NIT_SECURITY_CAMERA | NIT_TELEPORTER
|
|
|
|
|
2001-12-10 03:17:21 +00:00
|
|
|
struct foo = {
|
|
|
|
integer result;
|
|
|
|
string buffer;
|
|
|
|
};
|
|
|
|
|
|
|
|
void (foo bar) eek;
|
2001-08-10 20:35:42 +00:00
|
|
|
float (float a, float b) boing;
|
2001-06-27 22:56:52 +00:00
|
|
|
|
2002-01-18 08:26:37 +00:00
|
|
|
string [6] dot = {
|
|
|
|
"gfx/menudot0.lpm",
|
|
|
|
"gfx/menudot1.lpm",
|
|
|
|
"gfx/menudot2.lpm",
|
|
|
|
"gfx/menudot3.lpm",
|
|
|
|
"gfx/menudot4.lpm",
|
|
|
|
"gfx/menudot5.lpm",
|
|
|
|
};
|
|
|
|
|
2001-06-01 21:57:59 +00:00
|
|
|
float () main =
|
2001-11-02 03:03:01 +00:00
|
|
|
{
|
2001-07-19 07:27:14 +00:00
|
|
|
local float messed_or;
|
2001-07-23 01:31:22 +00:00
|
|
|
local integer handle;
|
2001-06-06 20:05:08 +00:00
|
|
|
local string buffer;
|
2001-06-04 04:52:14 +00:00
|
|
|
|
2001-07-19 07:27:14 +00:00
|
|
|
messed_or = PC_ENGINEER_TF_ITEMS;
|
2001-06-08 00:14:11 +00:00
|
|
|
handle = open ("main.qc", 0);
|
2001-06-06 20:05:08 +00:00
|
|
|
if (handle == -1) {
|
|
|
|
print (strerror (errno ()) + "\n");
|
|
|
|
return 1;
|
2001-06-05 23:53:55 +00:00
|
|
|
}
|
2001-06-06 20:05:08 +00:00
|
|
|
do {
|
|
|
|
buffer = read (handle, 1024);
|
|
|
|
if (read_result == -1) {
|
|
|
|
print (strerror (errno ()) + "\n");
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
print (buffer);
|
|
|
|
} while (read_result == 1024);
|
|
|
|
close (handle);
|
2002-01-18 08:26:37 +00:00
|
|
|
for (handle = 0; handle < 6; handle++)
|
|
|
|
print (dot[handle] + "\n");
|
2001-08-10 20:35:42 +00:00
|
|
|
return 0;
|
2001-06-05 23:53:55 +00:00
|
|
|
};
|