mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-12 16:07:57 +00:00
commit
0f023eb346
@ -25,7 +25,7 @@ project (CLDLL)
|
|||||||
|
|
||||||
set (CLDLL_LIBRARY client)
|
set (CLDLL_LIBRARY client)
|
||||||
|
|
||||||
add_definitions(-DCLIENT_WEAPONS -DCLIENT_DLL -DCROWBAR_IDLE_ANIM)
|
add_definitions(-DCLIENT_WEAPONS -DCLIENT_DLL -DCROWBAR_IDLE_ANIM -DCROWBAR_FIX_RAPID_CROWBAR -DCROWBAR_DELAY_FIX)
|
||||||
|
|
||||||
if(NOT MSVC)
|
if(NOT MSVC)
|
||||||
add_compile_options(-fno-exceptions) # GCC/Clang flag
|
add_compile_options(-fno-exceptions) # GCC/Clang flag
|
||||||
|
@ -62,5 +62,5 @@ def build(bld):
|
|||||||
use = libs,
|
use = libs,
|
||||||
install_path = install_path,
|
install_path = install_path,
|
||||||
subsystem = bld.env.MSVC_SUBSYSTEM,
|
subsystem = bld.env.MSVC_SUBSYSTEM,
|
||||||
idx = 1
|
idx = bld.get_taskgen_count()
|
||||||
)
|
)
|
||||||
|
@ -173,7 +173,7 @@ typedef struct mleaf_s
|
|||||||
|
|
||||||
} mleaf_t;
|
} mleaf_t;
|
||||||
|
|
||||||
typedef struct msurface_s
|
struct msurface_s
|
||||||
{
|
{
|
||||||
int visframe; // should be drawn when node is crossed
|
int visframe; // should be drawn when node is crossed
|
||||||
|
|
||||||
@ -205,7 +205,7 @@ typedef struct msurface_s
|
|||||||
|
|
||||||
color24 *samples; // note: this is the actual lightmap data for this surface
|
color24 *samples; // note: this is the actual lightmap data for this surface
|
||||||
decal_t *pdecals;
|
decal_t *pdecals;
|
||||||
} msurface_t;
|
};
|
||||||
|
|
||||||
typedef struct msurfmesh_s
|
typedef struct msurfmesh_s
|
||||||
{
|
{
|
||||||
|
@ -19,14 +19,12 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
typedef float vec_t;
|
typedef float vec_t;
|
||||||
typedef vec_t vec2_t[2];
|
|
||||||
|
|
||||||
#ifndef DID_VEC3_T_DEFINE
|
#if !defined DID_VEC3_T_DEFINE
|
||||||
#define DID_VEC3_T_DEFINE
|
#define DID_VEC3_T_DEFINE
|
||||||
typedef vec_t vec3_t[3];
|
typedef vec_t vec3_t[3];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef vec_t vec4_t[4]; // x,y,z,w
|
|
||||||
|
|
||||||
#ifndef M_PI
|
#ifndef M_PI
|
||||||
#define M_PI 3.14159265358979323846 // matches value in gcc v2 math.h
|
#define M_PI 3.14159265358979323846 // matches value in gcc v2 math.h
|
||||||
|
@ -25,7 +25,7 @@ project (SVDLL)
|
|||||||
|
|
||||||
set (SVDLL_LIBRARY server)
|
set (SVDLL_LIBRARY server)
|
||||||
|
|
||||||
add_definitions(-DCLIENT_WEAPONS -DCROWBAR_IDLE_ANIM)
|
add_definitions(-DCLIENT_WEAPONS -DCROWBAR_IDLE_ANIM -DCROWBAR_FIX_RAPID_CROWBAR -DCROWBAR_DELAY_FIX)
|
||||||
|
|
||||||
if(NOT MSVC)
|
if(NOT MSVC)
|
||||||
add_compile_options(-fno-exceptions) # GCC/Clang flag
|
add_compile_options(-fno-exceptions) # GCC/Clang flag
|
||||||
|
@ -287,7 +287,12 @@ int CCrowbar::Swing( int fFirst )
|
|||||||
}
|
}
|
||||||
m_pPlayer->m_iWeaponVolume = CROWBAR_BODYHIT_VOLUME;
|
m_pPlayer->m_iWeaponVolume = CROWBAR_BODYHIT_VOLUME;
|
||||||
if( !pEntity->IsAlive() )
|
if( !pEntity->IsAlive() )
|
||||||
|
{
|
||||||
|
#ifdef CROWBAR_FIX_RAPID_CROWBAR
|
||||||
|
m_flNextPrimaryAttack = GetNextAttackDelay(0.25);
|
||||||
|
#endif
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
flVol = 0.1;
|
flVol = 0.1;
|
||||||
|
|
||||||
@ -330,7 +335,11 @@ int CCrowbar::Swing( int fFirst )
|
|||||||
SetThink( &CCrowbar::Smack );
|
SetThink( &CCrowbar::Smack );
|
||||||
pev->nextthink = UTIL_WeaponTimeBase() + 0.2;
|
pev->nextthink = UTIL_WeaponTimeBase() + 0.2;
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef CROWBAR_DELAY_FIX
|
||||||
|
m_flNextPrimaryAttack = UTIL_WeaponTimeBase() + 0.25;
|
||||||
|
#else
|
||||||
m_flNextPrimaryAttack = GetNextAttackDelay( 0.25 );
|
m_flNextPrimaryAttack = GetNextAttackDelay( 0.25 );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#ifdef CROWBAR_IDLE_ANIM
|
#ifdef CROWBAR_IDLE_ANIM
|
||||||
m_flTimeWeaponIdle = UTIL_WeaponTimeBase() + UTIL_SharedRandomFloat( m_pPlayer->random_seed, 10, 15 );
|
m_flTimeWeaponIdle = UTIL_WeaponTimeBase() + UTIL_SharedRandomFloat( m_pPlayer->random_seed, 10, 15 );
|
||||||
|
@ -51,12 +51,15 @@
|
|||||||
#ifndef TRUE
|
#ifndef TRUE
|
||||||
#define TRUE (!FALSE)
|
#define TRUE (!FALSE)
|
||||||
#endif
|
#endif
|
||||||
|
#include <limits.h>
|
||||||
|
#include <stdarg.h>
|
||||||
typedef unsigned int ULONG;
|
typedef unsigned int ULONG;
|
||||||
typedef unsigned char BYTE;
|
typedef unsigned char BYTE;
|
||||||
typedef int BOOL;
|
typedef int BOOL;
|
||||||
#define MAX_PATH PATH_MAX
|
#define MAX_PATH PATH_MAX
|
||||||
#include <limits.h>
|
#ifndef PATH_MAX
|
||||||
#include <stdarg.h>
|
#define PATH_MAX 4096
|
||||||
|
#endif
|
||||||
#endif //_WIN32
|
#endif //_WIN32
|
||||||
|
|
||||||
// Misc C-runtime library headers
|
// Misc C-runtime library headers
|
||||||
|
@ -535,6 +535,9 @@ void CRpg::UpdateSpot( void )
|
|||||||
#ifndef CLIENT_DLL
|
#ifndef CLIENT_DLL
|
||||||
if( m_fSpotActive )
|
if( m_fSpotActive )
|
||||||
{
|
{
|
||||||
|
if (m_pPlayer->pev->viewmodel == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
if( !m_pSpot )
|
if( !m_pSpot )
|
||||||
{
|
{
|
||||||
m_pSpot = CLaserSpot::CreateSpot();
|
m_pSpot = CLaserSpot::CreateSpot();
|
||||||
|
@ -68,5 +68,5 @@ def build(bld):
|
|||||||
use = libs,
|
use = libs,
|
||||||
install_path = install_path,
|
install_path = install_path,
|
||||||
subsystem = bld.env.MSVC_SUBSYSTEM,
|
subsystem = bld.env.MSVC_SUBSYSTEM,
|
||||||
idx = 2
|
idx = bld.get_taskgen_count()
|
||||||
)
|
)
|
||||||
|
6
wscript
6
wscript
@ -13,6 +13,12 @@ top = '.'
|
|||||||
|
|
||||||
Context.Context.line_just = 55 # should fit for everything on 80x26
|
Context.Context.line_just = 55 # should fit for everything on 80x26
|
||||||
|
|
||||||
|
@Configure.conf
|
||||||
|
def get_taskgen_count(self):
|
||||||
|
try: idx = self.tg_idx_count
|
||||||
|
except: idx = 0 # don't set tg_idx_count to not increase counter
|
||||||
|
return idx
|
||||||
|
|
||||||
def options(opt):
|
def options(opt):
|
||||||
grp = opt.add_option_group('Common options')
|
grp = opt.add_option_group('Common options')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user