Skip to content

Commit

Permalink
Fix Grapple being the default weapon constantly
Browse files Browse the repository at this point in the history
  • Loading branch information
sabianroberts committed Sep 25, 2023
1 parent 5512072 commit 7832942
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion binary/dlls/op4_weapons/CGrapple.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ int CGrapple::GetItemInfo(ItemInfo* p)
p->iPosition = 3;
p->iId = m_iId = WEAPON_GRAPPLE;
p->iFlags = 0;
p->iWeight = 21;
p->iWeight = GRAPPLE_WEIGHT;

return true;
}
3 changes: 2 additions & 1 deletion binary/dlls/weapons.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class CGrenade : public CBaseMonster
#define CROWBAR_WEIGHT 0
#define GLOCK_WEIGHT 10
#define PYTHON_WEIGHT 15
#define MP5_WEIGHT 15
#define MP5_WEIGHT 25
#define SHOTGUN_WEIGHT 15
#define CROSSBOW_WEIGHT 10
#define RPG_WEIGHT 20
Expand All @@ -117,6 +117,7 @@ class CGrenade : public CBaseMonster
#define SNARK_WEIGHT 5
#define SATCHEL_WEIGHT -10
#define TRIPMINE_WEIGHT -10
#define GRAPPLE_WEIGHT -10
#define EAGLE_WEIGHT 15
#define SPORELAUNCHER_WEIGHT 20
#define SHOCKRIFLE_WEIGHT 15
Expand Down

0 comments on commit 7832942

Please sign in to comment.