Source SDK

Source SDK

Source sdk 2013 multiplayer burst fire weapon make the game crash (help)
So i just moving into multiplayer source sdk for my mod and i added Alyx Gun And SMG2(from hl2 beta) And when i fire it on burst fire mod it crash pls somebody help me :steamsad:
< >
Showing 1-1 of 1 comments
Ok Nvm It solved, to fix it just go to hl2mp_player.cpp > CHL2MP::FireBullets and do this
void CHL2MP_Player::FireBullets ( const FireBulletsInfo_t &info )
{
/*
// Move other players back to history positions based on local player's lag
lagcompensation->StartLagCompensation( this, this->GetCurrentCommand() );
*/

FireBulletsInfo_t modinfo = info;

CWeaponHL2MPBase *pWeapon = dynamic_cast<CWeaponHL2MPBase *>( GetActiveWeapon() );

if ( pWeapon )
{
modinfo.m_iPlayerDamage = modinfo.m_flDamage = pWeapon->GetHL2MPWpnData().m_iPlayerDamage;
}

NoteWeaponFired();

BaseClass::FireBullets( modinfo );

/*
// Move other players back to history positions based on local player's lag
lagcompensation->FinishLagCompensation( this );
*/

}
< >
Showing 1-1 of 1 comments
Per page: 1530 50