• Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

PC [Halloween Beta]HMTech-501 Infinite Grenades when dropped and picked up [Online]

Delta69er

Grizzled Veteran
Sep 13, 2017
176
73
Category: Weapons

Summary: Dropping 501 and picking it up will reset grenades to default 3.

Description: As above, if you drop it when its empty or full, it will always reset the grenades you have to 3. This is an online bug only, doesn't happen in solo.

Reproducibility: Always

Online/Offline: ONLINE
 
Last edited:
  • Like
Reactions: simplecat
After doing some investigation, here's what I found: Despite the HM-501 taking much of its code from the M16/M203 (because it's a functionally similar weapon for the most part), it misses some key ingredients that make the M16/M203 work properly online, namely this variable:

Code:
// Used on the server to keep track of grenades
var int ServerTotalAltAmmo;

There are also several functions that need to be modified or overridden to account for this like the M16/M203 does. Just search for "ServerTotalAltAmmo" in KFGameContent.KFWeap_AssaultRifle_M16M203 to find them.

P.S.: Also consider modifying the HM-501's GetSecondaryAmmoForHUD() to simply return super(KFWeapon).GetSecondaryAmmoForHUD(). This will show total ammo (including the grenade loaded in the weapon) just like the M16/M203 does.
 
Upvote 0