Raised This Month: $7 Target: $400
 1% 

[CS:S] Molotov Cocktails


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Plugin ID:
3190
Plugin Version:
v2.1
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    2 
    Plugin Description:
    This change the flashbang model to a bottle and ignites and when they explode there is a nice fire ball effect that ignite players
    Old 08-21-2012 , 18:22   [CS:S] Molotov Cocktails
    Reply With Quote #1

    Description

    This change the flashbang model to a bottle and ignites and when they explode there is a nice fire ball effect that ignite players.


    Requirements:
    SDK Hooks


    Cvars:

    Put in server.cfg
    Code:
    sm_cssmolotov_ignite 1 // Enable/Disable ignite player
    sm_cssmolotov_damage 0.0 // Fire damage on touch, per second (0.0 = no damage)
    sm_cssmolotov_ff 1 // Enable/Disable respect friendly fire
    sm_cssmolotov_ignite_time 4.0 // Time in seconds for ignite player (require sm_cssmolotov_ignite enable)
    sm_cssmolotov_msg 1 // Enable/Disable message of number of molotov that you have
    sm_cssmolotov_amount 1 // Amount of molotov in spawn (required a flashbang for make a molotov)
    sm_cssmolotov_buyzone 0 // 1 players can only buy while in buyzone, 0 players can buy anywhere
    sm_cssmolotov_price 0 // Price to buy a molotov, 0 for free
    sm_cssmolotov_adminflag 0 // Admin flag required to use molotov. 0 = No flag needed. Can use a b c ....
    Note: ignite is burn of sourcemod and fire is the fire of env_fire entity (no is the same thing) so you can put damage in fire without ignite player


    Commands:
    sm_buymolotov - buy a molotov


    Changelog

    v1.0
    - public released

    v1.1
    -Now added compatibility with Throwing Knives and Hosties
    -Added cvars

    v1.2
    -Added cvar for teammates
    -Added cvar for ignite time
    -Small bug fixed

    v1.2.1
    -Fixed includes

    v2.0
    -Added more cvars and features

    v2.1
    -Added cvar for can add an admin flag for use molotov
    -Minor code changes
    -Removed hosties includes (if you use hosties in your server, view line 8 of the source code)


    Credits

    Idea by http://addons.eventscripts.com/addons/view/Cocktail


    Views in last versions: 342


    Donations (optional):

    If you apreciate my work, you can donate me via paypal or with a trade offer


    Download:

    Main repository
    Direct download
    Code changes
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.


    Last edited by Franc1sco; 12-20-2015 at 09:36. Reason: new version
    Franc1sco is offline
    Send a message via MSN to Franc1sco
    RedSword
    SourceMod Plugin Approver
    Join Date: Mar 2006
    Location: Quebec, Canada
    Old 08-22-2012 , 03:12   Re: [CS:S] Molotov Cocktails
    Reply With Quote #2

    A video would be nice.

    EDIT : Or screens ?
    __________________
    My plugins :
    Red Maze
    Afk Bomb
    RAWR (per player/rounds Awp Restrict.)
    Kill Assist
    Be Medic

    You can also Donate if you appreciate my work

    Last edited by RedSword; 08-22-2012 at 03:12.
    RedSword is offline
    shavit
    AlliedModders Donor
    Join Date: Dec 2011
    Location: Israel
    Old 08-22-2012 , 06:18   Re: [CS:S] Molotov Cocktails
    Reply With Quote #3

    Awesome bro, not like the CS:GO Molotov - but better!

    Edit: I merged into a Hosties LR, PM me for the code and post it in the thread if you want.
    Spoiler
    __________________
    retired

    Last edited by shavit; 08-22-2012 at 07:12.
    shavit is offline
    RedSword
    SourceMod Plugin Approver
    Join Date: Mar 2006
    Location: Quebec, Canada
    Old 08-22-2012 , 08:57   Re: [CS:S] Molotov Cocktails
    Reply With Quote #4

    Thanks. Looks badass.
    __________________
    My plugins :
    Red Maze
    Afk Bomb
    RAWR (per player/rounds Awp Restrict.)
    Kill Assist
    Be Medic

    You can also Donate if you appreciate my work
    RedSword is offline
    Franc1sco
    Veteran Member
    Join Date: Oct 2010
    Location: Spain (Madrid)
    Old 08-22-2012 , 13:16   Re: [CS:S] Molotov Cocktails
    Reply With Quote #5

    Beta version 1.1, try and tell me if it works well:

    -Now added compatibility with Throwing Knives and Hosties
    Attached Files
    File Type: sp Get Plugin or Get Source (molotov.sp - 1274 views - 3.6 KB)
    File Type: smx molotov.smx (4.7 KB, 406 views)
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.


    Last edited by Franc1sco; 08-22-2012 at 13:19.
    Franc1sco is offline
    Send a message via MSN to Franc1sco
    shavit
    AlliedModders Donor
    Join Date: Dec 2011
    Location: Israel
    Old 08-22-2012 , 14:37   Re: [CS:S] Molotov Cocktails
    Reply With Quote #6

    You need to include <hosties> and not just <lastrequest>.
    __________________
    retired
    shavit is offline
    Franc1sco
    Veteran Member
    Join Date: Oct 2010
    Location: Spain (Madrid)
    Old 08-22-2012 , 14:55   Re: [CS:S] Molotov Cocktails
    Reply With Quote #7

    Quote:
    Originally Posted by shavit View Post
    You need to include <hosties> and not just <lastrequest>.
    The native that I need are on <lastrequest> and not in <hosties>
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.

    Franc1sco is offline
    Send a message via MSN to Franc1sco
    shavit
    AlliedModders Donor
    Join Date: Dec 2011
    Location: Israel
    Old 08-22-2012 , 14:57   Re: [CS:S] Molotov Cocktails
    Reply With Quote #8

    Quote:
    Originally Posted by Franc1sco View Post
    The native that I need are on <lastrequest> and not in <hosties>
    It will still not work.
    __________________
    retired
    shavit is offline
    Franc1sco
    Veteran Member
    Join Date: Oct 2010
    Location: Spain (Madrid)
    Old 08-22-2012 , 14:59   Re: [CS:S] Molotov Cocktails
    Reply With Quote #9

    Quote:
    Originally Posted by shavit View Post
    It will still not work.
    And with hosties.inc yes? the native are in lastrequest.inc (at least in hosties 2.0)
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.


    Last edited by Franc1sco; 08-22-2012 at 15:06.
    Franc1sco is offline
    Send a message via MSN to Franc1sco
    shavit
    AlliedModders Donor
    Join Date: Dec 2011
    Location: Israel
    Old 08-22-2012 , 15:11   Re: [CS:S] Molotov Cocktails
    Reply With Quote #10

    Quote:
    Originally Posted by Franc1sco View Post
    And with hosties.inc yes? the native are in lastrequest.inc (at least in hosties 2.0)
    I know, but you need both, I used to have many plugins with it.
    Just do:
    Code:
    #undef REQUIRE_PLUGINS
    #include <hosties>
    #include <lastrequest>
    #include <throwingknives>
    #define REQUIRE_PLUGINS
    Because not everybody have Throwing Knives and Hosties in their server.
    __________________
    retired
    shavit 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 05:00.


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