Quote:
Originally Posted by Silvers
PHP Code:
HookEvent("spawner_give_item", Event_SpawnerGiveItem);
new flag = GetEntProp(ent, Prop_Data, "m_spawnflags");
if( flag & (1<<3) ) return; // Infinite ammo
new value = GetEntProp(ent, Prop_Data, "m_itemCount");
if( value > 1 ) return; // We only need to delete if theres 1 item at the spawn
etc, from Gear Transfer.
|
Yeah, I was only checking for m_itemCount == 1, which seems to be wrong when it comes to the grenade launcher.
Before:
https://steamuserimages-a.akamaihd.n...8370BEACBED58/
After:
https://steamuserimages-a.akamaihd.n...7F5AECB3059F7/
Version 1.1.6
-m_itemCount fix.
-The chainsaw is now classed as melee rather than a weapon.
To do list:
Make it compatible with sdkhooks (OnEntityCreated and SDKHook_WeaponDropPost but I've only faced bugs so far)