#ifdef->#if.

This commit is contained in:
Andrey Akhmichin 2021-06-16 02:15:47 +05:00
parent 91dad7a2ff
commit f6dfc6f497
21 changed files with 64 additions and 64 deletions

View File

@ -1100,7 +1100,7 @@ void _DLLEXPORT HUD_PostRunCmd( struct local_state_s *from, struct local_state_s
HUD_WeaponsPostThink( from, to, cmd, time, random_seed );
}
#if defined( CLIENT_WEAPONS )
#if CLIENT_WEAPONS
if( cl_lw && cl_lw->value )
{
HUD_WeaponsPostThink( from, to, cmd, time, random_seed );

View File

@ -159,7 +159,7 @@ void CAK47::PrimaryAttack()
Vector vecAiming = m_pPlayer->GetAutoaimVector( AUTOAIM_5DEGREES );
Vector vecDir;
#ifdef CLIENT_DLL
#if CLIENT_DLL
if ( bIsMultiplayer() )
#else
if ( g_pGameRules->IsMultiplayer() )
@ -175,7 +175,7 @@ void CAK47::PrimaryAttack()
}
int flags;
#if defined( CLIENT_WEAPONS )
#if CLIENT_WEAPONS
flags = FEV_NOTHOST;
#else
flags = 0;

View File

@ -207,7 +207,7 @@ int CBeamKatana::Swing( int fFirst )
UTIL_TraceLine( vecSrc, vecEnd, dont_ignore_monsters, ENT( m_pPlayer->pev ), &tr );
#ifndef CLIENT_DLL
#if !CLIENT_DLL
if ( tr.flFraction >= 1.0f )
{
UTIL_TraceHull( vecSrc, vecEnd, dont_ignore_monsters, head_hull, ENT( m_pPlayer->pev ), &tr );
@ -254,7 +254,7 @@ int CBeamKatana::Swing( int fFirst )
// player "shoot" animation
m_pPlayer->SetAnimation( PLAYER_ATTACK1 );
#ifndef CLIENT_DLL
#if !CLIENT_DLL
// hit
fDidHit = TRUE;

View File

@ -119,7 +119,7 @@ void CBoombox::PrimaryAttack()
void CBoombox::SecondaryAttack()
{
EMIT_SOUND(ENT(m_pPlayer->pev), CHAN_WEAPON, "bbox/songrc.wav", 1, ATTN_NORM); //1.83
#ifndef CLIENT_DLL
#if !CLIENT_DLL
UTIL_ScreenShake( m_pPlayer->pev->origin, 25.0, 200.0, 2, 750 );
#endif
RadiusDamage( m_pPlayer->pev->origin, pev, m_pPlayer->pev, 10, 750, CLASS_NONE, DMG_BILLNYE | DMG_ALWAYSGIB );

View File

@ -12,7 +12,7 @@
* without written permission from Valve LLC.
*
****/
#if !defined( OEM_BUILD ) && !defined( HLDEMO_BUILD )
#if !OEM_BUILD && !HLDEMO_BUILD
#include "extdll.h"
#include "util.h"
@ -23,7 +23,7 @@
#include "player.h"
#include "gamerules.h"
#ifndef CLIENT_DLL
#if !CLIENT_DLL
#define BOLT_AIR_VELOCITY 150
#define BOLT_WATER_VELOCITY 50
@ -328,7 +328,7 @@ void CBow::PrimaryAttack( void )
m_iClip--;
int flags;
#if defined( CLIENT_WEAPONS )
#if CLIENT_WEAPONS
flags = FEV_NOTHOST;
#else
flags = 0;
@ -346,7 +346,7 @@ void CBow::PrimaryAttack( void )
UTIL_TraceLine(vecSrc, vecSrc + vecDir * 8192, dont_ignore_monsters, m_pPlayer->edict(), &tr);
#ifndef CLIENT_DLL
#if !CLIENT_DLL
if ( tr.pHit->v.takedamage )
{
ClearMultiDamage( );
@ -372,7 +372,7 @@ void CBow::FireBolt()
m_pPlayer->m_rgAmmo[ m_iPrimaryAmmoType ]--;
int flags;
#if defined( CLIENT_WEAPONS )
#if CLIENT_WEAPONS
flags = FEV_NOTHOST;
#else
flags = 0;
@ -390,7 +390,7 @@ void CBow::FireBolt()
Vector vecSrc = m_pPlayer->GetGunPosition( ) - gpGlobals->v_up * 2;
Vector vecDir = gpGlobals->v_forward;
#ifndef CLIENT_DLL
#if !CLIENT_DLL
CBowBolt *pBolt = CBowBolt::BoltCreate();
pBolt->pev->origin = vecSrc;
pBolt->pev->angles = anglesAim;

View File

@ -122,7 +122,7 @@ void CCodplay::PlayerKilled( CBasePlayer *pVictim, entvars_t *pKiller, entvars_t
// let the killer paint another decal as soon as he'd like.
PK->m_flNextDecalTime = gpGlobals->time;
}
#ifndef HLDEMO_BUILD
#if !HLDEMO_BUILD
if ( pVictim->HasNamedPlayerItem("weapon_satchel") )
{
DeactivateSatchels( pVictim );

View File

@ -12,7 +12,7 @@
* without written permission from Valve LLC.
*
****/
#if !defined( OEM_BUILD )
#if !OEM_BUILD
#include "extdll.h"
#include "util.h"
@ -37,7 +37,7 @@ enum dosh_e {
LINK_ENTITY_TO_CLASS( weapon_dosh, CDosh );
#ifndef CLIENT_DLL
#if !CLIENT_DLL
LINK_ENTITY_TO_CLASS( dosh_rocket, CDoshRocket );
//=========================================================
@ -252,7 +252,7 @@ void CDosh::Holster( int skiplocal /* = 0 */ )
SendWeaponAnim( DOSH_THROW3 );
#ifndef CLIENT_DLL
#if !CLIENT_DLL
#endif
@ -270,7 +270,7 @@ void CDosh::PrimaryAttack()
gpGlobals->v_forward * 512 );
int flags;
#if defined( CLIENT_WEAPONS )
#if CLIENT_WEAPONS
flags = FEV_NOTHOST;
#else
flags = 0;

View File

@ -176,7 +176,7 @@ int CFOTN::Swing( int fFirst )
UTIL_TraceLine( vecSrc, vecEnd, dont_ignore_monsters, ENT( m_pPlayer->pev ), &tr );
#ifndef CLIENT_DLL
#if !CLIENT_DLL
if ( tr.flFraction >= 1.0 )
{
UTIL_TraceHull( vecSrc, vecEnd, dont_ignore_monsters, head_hull, ENT( m_pPlayer->pev ), &tr );
@ -215,7 +215,7 @@ int CFOTN::Swing( int fFirst )
// player "shoot" animation
m_pPlayer->SetAnimation( PLAYER_ATTACK1 );
#ifndef CLIENT_DLL
#if !CLIENT_DLL
// hit
fDidHit = TRUE;

View File

@ -232,7 +232,7 @@ int CFOTN::Swing( int fFirst )
UTIL_TraceLine( vecSrc, vecEnd, dont_ignore_monsters, ENT( m_pPlayer->pev ), &tr );
#ifndef CLIENT_DLL
#if !CLIENT_DLL
if ( tr.flFraction >= 1.0f )
{
UTIL_TraceHull( vecSrc, vecEnd, dont_ignore_monsters, head_hull, ENT( m_pPlayer->pev ), &tr );
@ -271,7 +271,7 @@ int CFOTN::Swing( int fFirst )
// player "shoot" animation
m_pPlayer->SetAnimation( PLAYER_ATTACK1 );
#ifndef CLIENT_DLL
#if !CLIENT_DLL
// hit
fDidHit = TRUE;

View File

@ -98,7 +98,7 @@ void CGOLDENGUN::GOLDENGUNFire( float flSpread , float flCycleTime, BOOL fUseAut
m_pPlayer->pev->effects = (int)(m_pPlayer->pev->effects) | EF_MUZZLEFLASH;
int flags;
#if defined( CLIENT_WEAPONS )
#if CLIENT_WEAPONS
flags = FEV_NOTHOST;
#else
flags = 0;

View File

@ -96,7 +96,7 @@ void CJackal::JackalFire( float flSpread , float flCycleTime, BOOL fUseAutoAim )
m_pPlayer->pev->effects = (int)(m_pPlayer->pev->effects) | EF_MUZZLEFLASH;
int flags;
#if defined( CLIENT_WEAPONS )
#if CLIENT_WEAPONS
flags = FEV_NOTHOST;
#else
flags = 0;

View File

@ -45,7 +45,7 @@ void CJihad::Spawn( )
m_iId = WEAPON_JIHAD;
SET_MODEL(ENT(pev), "models/w_jihad.mdl");
#ifndef CLIENT_DLL
#if !CLIENT_DLL
pev->dmg = gSkillData.plrDmgJihad;
#endif
@ -112,7 +112,7 @@ void CJihad::PrimaryAttack()
SendWeaponAnim( JIHAD_SHOOT3 );
lolalo = FALSE;
m_pPlayer->m_flNextAttack = UTIL_WeaponTimeBase() + 2;
#ifdef CLIENT_DLL
#if CLIENT_DLL
//Genuflect
#else
ExplosionCreate( m_pPlayer->Center(), m_pPlayer->pev->angles, m_pPlayer->edict(), 1080, TRUE ); // BOOM!

View File

@ -12,7 +12,7 @@
* without written permission from Valve LLC.
*
****/
#if !defined( OEM_BUILD ) && !defined( HLDEMO_BUILD )
#if !OEM_BUILD && !HLDEMO_BUILD
#include "extdll.h"
#include "util.h"
@ -23,7 +23,7 @@
#include "player.h"
#include "gamerules.h"
#ifndef CLIENT_DLL
#if !CLIENT_DLL
#define HORN_AIR_VELOCITY 1800
#define HORN_WATER_VELOCITY 1600
@ -316,7 +316,7 @@ void CModman::Holster( int skiplocal /* = 0 */ )
void CModman::PrimaryAttack( void )
{
/*#ifdef CLIENT_DLL
/*#if CLIENT_DLL
if ( bIsMultiplayer() )
#else
if (g_pGameRules->IsMultiplayer())
@ -346,7 +346,7 @@ void CModman::FireSniperHorn()
m_iClip--;
int flags;
#if defined( CLIENT_WEAPONS )
#if CLIENT_WEAPONS
flags = FEV_NOTHOST;
#else
flags = 0;
@ -364,7 +364,7 @@ void CModman::FireSniperHorn()
UTIL_TraceLine(vecSrc, vecSrc + vecDir * 8192, dont_ignore_monsters, m_pPlayer->edict(), &tr);
#ifndef CLIENT_DLL
#if !CLIENT_DLL
if ( tr.pHit->v.takedamage )
{
ClearMultiDamage( );
@ -389,7 +389,7 @@ void CModman::FireHorn()
m_iClip--;
int flags;
#if defined( CLIENT_WEAPONS )
#if CLIENT_WEAPONS
flags = FEV_NOTHOST;
#else
flags = 0;
@ -407,7 +407,7 @@ void CModman::FireHorn()
Vector vecSrc = m_pPlayer->GetGunPosition( ) - gpGlobals->v_up * 2;
Vector vecDir = gpGlobals->v_forward;
#ifndef CLIENT_DLL
#if !CLIENT_DLL
CModmanHorn *pHorn = CModmanHorn::HornCreate();
pHorn->pev->origin = vecSrc;
pHorn->pev->angles = anglesAim;

View File

@ -21,7 +21,7 @@
#include "player.h"
#include "weapons.h"
#include "gamerules.h"
#ifndef NO_VOICEGAMEMGR
#if !NO_VOICEGAMEMGR
#include "voice_gamemgr.h"
#endif
#include "monhunt_gamerules.h"
@ -41,11 +41,11 @@ void CMonsterplay::Think( void )
{
// longest the intermission can last, in seconds
#define MAX_INTERMISSION_TIME 120
#ifndef NO_VOICEGAMEMGR
#if !NO_VOICEGAMEMGR
CVoiceGameMgr g_VoiceGameMgr;
#endif
float g_flIntermissionStartTime = 0;
#ifndef NO_VOICEGAMEMGR
#if !NO_VOICEGAMEMGR
g_VoiceGameMgr.Update(gpGlobals->frametime);
#endif
///// Check game rules /////

View File

@ -143,7 +143,7 @@ void CMW2::PrimaryAttack()
Vector vecAiming = m_pPlayer->GetAutoaimVector( AUTOAIM_5DEGREES );
Vector vecDir;
#ifdef CLIENT_DLL
#if CLIENT_DLL
if ( bIsMultiplayer() )
#else
if ( g_pGameRules->IsMultiplayer() )
@ -159,13 +159,13 @@ void CMW2::PrimaryAttack()
}
int flags;
#if defined( CLIENT_WEAPONS )
#if CLIENT_WEAPONS
flags = FEV_NOTHOST;
#else
flags = 0;
#endif
#ifndef CLIENT_DLL
#if !CLIENT_DLL
UTIL_ScreenShake( m_pPlayer->pev->origin, 250.0, 200.0, 2.5, 1 );
#endif

View File

@ -12,7 +12,7 @@
* without written permission from Valve LLC.
*
****/
#if !defined( OEM_BUILD ) && !defined( HLDEMO_BUILD )
#if !OEM_BUILD && !HLDEMO_BUILD
#include "extdll.h"
#include "util.h"
@ -23,7 +23,7 @@
#include "player.h"
#include "gamerules.h"
#ifndef CLIENT_DLL
#if !CLIENT_DLL
#define STAR_AIR_VELOCITY 1500
#define STAR_WATER_VELOCITY 150
@ -305,7 +305,7 @@ void CNStar::FireStar()
m_pPlayer->m_rgAmmo[ m_iPrimaryAmmoType ]--;
int flags;
#if defined( CLIENT_WEAPONS )
#if CLIENT_WEAPONS
flags = FEV_NOTHOST;
#else
flags = 0;
@ -323,7 +323,7 @@ void CNStar::FireStar()
Vector vecSrc = m_pPlayer->GetGunPosition( ) - gpGlobals->v_up * 2;
Vector vecDir = gpGlobals->v_forward;
#ifndef CLIENT_DLL
#if !CLIENT_DLL
CNinjaStar *pStar = CNinjaStar::StarCreate();
pStar->pev->origin = vecSrc;
pStar->pev->angles = anglesAim;

View File

@ -12,7 +12,7 @@
* without written permission from Valve LLC.
*
****/
#if !defined( OEM_BUILD ) && !defined( HLDEMO_BUILD )
#if !OEM_BUILD && !HLDEMO_BUILD
#include "extdll.h"
#include "util.h"
@ -23,7 +23,7 @@
#include "player.h"
#include "gamerules.h"
#ifndef CLIENT_DLL
#if !CLIENT_DLL
#define BOLT_AIR_VELOCITY 800
#define BOLT_WATER_VELOCITY 450
@ -328,7 +328,7 @@ void CSciPG::FireBolt()
m_pPlayer->m_rgAmmo[ m_iPrimaryAmmoType ]--;
int flags;
#if defined( CLIENT_WEAPONS )
#if CLIENT_WEAPONS
flags = FEV_NOTHOST;
#else
flags = 0;
@ -346,7 +346,7 @@ void CSciPG::FireBolt()
Vector vecSrc = m_pPlayer->GetGunPosition( ) - gpGlobals->v_up * 2;
Vector vecDir = gpGlobals->v_forward;
#ifndef CLIENT_DLL
#if !CLIENT_DLL
CSciPGBolt *pBolt = CSciPGBolt::BoltCreate();
pBolt->pev->origin = vecSrc;
pBolt->pev->angles = anglesAim;

View File

@ -75,7 +75,7 @@ CHalfLifeShytplay :: CHalfLifeShytplay()
extern cvar_t timeleft, fragsleft;
#ifndef NO_VOICEGAMEMGR
#if !NO_VOICEGAMEMGR
#include "voice_gamemgr.h"
extern CVoiceGameMgr g_VoiceGameMgr;
#endif
@ -88,7 +88,7 @@ void CHalfLifeShytplay :: Think ( void )
int frags_remaining = 0;
int time_remaining = 0;
#ifndef NO_VOICEGAMEMGR
#if !NO_VOICEGAMEMGR
g_VoiceGameMgr.Update(gpGlobals->frametime);
#endif
if ( g_fGameOver ) // someone else quit the game already
@ -154,7 +154,7 @@ void CHalfLifeShytplay :: Think ( void )
//=========================================================
BOOL CHalfLifeShytplay :: ClientCommand( CBasePlayer *pPlayer, const char *pcmd )
{
#ifndef NO_VOICEGAMEMGR
#if !NO_VOICEGAMEMGR
if(g_VoiceGameMgr.ClientCommand(pPlayer, pcmd))
return TRUE;
#endif

View File

@ -67,7 +67,7 @@ int CSodaCan::AddToPlayer( CBasePlayer *pPlayer )
if ( CBasePlayerWeapon::AddToPlayer( pPlayer ) )
{
#ifndef CLIENT_DLL
#if !CLIENT_DLL
if ( g_pGameRules->IsMultiplayer() )
{
// in multiplayer, all hivehands come full.
@ -124,7 +124,7 @@ void CSodaCan::PrimaryAttack()
m_pPlayer->m_iWeaponVolume = NORMAL_GUN_VOLUME;
int flags;
#if defined( CLIENT_WEAPONS )
#if CLIENT_WEAPONS
flags = FEV_NOTHOST;
#else
flags = 0;

View File

@ -93,7 +93,7 @@ void CZAPPER::ZAPPERFire( float flSpread , float flCycleTime, BOOL fUseAutoAim )
m_pPlayer->pev->effects = (int)(m_pPlayer->pev->effects) | EF_MUZZLEFLASH;
int flags;
#if defined( CLIENT_WEAPONS )
#if CLIENT_WEAPONS
flags = FEV_NOTHOST;
#else
flags = 0;

View File

@ -861,7 +861,7 @@ public:
//
// virtual BOOL UseDecrement( void )
// {
//#if defined( CLIENT_WEAPONS )
//#if CLIENT_WEAPONS
// return TRUE;
//#else
// return FALSE;
@ -888,7 +888,7 @@ public:
virtual BOOL UseDecrement( void )
{
#if defined( CLIENT_WEAPONS )
#if CLIENT_WEAPONS
return TRUE;
#else
return FALSE;
@ -914,7 +914,7 @@ public:
virtual BOOL UseDecrement( void )
{
#if defined( CLIENT_WEAPONS )
#if CLIENT_WEAPONS
return TRUE;
#else
return FALSE;
@ -949,7 +949,7 @@ public:
virtual BOOL UseDecrement( void )
{
#if defined( CLIENT_WEAPONS )
#if CLIENT_WEAPONS
return TRUE;
#else
return FALSE;
@ -979,7 +979,7 @@ public:
virtual BOOL UseDecrement( void )
{
#if defined( CLIENT_WEAPONS )
#if CLIENT_WEAPONS
return TRUE;
#else
return FALSE;
@ -1054,7 +1054,7 @@ public:
virtual BOOL UseDecrement( void )
{
#if defined( CLIENT_WEAPONS )
#if CLIENT_WEAPONS
return TRUE;
#else
return FALSE;
@ -1135,7 +1135,7 @@ public:
virtual BOOL UseDecrement( void )
{
#if defined( CLIENT_WEAPONS )
#if CLIENT_WEAPONS
return TRUE;
#else
return FALSE;
@ -1165,7 +1165,7 @@ public:
BOOL UseDecrement( void )
{
#if defined( CLIENT_WEAPONS )
#if CLIENT_WEAPONS
return TRUE;
#else
return FALSE;
@ -1262,7 +1262,7 @@ public:
virtual BOOL UseDecrement( void )
{
#if defined( CLIENT_WEAPONS )
#if CLIENT_WEAPONS
return TRUE;
#else
return FALSE;
@ -1291,7 +1291,7 @@ public:
virtual BOOL UseDecrement( void )
{
#if defined( CLIENT_WEAPONS )
#if CLIENT_WEAPONS
return TRUE;
#else
return FALSE;
@ -1352,7 +1352,7 @@ public:
virtual BOOL UseDecrement( void )
{
#if defined( CLIENT_WEAPONS )
#if CLIENT_WEAPONS
return TRUE;
#else
return FALSE;
@ -1417,7 +1417,7 @@ public:
virtual BOOL UseDecrement( void )
{
#if defined( CLIENT_WEAPONS )
#if CLIENT_WEAPONS
return TRUE;
#else
return FALSE;