//========= Copyright © 1996-2005, Valve Corporation, All rights reserved.
============//
//
// Purpose:
//
//=============================================================================//
#include "cbase.h"
#include "npcevent.h"
#include "in_buttons.h"
#ifdef CLIENT_DLL
#include "c_hl2mp_player.h"
#else
//#include "grenade_ar2.h" //We dont have the nade
#include "hl2mp_player.h"
//#include "basegrenade_shared.h"
#endif
#include "weapon_hl2mpbase.h"
#include "weapon_hl2mpbase_machinegun.h"
#ifdef CLIENT_DLL
#define CWeaponAK74 C_WeaponAK74
#endif
// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"
/*
#define SMG1_GRENADE_DAMAGE 100.0f
#define SMG1_GRENADE_RADIUS 250.0f
*/
class CWeaponAK74 : public CHL2MPMachineGun
{
public:
DECLARE_CLASS( CWeaponAK74, CHL2MPMachineGun );
CWeaponAK74();
DECLARE_NETWORKCLASS();
DECLARE_PREDICTABLE();
void Precache( void );
void AddViewKick( void );
//We wont need this yet
//void SecondaryAttack( void );
int GetMinBurst() { return 2; }
int GetMaxBurst() { return 5; }
virtual void Equip( CBaseCombatCharacter *pOwner );
bool Reload( void );
//Modified for VI, the rate for ak47u is 735/min (at most)
60/735=~0.082/sec between bullets
float GetFireRate( void ) { return 0.082f; } // 12.2 Hz
Activity GetPrimaryAttackActivity( void );
virtual const Vector& GetBulletSpread( void )
{
//The SMG sprays enough?
static const Vector cone = VECTOR_CONE_5DEGREES;
return cone;
}
const WeaponProficiencyInfo_t *GetProficiencyValues();
#ifndef CLIENT_DLL
DECLARE_ACTTABLE();
#endif
protected:
Vector m_vecTossVelocity;
float m_flNextGrenadeCheck;
private:
CWeaponAK74( const CWeaponAK74 & );
};
IMPLEMENT_NETWORKCLASS_ALIASED( CWeaponAK74, DT_CWeaponAK74 ) //<---Faulty line
of code
BEGIN_NETWORK_TABLE( CWeaponAK74, DT_WeaponAK74 )
END_NETWORK_TABLE()
BEGIN_PREDICTION_DATA( CWeaponAK74 )
END_PREDICTION_DATA()
LINK_ENTITY_TO_CLASS( weapon_ak74, CWeaponAK74 );
PRECACHE_WEAPON_REGISTER(weapon_ak74);
//---------------------------------------------------------------------------------------
The above is my code
The offending line is this:
IMPLEMENT_NETWORKCLASS_ALIASED( CWeaponAK74, DT_CWeaponAK74 )
_________________________________________________________________
Få Windows Live Messenger på mobilen.
http://windowslivemobile.msn.com/Homepage.aspx?lang=nb-no&ocid=30032
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders