#include "inferno.h"#include "gr.h"#include "game.h"#include "piggy.h"Classes | |
| struct | weapon_info |
Defines | |
| #define | REARM_TIME (F1_0) |
| #define | WEAPON_DEFAULT_LIFETIME (F1_0*12) |
| #define | WEAPON_TYPE_WEAK_LASER 0 |
| #define | WEAPON_TYPE_STRONG_LASER 1 |
| #define | WEAPON_TYPE_CANNON_BALL 2 |
| #define | WEAPON_TYPE_MISSILE 3 |
| #define | MAX_WEAPON_TYPES 30 |
| #define | WEAPON_RENDER_NONE -1 |
| #define | WEAPON_RENDER_LASER 0 |
| #define | WEAPON_RENDER_BLOB 1 |
| #define | WEAPON_RENDER_POLYMODEL 2 |
| #define | WEAPON_RENDER_VCLIP 3 |
| #define | MAX_PRIMARY_WEAPONS 5 |
| #define | MAX_SECONDARY_WEAPONS 5 |
| #define | HAS_LASER_FLAG 0x001 |
| #define | HAS_VULCAN_FLAG 0x002 |
| #define | HAS_SPREADFIRE_FLAG 0x004 |
| #define | HAS_PLASMA_FLAG 0x008 |
| #define | HAS_FUSION_FLAG 0x010 |
| #define | HAS_CONCUSSION_FLAG 0x001 |
| #define | HAS_HOMING_FLAG 0x002 |
| #define | HAS_PROXIMITY_FLAG 0x004 |
| #define | HAS_SMART_FLAG 0x008 |
| #define | HAS_MEGA_FLAG 0x010 |
| #define | CLASS_PRIMARY 0 |
| #define | CLASS_SECONDARY 1 |
| #define | LASER_INDEX 0 |
| #define | VULCAN_INDEX 1 |
| #define | SPREADFIRE_INDEX 2 |
| #define | PLASMA_INDEX 3 |
| #define | FUSION_INDEX 4 |
| #define | CONCUSSION_INDEX 0 |
| #define | HOMING_INDEX 1 |
| #define | PROXIMITY_INDEX 2 |
| #define | SMART_INDEX 3 |
| #define | MEGA_INDEX 4 |
| #define | NUM_SHAREWARE_WEAPONS 3 |
| #define | VULCAN_AMMO_SCALE (0x198300/2) |
| #define | HAS_WEAPON_FLAG 1 |
| #define | HAS_ENERGY_FLAG 2 |
| #define | HAS_AMMO_FLAG 4 |
| #define | HAS_ALL (HAS_WEAPON_FLAG|HAS_ENERGY_FLAG|HAS_AMMO_FLAG) |
Functions | |
| void | do_weapon_select (int weapon_num, int secondary_flag) |
| void | show_weapon_status (void) |
| void | auto_select_weapon (int weapon_type) |
| void | select_weapon (int weapon_num, int secondary_flag, int print_message, int wait_for_rearm) |
| int | player_has_weapon (int weapon_num, int secondary_flag) |
| int | pick_up_secondary (int weapon_index, int count) |
| int | pick_up_primary (int weapon_index) |
| int | pick_up_ammo (int class_flag, int weapon_index, int ammo_count) |
| void | maybe_select_primary (int weapon_index) |
| void | maybe_select_secondary (int weapon_index) |
Variables | |
| weapon_info | Weapon_info [] |
| int | N_weapon_types |
| byte | Primary_weapon |
| byte | Secondary_weapon |
| ubyte | Primary_weapon_to_weapon_info [MAX_PRIMARY_WEAPONS] |
| ubyte | Secondary_weapon_to_weapon_info [MAX_SECONDARY_WEAPONS] |
| char * | Primary_weapon_names_short [] |
| char * | Secondary_weapon_names_short [] |
| char * | Primary_weapon_names [] |
| char * | Secondary_weapon_names [] |
| int | Primary_ammo_max [MAX_PRIMARY_WEAPONS] |
| ubyte | Secondary_ammo_max [MAX_PRIMARY_WEAPONS] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.6