void Weapon_BFG (edict_t *ent) { static int pause_frames[] = {39, 45, 50, 55, 0}; static int fire_frames[] = {9, 17, 0}; Weapon_Generic (ent, 8, 32, 55, 58, pause_frames, fire_frames, weapon_bfg_fire); }
void Weapon_Test (edict_t *ent) { Weapon_Generic (ent, testWeap_FRAME_ACTIVATE_LAST, testWeap_FRAME_FIRE_LAST, testWeap_FRAME_IDLE_LAST, testWeap_FRAME_DEACTIVATE_LAST, testWeap_pause_frames, testWeap_fire_frames, Weapon_Test_Fire); }
void Weapon_HyperBlaster (edict_t *ent) { static int pause_frames[] = {0}; static int fire_frames[] = {6, 7, 8, 9, 10, 11, 0}; Weapon_Generic (ent, 5, 20, 49, 53, pause_frames, fire_frames, Weapon_HyperBlaster_Fire); }
void Weapon_Bazooka (edict_t *ent) { static int pause_frames[] = {0}; static int fire_frames[1]; fire_frames[0]=(ent->client->aim)?73:4; ent->client->p_rnd= &ent->client->mags[usa_index].antitank_rnd; ent->client->crosshair = false; //faf if (ent->client->ps.gunframe == 80)//(last fire) { ent->client->weaponstate = WEAPON_LOWER; ent->client->aim = false; } Weapon_Generic (ent, 3, 5, 45, 65, 65, 69, 72, 80, 86,//faf75, 86, pause_frames, fire_frames, Weapon_Rocket_Fire); }
void Weapon_Chaingun (edict_t *ent) { static int pause_frames[] = {38, 43, 51, 61, 0}; static int fire_frames[] = {5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 0}; Weapon_Generic (ent, 4, 31, 61, 64, pause_frames, fire_frames, Chaingun_Fire); }
void Weapon_Machinegun (edict_t *ent) { static int pause_frames[] = {23, 45, 0}; static int fire_frames[] = {4, 5, 0}; Weapon_Generic (ent, 3, 5, 45, 49, pause_frames, fire_frames, Machinegun_Fire); }
void Weapon_Shotgun (edict_t *ent) { static int pause_frames[] = {22, 28, 34, 0}; static int fire_frames[] = {8, 9, 0}; Weapon_Generic (ent, 7, 18, 36, 39, pause_frames, fire_frames, weapon_shotgun_fire); }
void Weapon_SuperShotgun (edict_t *ent) { static int pause_frames[] = {29, 42, 57, 0}; static int fire_frames[] = {7, 0}; Weapon_Generic (ent, 6, 17, 57, 61, pause_frames, fire_frames, weapon_supershotgun_fire); }
void Weapon_Railgun (edict_t *ent) { static int pause_frames[] = {56, 0}; static int fire_frames[] = {4, 0}; Weapon_Generic (ent, 3, 18, 56, 61, pause_frames, fire_frames, weapon_railgun_fire); }
void Weapon_SniperRifle (edict_t *ent) { static int pause_frames[] = {56, 0}; static int fire_frames[] = {4, 0}; Weapon_Generic (ent, 3, 16, 56, 57, pause_frames, fire_frames, weapon_sniper_fire); }
void Weapon_Shotgun (edict_t * ent) { static int pause_frames[] = {0}; static int fire_frames[1]; fire_frames[0]=(ent->client->aim)?76:8; ent->client->p_fract = &ent->client->mags[usm_index].shotgun_fract; ent->client->p_rnd= &ent->client->mags[usm_index].shotgun_rnd; ent->client->crosshair = false; if (ent->client->ps.gunframe == 4) gi.sound(ent, CHAN_VOICE, gi.soundindex("usa/shotgun/load.wav"),1, ATTN_NORM, 0); else if (ent->client->ps.gunframe == 62) gi.sound(ent, CHAN_VOICE, gi.soundindex("usa/shotgun/reload.wav"),1, ATTN_NORM, 0); if (ent->client->weaponstate == WEAPON_RELOADING) { Shotgun_Reload(ent, 7, 16, 55, 67, 67, 72, 75, 84, 92, pause_frames, fire_frames, Weapon_Shotgun_Fire); } else { Weapon_Generic (ent, 7, 16, 55, 67, 67, 72, 75, 84, 92, pause_frames, fire_frames, Weapon_Shotgun_Fire); } }
void Weapon_30cal (edict_t *ent) { static int pause_frames[] = {0};//{38, 61, 0}; static int fire_frames[2]; fire_frames[0]=(ent->client->aim)?90:20; fire_frames[1]=(ent->client->aim)?91:21; // fire_frames[2]=(ent->client->aim)?91:0; ent->client->p_rnd= &ent->client->mags[usa_index].hmg_rnd; ent->client->crosshair = false; /* if (ent->client->weaponstate == WEAPON_RELOADING) { if (ent->client->ps.gunframe == 62 || ent->client->ps.gunframe == 70) gi.sound(ent, CHAN_AUTO, gi.soundindex("usa/bhmg/unload.wav"), 1, ATTN_NORM, 0); if (ent->client->ps.gunframe == 15) gi.sound(ent, CHAN_AUTO, gi.soundindex("usa/bhmg/reload.wav"), 1, ATTN_NORM, 0); }*/ Weapon_Generic (ent, 19, 21, 61, 79, 82, 85, 89, 91, 102, pause_frames, fire_frames, Weapon_HMG_Fire); }
void Weapon_Blaster (edict_t *ent) { static int pause_frames[] = {19, 32, 0}; static int fire_frames[] = {5, 0}; iteminfo_t *info = getWornItemInfo(ent, 0); Weapon_Generic (ent, 4, 4 + getBlasterFirerate(ent, getWornItem(ent, GIEX_ITEM_WEAPON), info), 52, 55, pause_frames, fire_frames, Weapon_Blaster_Fire); }
void Weapon_GrenadeLauncher (edict_t *ent) { static int pause_frames[] = {34, 51, 59, 0}; static int fire_frames[] = {6, 0}; Weapon_Generic (ent, 5, 16, 59, 64, pause_frames, fire_frames, weapon_grenadelauncher_fire); }
void Weapon_RocketLauncher (edict_t *ent) { static int pause_frames[] = {25, 33, 42, 50, 0}; static int fire_frames[] = {5, 0}; Weapon_Generic (ent, 4, 12, 50, 54, pause_frames, fire_frames, Weapon_RocketLauncher_Fire); }
void Weapon_Blaster (edict_t *ent) { static int pause_frames[] = {19, 32, 0}; static int fire_frames[] = {5, 0}; Weapon_Generic (ent, 4, 8, 52, 55, pause_frames, fire_frames, Weapon_Blaster_Fire); }
void Weapon_RocketLauncher (edict_t *ent) { static int pause_frames[] = {25, 33, 42, 50, 0}; static int fire_frames[] = {5, 0}; iteminfo_t *info = getWornItemInfo(ent, 0); Weapon_Generic (ent, 4, 12 + info->arg3, 50, 54, pause_frames, fire_frames, Weapon_RocketLauncher_Fire); }
void Weapon_Railgun (edict_t *ent) { static int pause_frames[] = {56, 0}; static int fire_frames[] = {4, 0}; iteminfo_t *info = getWornItemInfo(ent, 0); Weapon_Generic (ent, 3, 18 + info->arg3, 56, 61, pause_frames, fire_frames, weapon_railgun_fire); }
void Weapon_Shotgun (edict_t *ent) { static int pause_frames[] = {22, 28, 34, 0}; static int fire_frames[] = {8, 0}; iteminfo_t *info = getWornItemInfo(ent, 0); Weapon_Generic (ent, 7, 7 + getShotgunFirerate(ent, getWornItem(ent, GIEX_ITEM_WEAPON), info), 36, 39, pause_frames, fire_frames, weapon_shotgun_fire); }
void Weapon_GrenadeLauncher (edict_t *ent) { static int pause_frames[] = {34, 51, 59, 0}; static int fire_frames[] = {6, 0}; iteminfo_t *info = getWornItemInfo(ent, 0); Weapon_Generic (ent, 5, 16 + info->arg3, 59, 64, pause_frames, fire_frames, weapon_grenadelauncher_fire); }
void Weapon_Blaster(edict_t *ent) { static int pause_frames[] = {19, 32, 0}; static int fire_frames[] = {5, 0}; if (!ent) { return; } Weapon_Generic(ent, 4, 8, 52, 55, pause_frames, fire_frames, Weapon_Blaster_Fire); if (is_quadfire) { Weapon_Generic(ent, 4, 8, 52, 55, pause_frames, fire_frames, Weapon_Blaster_Fire); } }
void Weapon_Shotgun(edict_t *ent) { static int pause_frames[] = {22, 28, 34, 0}; static int fire_frames[] = {8, 9, 0}; if (!ent) { return; } Weapon_Generic(ent, 7, 18, 36, 39, pause_frames, fire_frames, weapon_shotgun_fire); if (is_quadfire) { Weapon_Generic(ent, 7, 18, 36, 39, pause_frames, fire_frames, weapon_shotgun_fire); } }
void Weapon_Machinegun(edict_t *ent) { static int pause_frames[] = {23, 45, 0}; static int fire_frames[] = {4, 5, 0}; if (!ent) { return; } Weapon_Generic(ent, 3, 5, 45, 49, pause_frames, fire_frames, Machinegun_Fire); if (is_quadfire) { Weapon_Generic(ent, 3, 5, 45, 49, pause_frames, fire_frames, Machinegun_Fire); } }
void Weapon_BFG(edict_t *ent) { static int pause_frames[] = {39, 45, 50, 55, 0}; static int fire_frames[] = {9, 17, 0}; if (!ent) { return; } Weapon_Generic(ent, 8, 32, 55, 58, pause_frames, fire_frames, weapon_bfg_fire); if (is_quadfire) { Weapon_Generic(ent, 8, 32, 55, 58, pause_frames, fire_frames, weapon_bfg_fire); } }
void Weapon_Railgun(edict_t *ent) { static int pause_frames[] = {56, 0}; static int fire_frames[] = {4, 0}; Weapon_Generic(ent, 3, 18, 56, 61, pause_frames, fire_frames, weapon_railgun_fire); if (!ent) { return; } if (is_quadfire) { Weapon_Generic(ent, 3, 18, 56, 61, pause_frames, fire_frames, weapon_railgun_fire); } }
void Weapon_Ionripper(edict_t *ent) { static int pause_frames[] = {36, 0}; static int fire_frames[] = {5, 0}; if (!ent) { return; } Weapon_Generic(ent, 4, 6, 36, 39, pause_frames, fire_frames, weapon_ionripper_fire); if (is_quadfire) { Weapon_Generic(ent, 4, 6, 36, 39, pause_frames, fire_frames, weapon_ionripper_fire); } }
void Weapon_Phalanx(edict_t *ent) { static int pause_frames[] = {29, 42, 55, 0}; static int fire_frames[] = {7, 8, 0}; if (!ent) { return; } Weapon_Generic(ent, 5, 20, 58, 63, pause_frames, fire_frames, weapon_phalanx_fire); if (is_quadfire) { Weapon_Generic(ent, 5, 20, 58, 63, pause_frames, fire_frames, weapon_phalanx_fire); } }
void Weapon_RocketLauncher(edict_t *ent) { static int pause_frames[] = {25, 33, 42, 50, 0}; static int fire_frames[] = {5, 0}; if (!ent) { return; } Weapon_Generic(ent, 4, 12, 50, 54, pause_frames, fire_frames, Weapon_RocketLauncher_Fire); if (is_quadfire) { Weapon_Generic(ent, 4, 12, 50, 54, pause_frames, fire_frames, Weapon_RocketLauncher_Fire); } }
void Weapon_HyperBlaster(edict_t *ent) { static int pause_frames[] = {0}; static int fire_frames[] = {6, 7, 8, 9, 10, 11, 0}; if (!ent) { return; } Weapon_Generic(ent, 5, 20, 49, 53, pause_frames, fire_frames, Weapon_HyperBlaster_Fire); if (is_quadfire) { Weapon_Generic(ent, 5, 20, 49, 53, pause_frames, fire_frames, Weapon_HyperBlaster_Fire); } }
void Weapon_SuperShotgun (edict_t *ent) { static int pause_frames[] = {29, 42, 57, 0}; static int fire_frames[] = {7, 9, 0}; iteminfo_t *info = getWornItemInfo(ent, 0); if (info->arg7 == 0) { fire_frames[1] = 0; } else { fire_frames[1] = fire_frames[0] + info->arg7; } Weapon_Generic (ent, 6, 17 + info->arg3, 57, 61, pause_frames, fire_frames, weapon_supershotgun_fire); }