add hl1,portal,dod source code

This commit is contained in:
nillerusr
2022-04-16 12:05:19 +03:00
parent bc6873014e
commit 23a370d9bb
524 changed files with 174173 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#include "cbase.h"
#include "weapon_dodsemiauto.h"
IMPLEMENT_NETWORKCLASS_ALIASED( DODSemiAutoWeapon, DT_SemiAutoWeapon )
BEGIN_NETWORK_TABLE( CDODSemiAutoWeapon, DT_SemiAutoWeapon )
END_NETWORK_TABLE()
#ifdef CLIENT_DLL
BEGIN_PREDICTION_DATA( CDODSemiAutoWeapon )
END_PREDICTION_DATA()
#endif
CDODSemiAutoWeapon::CDODSemiAutoWeapon()
{
}
void CDODSemiAutoWeapon::Spawn()
{
BaseClass::Spawn();
}
void CDODSemiAutoWeapon::PrimaryAttack( void )
{
//Don't attack more than once on the same button press.
//m_bInAttack is set to false when the attack button is released
m_bInAttack = true;
BaseClass::PrimaryAttack();
}