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

[L4D2] Explosive Cars v1.0.4


Post New Thread Reply   
 
Thread Tools Display Modes
Author
honorcode23
BANNED
Join Date: Mar 2010
Location: Chile
Plugin ID:
1963
Plugin Version:
1.0.4
Plugin Category:
Fun Stuff
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    37 
    Plugin Description:
    Cars will explode after they receive some damage
    Old 09-20-2010 , 15:33   [L4D2] Explosive Cars v1.0.4
    Reply With Quote #1

    [L4D2] Explosive Cars

    New gamedata March 12th, 2011

    Note: Delete the old .cfg file if you decide to update from 1.0.3 to 1.0.4+!
    Re-download the gamedata file if you want to update from 1.0.2 to 1.0.3+

    NOTE: Version 1.0.4 will only work with the LATEST version of SDKHooks. If you do not wish to update, grab the version 1.0.3 (l4d2_explosive_cars_old)

    Compatibility:
    -l4d2_explosive_cars (1.0.4) is compatible with SDKHooks 1.3.0-REDUCKS
    -l4d2_explosive_cars_old (1.0.3) is compatible with SDKHooks 1.3.0

    Description:
    When i first started playing left 4 dead, i always wondered why didn't cars explode as in GTA for example, so i decided to make this for myself. I think it would be cool to share it anyway .

    This plugin will make all cars explode after they receive enough damage. The cars get damage from anything, even shoving them will damage them (Of course, the damage will be minor).

    Video Demostration

    Installation
    -Copy l4d2_explosive_cars.smx in the sourcemod/plugins folder.
    -Copy l4d2explosivecars.txt in the sourcemod/gamedata folder.

    Dependencies:
    -This plugin requires SDK Hooks Extension to work.

    ConVars:

    A config file will be generated at cfg/sourcemod -> Check for ConVars in there

    Known Bugs:
    -Client side crashes on c5m3_park for low performance computers (Solutions: Higher car health - Lower particle time - Disable the plugin on that map) - Unable to find permanent solution, stick with the other ways the plugin offer.

    Thanks to:
    -AtomicStryker for his help and interest on the plugin.
    -blackalegator for the video.

    SCRIPTING:
    -This plugin provides one forward that will be fired every time a car explodes. You can code some plugins wiht it, like for example, call a message or punish someone.

    To add the forward just move the explosivecars_dev.inc file into your scripting/include folder. Then include it adding this line in your plugin.

    PHP Code:
    #include <explosivecars_dev> 
    and call it using this format

    PHP Code:
    public OnCarExploded(attackercar)
    {
            
    //Stuff here

    Note that the attacker param will not always return a client index, so put some filters on it. The car is the car index that exploded.

    Changelog:
    Code:
    1.0.4
    -Modified to match latest SDKHooks modifications
    -Added 2 new convars to control damage done to the car (l4d2_explosive_cars_fire_multiplier and l4d2_explosive_cars_explosion_multiplier).
    -Fixed glitch were cars could get hooked twice.
    
    1.0.3
    -Changed the "l4d2_explosive_cars_panic_chance" to obey a % logic.
    -Added original molotov fire as fire trace
    -Added the "l4d2_explosive_cars_inferno_count" to control the amount of fire
    -Fixed a few code glitches
    
    1.0.2
    -Added a convar to control if the engine fire of the damage can trigger an explosion.
    -Added a forward that fires everytime a car explodes.
    -Fixed a fire trace radius trigger.
    
    1.0.1f
    -Added two new convars to control how fast is the car launched.
    
    1.0.1e
    -Remove sound that was possibly producing crashes.
    -Precached a sprite that comes with the explosion.
    
    1.0.1d
    -Added a cvar for the damage made by the explosion.
    -Added a cvar to enable or disable damage from the explosion to other cars.
    -Added a cvar for a chance of the panic event.
    -Added a cvar to configure the 'Fire Trace' Damage interval.
    -Added a cvar to disable the plugin in specific maps.
    -Exploded cars will now have the wrecked model and will be black (More realistic).
    
    1.0.1c
    -Added a cvar to control the tank's damage.
    -Fixed a bug where players would get pushed away by the exploded car.
    
    1.0.1b
    -Added a 'protection' for map starts.
    -Fixed l4d2_explosive_cars_infected Cvar.
    
    1.0.1a
    -Fixed the cars not exploding for the second team on versus.
    
    1.0.1
    -Added the code improvements from AtomicStryker. Thanks alot!
    -Added a Cvar to allow infected from doing damage to the car.
    -Added a Cvar to remove (or not) the burning particle of the car.
    -Added a fire sound.
    
    1.0
    -Initial Release
    Attached Files
    File Type: txt l4d2explosivecars.txt (1.3 KB, 6852 views)
    File Type: sp Get Plugin or Get Source (l4d2_explosive_cars.sp - 4175 views - 30.0 KB)
    File Type: smx l4d2_explosive_cars.smx (17.8 KB, 5820 views)
    File Type: inc explosivecars_dev.inc (332 Bytes, 4148 views)
    File Type: sp Get Plugin or Get Source (l4d2_explosive_cars_old.sp - 2190 views - 28.9 KB)

    Last edited by honorcode23; 03-12-2011 at 11:12. Reason: Update
    honorcode23 is offline
    blitzzz
    Member
    Join Date: Mar 2010
    Old 09-20-2010 , 17:15   Re: [L4D2] Explosive Cars
    Reply With Quote #2

    plugin failed to compile
    blitzzz is offline
    McFlurry
    Veteran Member
    Join Date: Mar 2010
    Location: RemoveEdict(0);
    Old 09-20-2010 , 17:27   Re: [L4D2] Explosive Cars
    Reply With Quote #3

    It requires SDK Hooks. You really didn't take the time to read the post did you.
    __________________
    McFlurry is offline
    Send a message via Skype™ to McFlurry
    blitzzz
    Member
    Join Date: Mar 2010
    Old 09-20-2010 , 17:49   Re: [L4D2] Explosive Cars
    Reply With Quote #4

    Oh wells, i downloaded the sp file and compiled. Plugin is working nicely.
    blitzzz is offline
    dean_pepler
    BANNED
    Join Date: Apr 2016
    Old 04-09-2016 , 09:00   Re: [L4D2] Explosive Cars
    Reply With Quote #5

    Quote:
    Originally Posted by McFlurry View Post
    It requires SDK Hooks. You really didn't take the time to read the post did you.


    the only one that works - https://forums.alliedmods.net/showpo...&postcount=151

    on the main page the plugins dont work.

    Last edited by dean_pepler; 04-09-2016 at 10:09. Reason: have to give a reason for the plugin not working
    dean_pepler is offline
    Cthulhu
    Member
    Join Date: Apr 2010
    Old 09-20-2010 , 20:49   Re: [L4D2] Explosive Cars
    Reply With Quote #6

    If a tank hit a car, the car receive damage?

    Suggestion: remove shoving damage or add a cvar ;)
    Cthulhu is offline
    honorcode23
    BANNED
    Join Date: Mar 2010
    Location: Chile
    Old 09-20-2010 , 21:00   Re: [L4D2] Explosive Cars
    Reply With Quote #7

    Quote:
    Originally Posted by Cthulhu View Post
    If a tank hit a car, the car receive damage?

    Suggestion: remove shoving damage or add a cvar ;)
    I calculated how long would it explode by shoving. Took 5 mins to do so, i dont think survivors will be 5 mins shoving lol. Yes, tanks will explode cars so they gotta be carefull. (Anyway, if the car explodes near survivors, they are completely wiped ).
    honorcode23 is offline
    Cthulhu
    Member
    Join Date: Apr 2010
    Old 09-21-2010 , 12:10   Re: [L4D2] Explosive Cars
    Reply With Quote #8

    Quote:
    Originally Posted by honorcode23 View Post
    I calculated how long would it explode by shoving. Took 5 mins to do so, i dont think survivors will be 5 mins shoving lol. Yes, tanks will explode cars so they gotta be carefull. (Anyway, if the car explodes near survivors, they are completely wiped ).
    Well, imagine a car with 1 HP after take some damage from survivors weapons, you try to push an infected shoving him but you hit the car...

    Only survivors firearms weapons should damage car. With this plugin the tactic of use cars with tanks trying to incapacitate survivors is gone :-(
    Cthulhu is offline
    Crazygamer34894
    Senior Member
    Join Date: Feb 2013
    Location: Cape Town Western Cape
    Old 11-14-2014 , 12:46   Re: [L4D2] Explosive Cars
    Reply With Quote #9

    Quote:
    Originally Posted by honorcode23 View Post
    I calculated how long would it explode by shoving. Took 5 mins to do so, i dont think survivors will be 5 mins shoving lol. Yes, tanks will explode cars so they gotta be carefull. (Anyway, if the car explodes near survivors, they are completely wiped ).
    not if you activate GodMode
    __________________
    Crazygamer34894 is offline
    Send a message via Yahoo to Crazygamer34894 Send a message via Skype™ to Crazygamer34894
    dirka_dirka
    Veteran Member
    Join Date: Nov 2009
    Old 09-21-2010 , 00:08   Re: [L4D2] Explosive Cars
    Reply With Quote #10

    a cvar on infected setting off the explosion would be nice..
    dirka_dirka 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 09:12.


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