mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-03-13 05:51:19 +00:00
#ifdef->#if.
This commit is contained in:
parent
96d4ececc8
commit
ac858f0c2f
@ -12,7 +12,7 @@
|
|||||||
* use or distribution of this code by or to any unlicensed person is illegal.
|
* use or distribution of this code by or to any unlicensed person is illegal.
|
||||||
*
|
*
|
||||||
****/
|
****/
|
||||||
#if !defined( OEM_BUILD ) && !defined( HLDEMO_BUILD )
|
#if !OEM_BUILD && !HLDEMO_BUILD
|
||||||
|
|
||||||
//=========================================================
|
//=========================================================
|
||||||
// archer
|
// archer
|
||||||
|
@ -43,7 +43,7 @@ void CBarneyHandGrenade::Spawn()
|
|||||||
m_iId = WEAPON_BARNEYHANDGRENADE;
|
m_iId = WEAPON_BARNEYHANDGRENADE;
|
||||||
SET_MODEL( ENT( pev ), "models/w_grenade.mdl" );
|
SET_MODEL( ENT( pev ), "models/w_grenade.mdl" );
|
||||||
|
|
||||||
#ifndef CLIENT_DLL
|
#if !CLIENT_DLL
|
||||||
pev->dmg = gSkillData.plrDmgHandGrenade;
|
pev->dmg = gSkillData.plrDmgHandGrenade;
|
||||||
#endif
|
#endif
|
||||||
m_iDefaultAmmo = HANDGRENADE_DEFAULT_GIVE;
|
m_iDefaultAmmo = HANDGRENADE_DEFAULT_GIVE;
|
||||||
|
@ -146,7 +146,7 @@ void CBeretta::BerettaFire( float flSpread , float flCycleTime, BOOL fUseAutoAim
|
|||||||
|
|
||||||
int flags;
|
int flags;
|
||||||
|
|
||||||
#if defined( CLIENT_WEAPONS )
|
#if CLIENT_WEAPONS
|
||||||
flags = FEV_NOTHOST;
|
flags = FEV_NOTHOST;
|
||||||
#else
|
#else
|
||||||
flags = 0;
|
flags = 0;
|
||||||
|
@ -184,7 +184,7 @@ void CKMedKit::UseMedkit( int fMode )
|
|||||||
|
|
||||||
UTIL_TraceLine( vecSrc, vecEnd, dont_ignore_monsters, ENT( m_pPlayer->pev ), &tr );
|
UTIL_TraceLine( vecSrc, vecEnd, dont_ignore_monsters, ENT( m_pPlayer->pev ), &tr );
|
||||||
|
|
||||||
#ifndef CLIENT_DLL
|
#if !CLIENT_DLL
|
||||||
if( tr.flFraction >= 1.0f )
|
if( tr.flFraction >= 1.0f )
|
||||||
{
|
{
|
||||||
UTIL_TraceHull( vecSrc, vecEnd, dont_ignore_monsters, head_hull, ENT( m_pPlayer->pev ), &tr );
|
UTIL_TraceHull( vecSrc, vecEnd, dont_ignore_monsters, head_hull, ENT( m_pPlayer->pev ), &tr );
|
||||||
|
@ -162,7 +162,7 @@ void CM41A::PrimaryAttack()
|
|||||||
Vector vecAiming = m_pPlayer->GetAutoaimVector( AUTOAIM_5DEGREES );
|
Vector vecAiming = m_pPlayer->GetAutoaimVector( AUTOAIM_5DEGREES );
|
||||||
Vector vecDir;
|
Vector vecDir;
|
||||||
|
|
||||||
#ifdef CLIENT_DLL
|
#if CLIENT_DLL
|
||||||
if( bIsMultiplayer() )
|
if( bIsMultiplayer() )
|
||||||
#else
|
#else
|
||||||
if( g_pGameRules->IsMultiplayer() )
|
if( g_pGameRules->IsMultiplayer() )
|
||||||
@ -178,7 +178,7 @@ void CM41A::PrimaryAttack()
|
|||||||
}
|
}
|
||||||
|
|
||||||
int flags;
|
int flags;
|
||||||
#if defined( CLIENT_WEAPONS )
|
#if CLIENT_WEAPONS
|
||||||
flags = FEV_NOTHOST;
|
flags = FEV_NOTHOST;
|
||||||
#else
|
#else
|
||||||
flags = 0;
|
flags = 0;
|
||||||
|
@ -191,7 +191,7 @@ int CPoolstick::Swing( int fFirst )
|
|||||||
|
|
||||||
UTIL_TraceLine( vecSrc, vecEnd, dont_ignore_monsters, ENT( m_pPlayer->pev ), &tr );
|
UTIL_TraceLine( vecSrc, vecEnd, dont_ignore_monsters, ENT( m_pPlayer->pev ), &tr );
|
||||||
|
|
||||||
#ifndef CLIENT_DLL
|
#if !CLIENT_DLL
|
||||||
if ( tr.flFraction >= 1.0f )
|
if ( tr.flFraction >= 1.0f )
|
||||||
{
|
{
|
||||||
UTIL_TraceHull( vecSrc, vecEnd, dont_ignore_monsters, head_hull, ENT( m_pPlayer->pev ), &tr );
|
UTIL_TraceHull( vecSrc, vecEnd, dont_ignore_monsters, head_hull, ENT( m_pPlayer->pev ), &tr );
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
* without written permission from Valve LLC.
|
* without written permission from Valve LLC.
|
||||||
*
|
*
|
||||||
****/
|
****/
|
||||||
#if !defined( OEM_BUILD ) && !defined( HLDEMO_BUILD )
|
#if !OEM_BUILD && !HLDEMO_BUILD
|
||||||
|
|
||||||
#include "extdll.h"
|
#include "extdll.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
@ -41,7 +41,7 @@ enum toad_e {
|
|||||||
TOAD_THROW
|
TOAD_THROW
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifndef CLIENT_DLL
|
#if !CLIENT_DLL
|
||||||
class CToadGrenade : public CGrenade
|
class CToadGrenade : public CGrenade
|
||||||
{
|
{
|
||||||
void Spawn( void );
|
void Spawn( void );
|
||||||
@ -534,7 +534,7 @@ void CToad::PrimaryAttack()
|
|||||||
// player "shoot" animation
|
// player "shoot" animation
|
||||||
m_pPlayer->SetAnimation( PLAYER_ATTACK1 );
|
m_pPlayer->SetAnimation( PLAYER_ATTACK1 );
|
||||||
|
|
||||||
#ifndef CLIENT_DLL
|
#if !CLIENT_DLL
|
||||||
CBaseEntity *pToad = CBaseEntity::Create( "monster_toad", tr.vecEndPos, m_pPlayer->pev->v_angle, m_pPlayer->edict() );
|
CBaseEntity *pToad = CBaseEntity::Create( "monster_toad", tr.vecEndPos, m_pPlayer->pev->v_angle, m_pPlayer->edict() );
|
||||||
pToad->pev->velocity = gpGlobals->v_forward * 200 + m_pPlayer->pev->velocity;
|
pToad->pev->velocity = gpGlobals->v_forward * 200 + m_pPlayer->pev->velocity;
|
||||||
#endif
|
#endif
|
||||||
|
@ -1033,7 +1033,7 @@ private:
|
|||||||
class CKMedKit : public CBasePlayerWeapon
|
class CKMedKit : public CBasePlayerWeapon
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
#ifndef CLIENT_DLL
|
#if !CLIENT_DLL
|
||||||
int Save( CSave &save );
|
int Save( CSave &save );
|
||||||
int Restore( CRestore &restore );
|
int Restore( CRestore &restore );
|
||||||
static TYPEDESCRIPTION m_SaveData[];
|
static TYPEDESCRIPTION m_SaveData[];
|
||||||
@ -1062,7 +1062,7 @@ public:
|
|||||||
|
|
||||||
virtual BOOL UseDecrement( void )
|
virtual BOOL UseDecrement( void )
|
||||||
{
|
{
|
||||||
#if defined( CLIENT_WEAPONS )
|
#if CLIENT_WEAPONS
|
||||||
return TRUE;
|
return TRUE;
|
||||||
#else
|
#else
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@ -1096,7 +1096,7 @@ public:
|
|||||||
|
|
||||||
virtual BOOL UseDecrement( void )
|
virtual BOOL UseDecrement( void )
|
||||||
{
|
{
|
||||||
#if defined( CLIENT_WEAPONS )
|
#if CLIENT_WEAPONS
|
||||||
return TRUE;
|
return TRUE;
|
||||||
#else
|
#else
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@ -1133,7 +1133,7 @@ public:
|
|||||||
|
|
||||||
virtual BOOL UseDecrement( void )
|
virtual BOOL UseDecrement( void )
|
||||||
{
|
{
|
||||||
#if defined( CLIENT_WEAPONS )
|
#if CLIENT_WEAPONS
|
||||||
return TRUE;
|
return TRUE;
|
||||||
#else
|
#else
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@ -1165,7 +1165,7 @@ public:
|
|||||||
|
|
||||||
virtual BOOL UseDecrement( void )
|
virtual BOOL UseDecrement( void )
|
||||||
{
|
{
|
||||||
#if defined( CLIENT_WEAPONS )
|
#if CLIENT_WEAPONS
|
||||||
return TRUE;
|
return TRUE;
|
||||||
#else
|
#else
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@ -1196,7 +1196,7 @@ public:
|
|||||||
|
|
||||||
virtual BOOL UseDecrement( void )
|
virtual BOOL UseDecrement( void )
|
||||||
{
|
{
|
||||||
#if defined( CLIENT_WEAPONS )
|
#if CLIENT_WEAPONS
|
||||||
return TRUE;
|
return TRUE;
|
||||||
#else
|
#else
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user