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.
16 * Header for fireball.c
25 #define ET_SPARKS 0 //little sparks, like when laser hits wall
26 #define ET_MULTI_START 1 //first part of multi-part explosion
27 #define ET_MULTI_SECOND 2 //second part of multi-part explosion
29 // data for exploding walls (such as hostage door)
30 typedef struct expl_wall {
35 #define MAX_EXPLODING_WALLS 10
37 extern expl_wall expl_wall_list[MAX_EXPLODING_WALLS];
39 object *object_create_explosion(short segnum, vms_vector *position, fix size, int vclip_type);
40 object *object_create_muzzle_flash(short segnum, vms_vector *position, fix size, int vclip_type);
42 object *object_create_badass_explosion(object *objp, short segnum,
43 vms_vector *position, fix size, int vclip_type,
44 fix maxdamage, fix maxdistance, fix maxforce, int parent);
46 // blows up a badass weapon, creating the badass explosion
47 // return the explosion object
48 object *explode_badass_weapon(object *obj,vms_vector *pos);
50 // blows up the player with a badass explosion
51 // return the explosion object
52 object *explode_badass_player(object *obj);
54 void explode_object(object *obj,fix delay_time);
55 void do_explosion_sequence(object *obj);
56 void do_debris_frame(object *obj); // deal with debris for this frame
58 void draw_fireball(object *obj);
60 void explode_wall(int segnum, int sidenum);
61 void do_exploding_wall_frame(void);
62 void init_exploding_walls(void);
63 extern void maybe_drop_net_powerup(int powerup_type);
64 extern void maybe_replace_powerup_with_energy(object *del_obj);
66 extern int get_explosion_vclip(object *obj, int stage);
67 extern int drop_powerup(int type, int id, int num, vms_vector *init_vel, vms_vector *pos, int segnum);
69 // creates afterburner blobs behind the specified object
70 void drop_afterburner_blobs(object *obj, int count, fix size_scale, fix lifetime);
72 #endif /* _FIREBALL_H */