View Single Post
Author Message
Mr. Zero
Veteran Member
Join Date: Jun 2009
Location: Denmark
Old 03-16-2010 , 04:24   [L4D2] Block Pistol Spam
Reply With Quote #1

Block Pistol Spam

About:
If you havent seen this exploit in live action, count yourself lucky. Its a weird/laggy exploit.

The laggy part is because is what the exploit does. What happens is player picks up a melee weapon, finds a pistol and there we. Unlimited pistols.
The player just keep spamming +use upon dropping the melee weapon and getting the pistol in the hand. Somehow this produces an extra pistol.

This equal massive lag as the server is trying to calculate all these falling pistol in the same place.

Now the weird part is not on how this pistol just enters the world. Its more because I noticed that neither item_pickup nor spawner_give_item triggers when pistol gets picked up O.o
So I had to go with player_use and check the entity net class of the entity that is being used. If so block +use for 0.3 seconds.

Description:
Prevents people from mass spawning pistols by using an exploit
Changelog:
Code:
Version 1.0
Initial release
Attached Files
File Type: sp Get Plugin or Get Source (BlockPistolSpam.sp - 2968 views - 1.4 KB)
Mr. Zero is offline