|
|
|
@ -38,7 +38,7 @@
@@ -38,7 +38,7 @@
|
|
|
|
|
|
|
|
|
|
extern engine_studio_api_t IEngineStudio; |
|
|
|
|
|
|
|
|
|
static int tracerCount[32]; |
|
|
|
|
static int g_tracerCount[32]; |
|
|
|
|
|
|
|
|
|
extern "C" char PM_FindTextureType( char *name ); |
|
|
|
|
|
|
|
|
@ -546,7 +546,7 @@ void EV_FireGlock2( event_args_t *args )
@@ -546,7 +546,7 @@ void EV_FireGlock2( event_args_t *args )
|
|
|
|
|
|
|
|
|
|
VectorCopy( forward, vecAiming ); |
|
|
|
|
|
|
|
|
|
EV_HLDM_FireBullets( idx, forward, right, up, 1, vecSrc, vecAiming, 8192, BULLET_PLAYER_9MM, 0, &tracerCount[idx - 1], args->fparam1, args->fparam2 ); |
|
|
|
|
EV_HLDM_FireBullets( idx, forward, right, up, 1, vecSrc, vecAiming, 8192, BULLET_PLAYER_9MM, 0, &g_tracerCount[idx - 1], args->fparam1, args->fparam2 ); |
|
|
|
|
} |
|
|
|
|
//======================
|
|
|
|
|
// GLOCK END
|
|
|
|
@ -602,11 +602,11 @@ void EV_FireShotGunDouble( event_args_t *args )
@@ -602,11 +602,11 @@ void EV_FireShotGunDouble( event_args_t *args )
|
|
|
|
|
|
|
|
|
|
if( gEngfuncs.GetMaxClients() > 1 ) |
|
|
|
|
{ |
|
|
|
|
EV_HLDM_FireBullets( idx, forward, right, up, 8, vecSrc, vecAiming, 2048, BULLET_PLAYER_BUCKSHOT, 0, &tracerCount[idx - 1], 0.17365, 0.04362 ); |
|
|
|
|
EV_HLDM_FireBullets( idx, forward, right, up, 8, vecSrc, vecAiming, 2048, BULLET_PLAYER_BUCKSHOT, 0, &g_tracerCount[idx - 1], 0.17365, 0.04362 ); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
EV_HLDM_FireBullets( idx, forward, right, up, 12, vecSrc, vecAiming, 2048, BULLET_PLAYER_BUCKSHOT, 0, &tracerCount[idx - 1], 0.08716, 0.08716 ); |
|
|
|
|
EV_HLDM_FireBullets( idx, forward, right, up, 12, vecSrc, vecAiming, 2048, BULLET_PLAYER_BUCKSHOT, 0, &g_tracerCount[idx - 1], 0.08716, 0.08716 ); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -654,11 +654,11 @@ void EV_FireShotGunSingle( event_args_t *args )
@@ -654,11 +654,11 @@ void EV_FireShotGunSingle( event_args_t *args )
|
|
|
|
|
|
|
|
|
|
if( gEngfuncs.GetMaxClients() > 1 ) |
|
|
|
|
{ |
|
|
|
|
EV_HLDM_FireBullets( idx, forward, right, up, 4, vecSrc, vecAiming, 2048, BULLET_PLAYER_BUCKSHOT, 0, &tracerCount[idx - 1], 0.08716, 0.04362 ); |
|
|
|
|
EV_HLDM_FireBullets( idx, forward, right, up, 4, vecSrc, vecAiming, 2048, BULLET_PLAYER_BUCKSHOT, 0, &g_tracerCount[idx - 1], 0.08716, 0.04362 ); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
EV_HLDM_FireBullets( idx, forward, right, up, 6, vecSrc, vecAiming, 2048, BULLET_PLAYER_BUCKSHOT, 0, &tracerCount[idx - 1], 0.08716, 0.08716 ); |
|
|
|
|
EV_HLDM_FireBullets( idx, forward, right, up, 6, vecSrc, vecAiming, 2048, BULLET_PLAYER_BUCKSHOT, 0, &g_tracerCount[idx - 1], 0.08716, 0.08716 ); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
//======================
|
|
|
|
@ -719,11 +719,11 @@ void EV_FireMP5( event_args_t *args )
@@ -719,11 +719,11 @@ void EV_FireMP5( event_args_t *args )
|
|
|
|
|
|
|
|
|
|
if( gEngfuncs.GetMaxClients() > 1 ) |
|
|
|
|
{ |
|
|
|
|
EV_HLDM_FireBullets( idx, forward, right, up, 1, vecSrc, vecAiming, 8192, BULLET_PLAYER_MP5, 2, &tracerCount[idx - 1], args->fparam1, args->fparam2 ); |
|
|
|
|
EV_HLDM_FireBullets( idx, forward, right, up, 1, vecSrc, vecAiming, 8192, BULLET_PLAYER_MP5, 2, &g_tracerCount[idx - 1], args->fparam1, args->fparam2 ); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
EV_HLDM_FireBullets( idx, forward, right, up, 1, vecSrc, vecAiming, 8192, BULLET_PLAYER_MP5, 2, &tracerCount[idx - 1], args->fparam1, args->fparam2 ); |
|
|
|
|
EV_HLDM_FireBullets( idx, forward, right, up, 1, vecSrc, vecAiming, 8192, BULLET_PLAYER_MP5, 2, &g_tracerCount[idx - 1], args->fparam1, args->fparam2 ); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|