View Single Post
Author Message
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
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