git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@366 67975925-1194-0748-b3d5-c16f83f1a3a1

This commit is contained in:
tankefugl 2005-11-27 17:40:49 +00:00
parent 1f7114f07a
commit 75e0a63103
3 changed files with 7 additions and 2 deletions

View file

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

View file

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

View file

@ -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]);