Client: Replace all calls from View_EjectShell to View_EjectShellAttachment
This commit is contained in:
parent
29009ffbb9
commit
14c23b521f
19 changed files with 24 additions and 20 deletions
|
@ -60,8 +60,12 @@ struct
|
|||
entity m_eViewModel;
|
||||
entity m_eMuzzleflash;
|
||||
int m_iVMBones;
|
||||
int m_iVMEjectBone;
|
||||
|
||||
/* viewmodel shell ejection */
|
||||
float m_fEjectModel;
|
||||
vector m_vecEjectPos;
|
||||
vector m_vecEjectVel;
|
||||
|
||||
int m_iLastWeapon;
|
||||
int m_iOldWeapon;
|
||||
float m_flBobTime;
|
||||
|
|
|
@ -126,7 +126,7 @@ w_ak47_primary(void)
|
|||
|
||||
#ifdef CLIENT
|
||||
View_SetMuzzleflash(MUZZLE_RIFLE);
|
||||
View_EjectShell(SHELL_RIFLE, 0);
|
||||
View_EjectShellAttachment(SHELL_RIFLE, 0, [0, -80, 100]);
|
||||
|
||||
int r = (float)input_sequence % 3;
|
||||
switch (r) {
|
||||
|
|
|
@ -126,7 +126,7 @@ w_aug_primary(void)
|
|||
|
||||
#ifdef CLIENT
|
||||
View_SetMuzzleflash(MUZZLE_RIFLE);
|
||||
View_EjectShell(SHELL_RIFLE, 0);
|
||||
View_EjectShellAttachment(SHELL_RIFLE, 0, [0, -80, 100]);
|
||||
|
||||
int r = (float)input_sequence % 3;
|
||||
switch (r) {
|
||||
|
|
|
@ -129,7 +129,7 @@ w_deagle_primary(void)
|
|||
|
||||
#ifdef CLIENT
|
||||
View_SetMuzzleflash(MUZZLE_RIFLE);
|
||||
View_EjectShell(SHELL_PISTOL, 0);
|
||||
View_EjectShellAttachment(SHELL_PISTOL, 0, [0, -80, 100]);
|
||||
|
||||
if (pl.deagle_mag <= 0) {
|
||||
Weapons_ViewAnimation(DEAGLE_SHOOT_EMPTY);
|
||||
|
|
|
@ -144,7 +144,7 @@ w_elites_primary(void)
|
|||
|
||||
int r = (float)input_sequence % 5;
|
||||
if (pl.mode_temp) {
|
||||
View_EjectShell(SHELL_PISTOL, 1);
|
||||
View_EjectShellAttachment(SHELL_PISTOL, 1, [0, -80, 100]);
|
||||
|
||||
if (pl.elites_mag <= 0) {
|
||||
Weapons_ViewAnimation(ELITES_SHOOT_LEFTLAST);
|
||||
|
@ -168,7 +168,7 @@ w_elites_primary(void)
|
|||
}
|
||||
}
|
||||
} else {
|
||||
View_EjectShell(SHELL_PISTOL, 0);
|
||||
View_EjectShellAttachment(SHELL_PISTOL, 0, [0, 80, 100]);
|
||||
if (pl.elites_mag <= 0) {
|
||||
Weapons_ViewAnimation(ELITES_SHOOT_RIGHTLAST);
|
||||
} else {
|
||||
|
|
|
@ -129,7 +129,7 @@ w_fiveseven_primary(void)
|
|||
|
||||
#ifdef CLIENT
|
||||
View_SetMuzzleflash(MUZZLE_RIFLE);
|
||||
View_EjectShell(SHELL_PISTOL, 0);
|
||||
View_EjectShellAttachment(SHELL_PISTOL, 0, [0, -80, 100]);
|
||||
|
||||
if (pl.fiveseven_mag <= 0) {
|
||||
Weapons_ViewAnimation(FIVESEVEN_SHOOT_EMPTY);
|
||||
|
|
|
@ -124,7 +124,7 @@ w_g3sg1_primary(void)
|
|||
|
||||
#ifdef CLIENT
|
||||
View_SetMuzzleflash(MUZZLE_RIFLE);
|
||||
View_EjectShell(SHELL_RIFLE, 0);
|
||||
View_EjectShellAttachment(SHELL_RIFLE, 0, [0, -80, 100]);
|
||||
|
||||
int r = (float)input_sequence % 2;
|
||||
switch (r) {
|
||||
|
|
|
@ -159,7 +159,7 @@ w_glock18_primary(void)
|
|||
|
||||
#ifdef CLIENT
|
||||
View_SetMuzzleflash(MUZZLE_RIFLE);
|
||||
View_EjectShell(SHELL_PISTOL, 0);
|
||||
View_EjectShellAttachment(SHELL_PISTOL, 0, [0, -80, 100]);
|
||||
#else
|
||||
|
||||
if (pl.flags & FL_CROUCHING)
|
||||
|
|
|
@ -146,7 +146,7 @@ w_m4a1_primary(void)
|
|||
} else {
|
||||
View_SetMuzzleflash(MUZZLE_RIFLE);
|
||||
}
|
||||
View_EjectShell(SHELL_RIFLE, 0);
|
||||
View_EjectShellAttachment(SHELL_RIFLE, 0, [0, -80, 100]);
|
||||
|
||||
/* this stuff is predicted */
|
||||
int r = (float)input_sequence % 3;
|
||||
|
|
|
@ -125,7 +125,7 @@ w_mac10_primary(void)
|
|||
|
||||
#ifdef CLIENT
|
||||
View_SetMuzzleflash(MUZZLE_RIFLE);
|
||||
View_EjectShell(SHELL_PISTOL, 0);
|
||||
View_EjectShellAttachment(SHELL_PISTOL, 0, [0, -80, 100]);
|
||||
|
||||
int r = (float)input_sequence % 3;
|
||||
switch (r) {
|
||||
|
|
|
@ -125,7 +125,7 @@ w_mp5_primary(void)
|
|||
|
||||
#ifdef CLIENT
|
||||
View_SetMuzzleflash(MUZZLE_RIFLE);
|
||||
View_EjectShell(SHELL_RIFLE, 0);
|
||||
View_EjectShellAttachment(SHELL_RIFLE, 0, [0, -80, 100]);
|
||||
|
||||
int r = (float)input_sequence % 3;
|
||||
switch (r) {
|
||||
|
|
|
@ -129,7 +129,7 @@ w_p228_primary(void)
|
|||
|
||||
#ifdef CLIENT
|
||||
View_SetMuzzleflash(MUZZLE_RIFLE);
|
||||
View_EjectShell(SHELL_PISTOL, 0);
|
||||
View_EjectShellAttachment(SHELL_PISTOL, 0, [0, -80, 100]);
|
||||
|
||||
if (pl.p228_mag <= 0) {
|
||||
Weapons_ViewAnimation(P228_SHOOT_EMPTY);
|
||||
|
|
|
@ -125,7 +125,7 @@ w_p90_primary(void)
|
|||
|
||||
#ifdef CLIENT
|
||||
View_SetMuzzleflash(MUZZLE_RIFLE);
|
||||
View_EjectShell(SHELL_PISTOL, 0);
|
||||
View_EjectShellAttachment(SHELL_PISTOL, 0, [0, -80, 100]);
|
||||
|
||||
int r = (float)input_sequence % 3;
|
||||
switch (r) {
|
||||
|
|
|
@ -124,7 +124,7 @@ w_para_primary(void)
|
|||
|
||||
#ifdef CLIENT
|
||||
View_SetMuzzleflash(MUZZLE_RIFLE);
|
||||
View_EjectShell(SHELL_RIFLE, 0);
|
||||
View_EjectShellAttachment(SHELL_RIFLE, 0, [0, -80, 100]);
|
||||
|
||||
int r = (float)input_sequence % 2;
|
||||
switch (r) {
|
||||
|
|
|
@ -124,7 +124,7 @@ w_sg550_primary(void)
|
|||
|
||||
#ifdef CLIENT
|
||||
View_SetMuzzleflash(MUZZLE_RIFLE);
|
||||
View_EjectShell(SHELL_RIFLE, 0);
|
||||
View_EjectShellAttachment(SHELL_RIFLE, 0, [0, -80, 100]);
|
||||
|
||||
int r = (float)input_sequence % 2;
|
||||
switch (r) {
|
||||
|
|
|
@ -125,7 +125,7 @@ w_sg552_primary(void)
|
|||
|
||||
#ifdef CLIENT
|
||||
View_SetMuzzleflash(MUZZLE_RIFLE);
|
||||
View_EjectShell(SHELL_RIFLE, 0);
|
||||
View_EjectShellAttachment(SHELL_RIFLE, 0, [0, -80, 100]);
|
||||
|
||||
int r = (float)input_sequence % 3;
|
||||
switch (r) {
|
||||
|
|
|
@ -127,7 +127,7 @@ w_tmp_primary(void)
|
|||
|
||||
#ifdef CLIENT
|
||||
View_SetMuzzleflash(MUZZLE_RIFLE);
|
||||
View_EjectShell(SHELL_PISTOL, 0);
|
||||
View_EjectShellAttachment(SHELL_PISTOL, 0, [0, -80, 100]);
|
||||
|
||||
int r = (float)input_sequence % 3;
|
||||
switch (r) {
|
||||
|
|
|
@ -127,7 +127,7 @@ w_ump45_primary(void)
|
|||
|
||||
#ifdef CLIENT
|
||||
View_SetMuzzleflash(MUZZLE_RIFLE);
|
||||
View_EjectShell(SHELL_PISTOL, 0);
|
||||
View_EjectShellAttachment(SHELL_PISTOL, 0, [0, -80, 100]);
|
||||
#else
|
||||
TraceAttack_SetPenetrationPower(0);
|
||||
TraceAttack_FireBullets(1, pl.origin + pl.view_ofs, 30, [accuracy,accuracy], WEAPON_UMP45);
|
||||
|
|
|
@ -155,7 +155,7 @@ w_usp45_primary(void)
|
|||
View_SetMuzzleflash(MUZZLE_SMALL);
|
||||
}
|
||||
|
||||
View_EjectShell(SHELL_PISTOL, 0);
|
||||
View_EjectShellAttachment(SHELL_PISTOL, 0, [0, -80, 100]);
|
||||
#else
|
||||
/* Different sounds without silencer */
|
||||
if (pl.mode_usp45 == 1) {
|
||||
|
|
Loading…
Reference in a new issue