Browse Source

Enable more crowbar fixes for Blue Shift

bshift
Roman Chistokhodov 5 years ago
parent
commit
5f8afd6e79
  1. 2
      cl_dll/CMakeLists.txt
  2. 2
      dlls/CMakeLists.txt
  3. 2
      dlls/crowbar.cpp

2
cl_dll/CMakeLists.txt

@ -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

2
dlls/CMakeLists.txt

@ -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

2
dlls/crowbar.cpp

@ -335,7 +335,7 @@ 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
#if CROWBAR_DELAY_FIX #ifdef CROWBAR_DELAY_FIX
m_flNextPrimaryAttack = UTIL_WeaponTimeBase() + 0.25; m_flNextPrimaryAttack = UTIL_WeaponTimeBase() + 0.25;
#else #else
m_flNextPrimaryAttack = GetNextAttackDelay( 0.25 ); m_flNextPrimaryAttack = GetNextAttackDelay( 0.25 );

Loading…
Cancel
Save