2 THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
3 SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
4 END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
5 ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
6 IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
7 SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
8 FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
9 CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
10 AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
11 COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
22 #define MAX_CONTROLCEN_GUNS 8
24 #define CONTROLCEN_WEAPON_NUM 6
26 #define MAX_CONTROLCEN_LINKS 10
28 typedef struct control_center_triggers {
30 short seg[MAX_CONTROLCEN_LINKS];
31 short side[MAX_CONTROLCEN_LINKS];
32 } __pack__ control_center_triggers;
34 extern control_center_triggers ControlCenterTriggers;
36 typedef struct reactor {
39 vms_vector gun_points[MAX_CONTROLCEN_GUNS];
40 vms_vector gun_dirs[MAX_CONTROLCEN_GUNS];
43 #define MAX_REACTORS 7
45 extern int Num_reactors;
47 extern reactor Reactors[MAX_REACTORS];
49 //@@extern int N_controlcen_guns;
50 extern int Control_center_been_hit;
51 extern int Control_center_player_been_seen;
52 extern int Control_center_next_fire_time;
53 extern int Control_center_present;
54 extern int Dead_controlcen_object_num;
56 //@@extern vms_vector controlcen_gun_points[MAX_CONTROLCEN_GUNS];
57 //@@extern vms_vector controlcen_gun_dirs[MAX_CONTROLCEN_GUNS];
58 extern vms_vector Gun_pos[MAX_CONTROLCEN_GUNS];
60 //do whatever this thing does in a frame
61 extern void do_controlcen_frame(object *obj);
63 // Initialize control center for a level.
64 // Call when a new level is started.
65 extern void init_controlcen_for_level(void);
67 extern void do_controlcen_destroyed_stuff(object *objp);
68 extern void do_controlcen_dead_frame(void);
70 #define DEFAULT_CONTROL_CENTER_EXPLOSION_TIME 30 // Note: Usually uses Alan_pavlish_reactor_times, but can be overridden in editor.
72 extern fix Countdown_timer;
73 extern int Control_center_destroyed,Countdown_seconds_left;
74 extern int Base_control_center_explosion_time; //how long to blow up on insane
75 extern int Reactor_strength;
78 #define reactor_read_n(r, n, fp) cfread(r, sizeof(reactor), n, fp)
79 #define control_center_triggers_read(cct, fp) cfread(cct, sizeof(control_center_triggers), 1, fp)
82 * reads n reactor structs from a CFILE
84 extern int reactor_read_n(reactor *r, int n, CFILE *fp);
87 * reads a control_center_triggers structure from a CFILE
89 extern void control_center_triggers_read(control_center_triggers *cct, CFILE *fp);