AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:S] Molotov Cocktails (https://forums.alliedmods.net/showthread.php?t=193674)

Franc1sco 08-21-2012 18:22

[CS:S] Molotov Cocktails
 
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

RedSword 08-22-2012 03:12

Re: [CS:S] Molotov Cocktails
 
A video would be nice.

EDIT : Or screens ?

shavit 08-22-2012 06:18

Re: [CS:S] Molotov Cocktails
 
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.

RedSword 08-22-2012 08:57

Re: [CS:S] Molotov Cocktails
 
Thanks. Looks badass.

Franc1sco 08-22-2012 13:16

Re: [CS:S] Molotov Cocktails
 
2 Attachment(s)
Beta version 1.1, try and tell me if it works well:

-Now added compatibility with Throwing Knives and Hosties

shavit 08-22-2012 14:37

Re: [CS:S] Molotov Cocktails
 
You need to include <hosties> and not just <lastrequest>.

Franc1sco 08-22-2012 14:55

Re: [CS:S] Molotov Cocktails
 
Quote:

Originally Posted by shavit (Post 1779098)
You need to include <hosties> and not just <lastrequest>.

The native that I need are on <lastrequest> and not in <hosties>

shavit 08-22-2012 14:57

Re: [CS:S] Molotov Cocktails
 
Quote:

Originally Posted by Franc1sco (Post 1779114)
The native that I need are on <lastrequest> and not in <hosties>

It will still not work.

Franc1sco 08-22-2012 14:59

Re: [CS:S] Molotov Cocktails
 
Quote:

Originally Posted by shavit (Post 1779115)
It will still not work.

And with hosties.inc yes? the native are in lastrequest.inc (at least in hosties 2.0)

shavit 08-22-2012 15:11

Re: [CS:S] Molotov Cocktails
 
Quote:

Originally Posted by Franc1sco (Post 1779120)
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.


All times are GMT -4. The time now is 04:51.

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