Raised This Month: $51 Target: $400
 12% 

[L4D/L4D2] Gascan Exploit Fixes


Post New Thread Reply   
 
Thread Tools Display Modes
Author
tRololo312312
Senior Member
Join Date: Apr 2015
Plugin ID:
5553
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Fixes some exploits related to gascans, like gascan trick, gascan shoving and explosions near gascans.
    Old 02-28-2017 , 10:29   [L4D/L4D2] Gascan Exploit Fixes
    Reply With Quote #1

    This plugin fixes some infamous exploits used mostly in scavenge and scavenge finales.

    - Blocks the Gascan Trick where you can break smokers tongue by dropping gascan to your feet.
    - Blocks the ability to shove gascans when throwing them which causes gascans to fly further.
    - Blocks pipebomb explosions, boomer explosions and other explosions from sending gascans fly in air.

    No Cvars or any Configurations. Just drop .smx to plugins.

    Gascan Trick example: https://youtu.be/qoR-Ah8Z0Rw
    Gascan Shove example: https://youtu.be/Gpgjq6IliSk

    This plugin does not work with Silvers Physics Push Fix plugin and makes AtomicStrykers Gascan-Pipe fix obsolete.
    Attached Files
    File Type: sp Get Plugin or Get Source (gascanfixes.sp - 1509 views - 924 Bytes)

    Last edited by tRololo312312; 02-28-2017 at 10:58. Reason: Added video links.
    tRololo312312 is offline
    bazrael
    Senior Member
    Join Date: Jan 2010
    Location: Where Lucy became superw
    Old 03-12-2017 , 15:21   Re: [L4D/L4D2] Gascan Exploit Fixes
    Reply With Quote #2

    Is it possible to block stupid bot survivors to shoot white explosive barrels which appear in the Sacrifice campaign?
    __________________
    Kill all the son of a bitches, that's my official instructions.
    L4Dε Modified Talker
    bazrael is offline
    eyal282
    Veteran Member
    Join Date: Aug 2011
    Old 06-09-2022 , 01:12   Re: [L4D/L4D2] Gascan Exploit Fixes
    Reply With Quote #3

    Code:
    #pragma semicolon 1
    
    #include <sdkhooks>
    #include <sdktools>
    #include <sourcemod>
    
    public Plugin myinfo =
    {
    	name        = "Gascan Fixes",
    	author      = "tRololo312312",
    	description = "Fixes some Gascan related exploits...",
    	version     = "1.0",
    	url         = "http://www.sourcemod.net/"
    };
    
    public void OnEntityCreated(int entity, const char[] classname)
    {
    	if (StrEqual(classname, "weapon_gascan"))
    	{
    		if (IsValidEntity(entity))
    		{
    			SDKHook(entity, SDKHook_SpawnPost, OnGascanSpawn);
    			SDKHook(entity, SDKHook_OnTakeDamage, OnDamage);
    		}
    	}
    }
    
    public Action OnDamage(int victim, int& attacker, int& inflictor, float& damage, int& damagetype, int& weapon, float damageForce[3], float damagePosition[3])
    {
    	damageForce[0] = 0.0;
    	damageForce[1] = 0.0;
    	damageForce[2] = 0.0;
    
    	return Plugin_Changed;
    }
    
    public void OnGascanSpawn(int entity)
    {
    	if (IsValidEntity(entity))
    	{
    		SetEntProp(entity, Prop_Data, "m_CollisionGroup", 3);
    	}
    }
    __________________
    I am available to make plugins for pay.

    Discord: Eyal282#1334
    eyal282 is offline
    Reply



    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 15:38.


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