ReGameDLL_CS icon indicating copy to clipboard operation
ReGameDLL_CS copied to clipboard

Weapongs/Grenades placed on some Maps do not disappear after Pickup

Open fred0r opened this issue 2 years ago • 1 comments

Saw on a few Maps that Weapons which have been placed by the Mapper are still available, after being picked up by Players. Recently saw it while playing and . de_silentoperation - https://gamebanana.com/mods/86288 -> infinite Grenades fy_iceworld - https://gamebanana.com/mods/85016 -> infinite Weapons Beside these two Maps it also happend on others, but currently cant remember their Names.

Running on Linux with latest Rehlds/Regamedll_CS/Metamod-r.

fred0r avatar Nov 05 '22 21:11 fred0r

The "first reason" that could be is that some of those armouries have the CArmoury's "m_iCount" member >= 2, so either this is intentional by map author (but I doubt for the old-school "fy_iceworld"), either you run a plugin allowing you to customize this, or, this is a silent feature inside one you missed! Or, badly explained by plugin author! Or, either the GameRules's "m_bMapHasEscapeZone" member is true for some reasons & some checks inside boosted "m_iCount". Besides the code is "basic", & reduces "m_iCount" (till "Hide" it), no matter if the player was able to receive the weapon (in case of you blocked functions "CBasePlayer::GiveNamedItem[Ex]"). In other terms, if GiveNamedItem was called, "m_iCount" was reduced, so the armoury should be hidden if this member was set to "1". Or, maybe you have a plugin restoring flag "NO_DRAW" to armouries. Or, try without that Metamod-R thing.

StevenKal avatar Nov 07 '22 00:11 StevenKal