-
Notifications
You must be signed in to change notification settings - Fork 10
Few changes #156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Few changes #156
Changes from all commits
44863a4
0215496
8122941
7a6ae6d
9f18722
6e17766
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,9 +36,9 @@ | |
| // memdbgon must be the last include file in a .cpp file!!! | ||
| #include "tier0/memdbgon.h" | ||
|
|
||
| #ifdef CSTRIKE_DLL | ||
| //#ifdef CSTRIKE_DLL | ||
| ConVar cl_righthand( "cl_righthand", "1", FCVAR_ARCHIVE, "Use right-handed view models." ); | ||
| #endif | ||
| //#endif | ||
|
|
||
| #ifdef TF_CLIENT_DLL | ||
| ConVar cl_flipviewmodels( "cl_flipviewmodels", "0", FCVAR_USERINFO | FCVAR_ARCHIVE | FCVAR_NOT_CONNECTED, "Flip view models." ); | ||
|
|
@@ -214,15 +214,15 @@ bool C_BaseViewModel::Interpolate( float currentTime ) | |
|
|
||
| bool C_BaseViewModel::ShouldFlipViewModel() | ||
| { | ||
| #ifdef CSTRIKE_DLL | ||
| //#ifdef CSTRIKE_DLL | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above |
||
| // If cl_righthand is set, then we want them all right-handed. | ||
| CBaseCombatWeapon *pWeapon = m_hWeapon.Get(); | ||
| if ( pWeapon ) | ||
| { | ||
| const FileWeaponInfo_t *pInfo = &pWeapon->GetWpnData(); | ||
| return pInfo->m_bAllowFlipping && pInfo->m_bBuiltRightHanded != cl_righthand.GetBool(); | ||
| } | ||
| #endif | ||
| //#endif | ||
|
|
||
| #ifdef TF_CLIENT_DLL | ||
| CBaseCombatWeapon *pWeapon = m_hWeapon.Get(); | ||
|
|
||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same comments as above re: cvars, but even more so since this is in common code. Please revert. |
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should prefer not removing unused code from common files, as it makes syncing upstream more difficult. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -408,7 +408,7 @@ bool CJBMod_Player::ValidatePlayerModel( const char *pModel ) | |
| return false; | ||
| } | ||
|
|
||
| ConVar jbmod_allow_pickup( "jbmod_allow_pickup", "0", FCVAR_GAMEDLL ); | ||
| ConVar jbmod_allow_pickup( "jbmod_allow_pickup", "1", FCVAR_GAMEDLL ); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Gameplay changes should be made in gamemodes, not C++ level cvars. |
||
|
|
||
| void CJBMod_Player::PickupObject( CBaseEntity* pObject, bool bLimitMassAndSize ) | ||
| { | ||
|
|
||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This isn't consistent with 0.5 as we already called this |
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Step sounds here are deprecated and will be removed from this file, this change won't be accepted. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -103,6 +103,8 @@ ConVar mp_restartgame_immediate( "mp_restartgame_immediate", "0", FCVAR_GAMEDLL, | |
|
|
||
| ConVar mp_mapcycle_empty_timeout_seconds( "mp_mapcycle_empty_timeout_seconds", "0", FCVAR_REPLICATED, "If nonzero, server will cycle to the next map if it has been empty on the current map for N seconds"); | ||
|
|
||
| ConVar mp_falldamage_amount("mp_falldamage_amount", "10.0", FCVAR_REPLICATED | FCVAR_NOTIFY, "If you put 10 you will loose 10, only works if mp_falldamge equals 0"); | ||
|
|
||
| void cc_SkipNextMapInCycle() | ||
| { | ||
| if ( !UTIL_IsCommandIssuedByServerAdmin() ) | ||
|
|
@@ -626,6 +628,7 @@ ConVarRef suitcharger( "sk_suitcharger" ); | |
|
|
||
| //========================================================= | ||
| //========================================================= | ||
| //This seems to be the block of code that checks for fall damage and calculates it | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove unnecessary comment |
||
| float CMultiplayRules::FlPlayerFallDamage( CBasePlayer *pPlayer ) | ||
| { | ||
| int iFallDamage = (int)falldamage.GetFloat(); | ||
|
|
@@ -637,8 +640,8 @@ ConVarRef suitcharger( "sk_suitcharger" ); | |
| return pPlayer->m_Local.m_flFallVelocity * DAMAGE_FOR_FALL_SPEED; | ||
| break; | ||
| default: | ||
| case 0:// fixed | ||
| return 10; | ||
| case 0:// fixed by the cvar mp_falldamage_amount | ||
| return mp_falldamage_amount.GetFloat(); | ||
| break; | ||
| } | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of commenting out preprocessors in common code, please add JBMod instead - ie do something like
#if defined(CSTRIKE_DLL) || defined(JBMOD)