Raised This Month: $ Target: $400
 0% 

Solved [L4D2]Exclude projectiles that have been thrown


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
sorallll
Senior Member
Join Date: Oct 2018
Old 01-14-2022 , 12:47   Re: [L4D2]Exclude projectiles that have been thrown
Reply With Quote #6

Quote:
Originally Posted by HarryPotter View Post
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);
            } 
Thanks, Harry Potter. Your first method should be what I need and will be much more efficient
sorallll 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