Monthly Target: $400 Donations: $131
 32% 

[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:
    88 
    Plugin Description:
    Cars will explode after they receive some damage
    Old 09-20-2010 , 16: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, 3754 views)
    File Type: sp Get Plugin or Get Source (l4d2_explosive_cars.sp - 2014 views - 30.0 KB)
    File Type: smx l4d2_explosive_cars.smx (17.8 KB, 3220 views)
    File Type: inc explosivecars_dev.inc (332 Bytes, 2090 views)
    File Type: sp Get Plugin or Get Source (l4d2_explosive_cars_old.sp - 839 views - 28.9 KB)

    Last edited by honorcode23; 03-12-2011 at 12:12. Reason: Update
    honorcode23 is offline
    blitzzz
    Member
    Join Date: Mar 2010
    Old 09-20-2010 , 18: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 , 18: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 , 18: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
    Cthulhu
    Member
    Join Date: Apr 2010
    Old 09-20-2010 , 21:49   Re: [L4D2] Explosive Cars
    Reply With Quote #5

    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 , 22:00   Re: [L4D2] Explosive Cars
    Reply With Quote #6

    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
    dirka_dirka
    Veteran Member
    Join Date: Nov 2009
    Old 09-21-2010 , 01:08   Re: [L4D2] Explosive Cars
    Reply With Quote #7

    a cvar on infected setting off the explosion would be nice..
    dirka_dirka is offline
    deimos38170
    Member
    Join Date: Sep 2010
    Location: france
    Old 09-21-2010 , 02:25   Re: [L4D2] Explosive Cars
    Reply With Quote #8

    Man! u make so nice plugins!! i love it
    deimos38170 is offline
    corsi
    Member
    Join Date: Mar 2010
    Old 09-21-2010 , 04:14   Re: [L4D2] Explosive Cars
    Reply With Quote #9

    well its not working!!! i changed the car health to 100 and nothing happened!!! anyway its a good idea but its not working!!! i shot that car and shoved and surprise NO EXPLOSION!!!
    corsi is offline
    blitzzz
    Member
    Join Date: Mar 2010
    Old 09-21-2010 , 06:18   Re: [L4D2] Explosive Cars
    Reply With Quote #10

    Quote:
    Originally Posted by corsi View Post
    well its not working!!! i changed the car health to 100 and nothing happened!!! anyway its a good idea but its not working!!! i shot that car and shoved and surprise NO EXPLOSION!!!
    I think you need to shoot those cars that are movable (can be hit by tanks). Its working for me.
    blitzzz is offline
    Reply


    Thread Tools
    Display Modes

    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 01:41.


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