Raised This Month: $ Target: $400
 0% 

Solved [L4D2]Exclude projectiles that have been thrown


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 01-14-2022 , 12:03   Re: [L4D2]Exclude projectiles that have been thrown
Reply With Quote #5

Detect projectiles that have been thrown.
PHP Code:
    int weapon GetPlayerWeaponSlot(client2);
    if (
weapon && 
        
GetEntPropEnt(clientProp_Data"m_hActiveWeapon") == weapon && 
        
GetEntPropFloat(weaponProp_Data"m_flNextPrimaryAttack") >= GetGameTime())
    {
        
// slot 2 is throwable
        
    

or

use Exploit Fix - Unlimited Grenades by Silvers.
Silvers instantly removes player's slot 2 throwable item when player throws a projectile

PHP Code:
            int weapon GetPlayerWeaponSlot(client2);
            if( 
weapon != -)
            {
                
// PrintToChatAll("Exploit Blocked: %N", client);
                
RemovePlayerItem(clientweapon);
                
RemoveEntity(weapon);
            } 
__________________

Last edited by HarryPotter; 01-14-2022 at 12:09.
HarryPotter is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:32.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode