View Single Post
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 02-08-2023 , 09:11   Re: [L4D1 & L4D2] Laser that never sucks (useful upgrades)
Reply With Quote #78

As about your question on modded thing.
The "m_upgradeBitVec" bits are undocumented. If you find more information on them, I would be also interested in it.
The guy who modified the plugin, uses the bit:

Quote:
0x100000
which is according to (his) description means "weapon larger mag/clip size".
And since it is undocumented (?) I can say nothing about it.

The more simplified code of that thing as a stand-alone plugin would be something like:
PHP Code:
public void OnClientPutInServer(int client)
{
    const 
int WEAPON_CLIP_BIT 0x100000;
    
SetEntProp(clientProp_Send"m_upgradeBitVec"GetEntProp(clientProp_Send"m_upgradeBitVec") | WEAPON_CLIP_BIT);

maybe with bot check and +timer / join team event.

P.S. This is much likely can also be just the highest bit of DWORD of clip size value. Need to look the table. Somebody can check in "Double equipment" plugin to prove.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 02-08-2023 at 09:15.
Dragokas is offline