mirror of
https://github.com/unknownworlds/NS.git
synced 2025-02-20 10:43:44 +00:00
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@366 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
parent
1f7114f07a
commit
75e0a63103
3 changed files with 7 additions and 2 deletions
|
@ -3124,6 +3124,7 @@ void CBasePlayer::Spawn( void )
|
|||
m_bitsDamageType = 0;
|
||||
m_afPhysicsFlags = 0;
|
||||
m_fLongJump = FALSE;// no longjump module.
|
||||
mForceWeaponUpdateFlag = true;
|
||||
|
||||
g_engfuncs.pfnSetPhysicsKeyValue( edict(), "slj", "0" );
|
||||
g_engfuncs.pfnSetPhysicsKeyValue( edict(), "hl", "1" );
|
||||
|
@ -4220,8 +4221,9 @@ void CBasePlayer :: UpdateClientData( void )
|
|||
|
||||
bool forceCurWeaponUpdate = false;
|
||||
|
||||
if (!m_fKnownItem)
|
||||
if (!m_fKnownItem /* || this->mForceWeaponUpdateFlag*/ )
|
||||
{
|
||||
this->mForceWeaponUpdateFlag = false;
|
||||
|
||||
m_fKnownItem = TRUE;
|
||||
|
||||
|
@ -4246,7 +4248,6 @@ void CBasePlayer :: UpdateClientData( void )
|
|||
// :tankefugl
|
||||
}
|
||||
|
||||
|
||||
SendAmmoUpdate();
|
||||
|
||||
// Update all the items
|
||||
|
|
|
@ -161,6 +161,8 @@ public:
|
|||
BOOL m_fNoPlayerSound; // a debugging feature. Player makes no sound if this is true.
|
||||
BOOL m_fLongJump; // does this player have the longjump module?
|
||||
|
||||
bool mForceWeaponUpdateFlag;
|
||||
|
||||
float m_tSneaking;
|
||||
int m_iUpdateTime; // stores the number of frame ticks before sending HUD update messages
|
||||
int m_iClientHealth; // the health currently known by the client. If this changes, send a new
|
||||
|
|
|
@ -9104,6 +9104,8 @@ void AvHPlayer::UpdateInventoryEnabledState(int inNumActiveHives, bool inForceUp
|
|||
// Have we not yet updated our weapons with this # of hives?
|
||||
if((inNumActiveHives != this->mNumHives) || (inForceUpdate))
|
||||
{
|
||||
this->mForceWeaponUpdateFlag = true;
|
||||
|
||||
for(int i = 0; i < MAX_ITEM_TYPES; i++)
|
||||
{
|
||||
AvHBasePlayerWeapon* theActiveWeapon = dynamic_cast<AvHBasePlayerWeapon*>(this->m_rgpPlayerItems[i]);
|
||||
|
|
Loading…
Reference in a new issue