by NeuralStunner » Fri Feb 19, 2010 3:10 pm
Spleen wrote:The original problem is an exploitable glitch which let players get infinite ammo by repeatedly dropping a weapon and picking up the original one - since it has weapon stay, you can pick it up as much as you want and keep getting ammo.
Duh. I forgot that part.
Yeah, and you also end up with "actor spam": A lot of duplicate copies of the weapon, that have 0 ammo value and thus can't be collected.
Probably wouldn't want to turn off weapon dropping altogether. (Might want to toss a weapon to a teammate who just respawned, etc.) But that's the only option I see for the players, to negate the possible exploit.
Off the top of my head, and maybe impossible: A new internal field, similar to [wiki=Classes:WeaponHolder]WeaponHolder[/wiki], which tracks what weapons you've picked up? When attempting to pick up a weapon, first it checks for the +DROPPED flag. If that's on the dropped weapon, it can proceed like normal. Otherwise, if Weapons Stay is active, it checks whether the weapon is already in that field. If not, give the weapon and its ammo then add it to the field. The field should also be discarded whenever entering a new hub/cluster (+INVENTORY.INTERHUBSTRIB). Since Inventory is reset per map in DM, it would work fine there too.
[quote="Spleen"]The original problem is an exploitable glitch which let players get infinite ammo by repeatedly dropping a weapon and picking up the original one - since it has weapon stay, you can pick it up as much as you want and keep getting ammo.[/quote]
Duh. I forgot that part. :oops:
Yeah, and you also end up with "actor spam": A lot of duplicate copies of the weapon, that have 0 ammo value and thus can't be collected.
Probably wouldn't want to turn off weapon dropping altogether. (Might want to toss a weapon to a teammate who just respawned, etc.) But that's the only option I see for the players, to negate the possible exploit.
Off the top of my head, and maybe impossible: A new internal field, similar to [wiki=Classes:WeaponHolder]WeaponHolder[/wiki], which tracks what weapons you've picked up? When attempting to pick up a weapon, first it checks for the +DROPPED flag. If that's on the dropped weapon, it can proceed like normal. Otherwise, if Weapons Stay is active, it checks whether the weapon is already in that field. If not, give the weapon and its ammo then add it to the field. The field should also be discarded whenever entering a new hub/cluster (+INVENTORY.INTERHUBSTRIB). Since Inventory is reset per map in DM, it would work fine there too.