Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion sp/src/game/server/hl2/weapon_smg1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ extern ConVar sk_plr_dmg_smg1_grenade;
extern ConVar sk_npc_dmg_smg1_grenade;
#endif

#ifdef EZ2
ConVar weapon_smg1_use_ez1_accuracy( "weapon_smg1_use_ez1_accuracy", "0" );
#endif

class CWeaponSMG1 : public CHLSelectFireMachineGun
{
DECLARE_DATADESC();
Expand Down Expand Up @@ -59,10 +63,12 @@ class CWeaponSMG1 : public CHLSelectFireMachineGun
{
#ifdef EZ1
static const Vector cone = VECTOR_CONE_2DEGREES;
return cone;
#else
static const Vector coneEZ1 = VECTOR_CONE_2DEGREES;
static const Vector cone = VECTOR_CONE_5DEGREES;
return weapon_smg1_use_ez1_accuracy.GetBool() ? coneEZ1 : cone;
#endif
return cone;
}

const WeaponProficiencyInfo_t *GetProficiencyValues();
Expand Down