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

Molotov Cocktail


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
SAMURAI16
BANNED
Join Date: Sep 2006
Old 03-05-2007 , 15:02   Molotov Cocktail
Reply With Quote #1

Molotov Cocktail

Current Version : 3.1c
Plugin Authors : SAMURAI &
[ --<-@ ] Black Rose
Changelog:

3.1c:
Fixed bug from nextthing, that may crashed servers
Change the type of cvars "molotov_tempcocktail" and "molotov_tempoverride", now cannot be changed by clients in multiplayer

3.1b:
Fixed bug from menu command
Fixed bug with explode in face on linux servers

3.1:
Remade cvars 'molotov_cocktail' & 'molotov_override' into commands.
Little bugs fix
Removed unusefull codes.
Added a new command for see the status of plugin.


3.0:
New calculation for flame position. (See image)
Added buymenu option. (See image)
( This does not work with VGUI, therefore cmd will still be enabled if override isn't enabled. )
Added cvar for max ammount of molotovs ( Does not work with override ).
Added command to give molotov to a player.
Added anti lagg system when throwing at small ents ( Old calculation system ).
Added damage on ents made by molotov.
New cvars : molotov_max and molotov_inmenu ( read Cvars part )


2.1:
Added a new cvar for set where to buy molotov : only on buyzone or anywhere.

2.0:
Added new cvars.
Updated the fire effects.
Fixed little bugs.

1.0:
Initial version.


Plugin Details:
With this plugin, add on your server an new grenade, wich called molotov. Molotov it's an old style of grenade used in wars.
To get a molotov in game, you must buy it with a simple command in chat.
Remember:
You can set the price of molotov.
Molotov grenade have own model.
You can buy more that one molotov in a round.
If you have bought a hegrenade, you can't buy a molotov and vice-versa.
You can set the damage done by molotov.
You can set the radius damage of molotov.
On molotov impact, are presents fire effects, smoke effects, sounds.
If you have bought a molocov, on next round if you doesen't used yet, will no remain with them.
New Molotov made damage on ents.
New Can buy molotov from buy menu.
New Can give molotov to another players with a command.

You can see a trailer with the plugin in action : http://www.youtube.com/watch?v=WRMHcJXT4eE

Client Commands:
say molotov
say /molotov

Use on of these commands to get a Molotov Cocktail.
One of these commands works only if
molotov_override cvar is 0.

Admin Commands:

New molotov_cocktail - 1/0 - Enable/Disable the plugin.

New molotov_give <player> - Give to selected player an molotov.

New molotov_override 1/0 - Override the original hegrenade automaticly with molotov.
! ADMIN_KICK required for use this command.


Cvars :

molotov_price - Set the molotov price.
Default = 1200 $


molotov_damage - Set the damage done by molotov.
Default
= 40.0


molotov_radius - Set the radius of molotov damage.
Default = 200.0

molotov_firetime - Duration of fire effects, sounds etc
Default = 6


molotov_firedamage - Ammount of damage done by fire effects.
Default = 1 ( every 0.2 secs )


molotov_tk - Disable/Enable the ability to damage/kill someone on your team with molotov.
Default = 1


molotov_tempoverride - override the original hegrenade autmoaticly with molotov.
Default = 0


molotov_buyzone - do you have to be in buyzone? ( if inmenu this is ignored )
1 = only on buyzone (default)
0 = anywhere

New molotov_max - max num of molotovs able to carry.
Default = 1 ( Does not work with override )

New molotov_inmenu - Puts molotov in the end of the equipment buymenu.
Default = 0 ( if the override cvar is enabled the hegrenade will be replaced instead. )


Required Modules:
Fakemeta
Fun
Cstrike
CSX
And Fakemeta Utilities

Install:
- Install the plugin like any plugin.
- Extract sounds arhive on your \cstrike\sound\misc\ folder.
- Extract models arhive on your \cstrike\models\ folder.
- Extract sprites arhive on your \cstrike\sprites\ folder.


Credits:
- VEN for some stocks from him Fakemeta Utilities.
- manchimocyrus
for the trailer.


See screnshots
Attached Thumbnails
Click image for larger version

Name:	scr_molotov_1.JPG
Views:	24132
Size:	51.9 KB
ID:	14401   Click image for larger version

Name:	scren1.jpg
Views:	13416
Size:	68.4 KB
ID:	14432   Click image for larger version

Name:	2.jpg
Views:	6524
Size:	23.7 KB
ID:	14433   Click image for larger version

Name:	Screen3.jpg
Views:	12680
Size:	66.1 KB
ID:	14434   Click image for larger version

Name:	Screen4.jpg
Views:	21912
Size:	35.8 KB
ID:	14435  

Attached Files
File Type: rar xsprites.rar (99.6 KB, 12788 views)
File Type: zip xSounds.zip (39.7 KB, 11367 views)
File Type: zip xModels.zip (398.8 KB, 13148 views)
File Type: sma Get Plugin or Get Source (molotov_cocktail.sma - 14569 views - 21.9 KB)
File Type: amxx molotov_cocktail.amxx (26.5 KB, 7559 views)

Last edited by SAMURAI16; 03-25-2007 at 00:43.
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
FormulaZero
BANNED
Join Date: Feb 2007
Location: Sector 7G
Old 03-05-2007 , 15:46   Re: Molotov Cocktail
Reply With Quote #2

Nice, the code looks good and I like it tested and worked fine.
FormulaZero is offline
loren28
Senior Member
Join Date: Nov 2006
Old 03-05-2007 , 15:50   Re: Molotov Cocktail
Reply With Quote #3

Your plugin failed to compile! Read the errors below:

Welcome to the AMX Mod X 1.76-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

/home/groups/amxmodx/tmp3/php82R9EM.sma(37) : fatal error 100: cannot read from file: "fakemeta_util"

Compilation aborted.
1 Error.


167724 successful compiles to date.
92460 failed compiles to date.
Old compiler: 101980 compiles before decommission.
This tool by: David "BAILOPAN" Anderson.
loren28 is offline
Toster v2.1
Senior Member
Join Date: Oct 2006
Location: Latvia, Riga
Old 03-05-2007 , 16:01   Re: Molotov Cocktail
Reply With Quote #4

Yea, I get that too...
Toster v2.1 is offline
Send a message via Skype™ to Toster v2.1
godlike
Senior Member
Join Date: Apr 2005
Old 03-05-2007 , 16:24   Re: Molotov Cocktail
Reply With Quote #5

include fakemeta_util in the compiler (your own compiler not the web compiler ) and place the amxx file under the source code
__________________
Read the rules before posting something stupid: click here

Any questions about amxx PM me

Last edited by godlike; 03-05-2007 at 16:27.
godlike is offline
Old 03-05-2007, 16:44
[ --<-@ ] Black Rose
This message has been deleted by [ --<-@ ] Black Rose. Reason: nvm
Zenith77
Veteran Member
Join Date: Aug 2005
Old 03-05-2007 , 20:19   Re: Molotov Cocktail
Reply With Quote #6

This is actually a pretty good plugin. However I have one problem, and it may be due to the fact that I'm running on 4 hours of sleep but here goes.

Code:
public fire_damage(param[]) {         new iOrigin[3]     new gOrigin[3]     new dist     new range = get_pcvar_num(pMlradius);         new attacker = param[0]         gOrigin[0] = param[1]     gOrigin[1] = param[2]     gOrigin[2] = param[3]         random_fire(gOrigin, 0, 10, 5, 30)         for ( new i = 1; i <= g_MaxPlayers; i++ ) {         if ( is_user_alive(i) ) {             get_user_origin(i, iOrigin)             dist = get_distance(gOrigin, iOrigin)             if(dist <= range) {                 if ( pev(i, pev_health) < 3.0 )                     kill(attacker, i)                 else                     fm_fakedamage(i, "molotov", 3.0, DMG_BURN)             }         }     } }

Why not just use molotov_damage() in the indicated spot, instead of doing repeating code that already exists:
Code:
public fire_damage(param[]) {         new iOrigin[3]     new gOrigin[3]     new dist     new range = get_pcvar_num(pMlradius);         new attacker = param[0]         gOrigin[0] = param[1]     gOrigin[1] = param[2]     gOrigin[2] = param[3]         random_fire(gOrigin, 0, 10, 5, 30)     // molotov_damage() here. }
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 03-05-2007 , 20:42   Re: Molotov Cocktail
Reply With Quote #7

The fire damage one is made with integrers and there is no damage calculation.
Pretty much pure lazyness, but i will probably change it now when you say it.

Edit: Done, waiting for samurai.

OT: The forums should have something to allow multiple users to handle a thread. The user who creates the thread decides wich to allow editing of the main post.
Would be great for plugins with multiple authors.

And when karma given all will recive karma and count as an (un)approved plugin for all.

Last edited by [ --<-@ ] Black Rose; 03-05-2007 at 20:56.
[ --<-@ ] Black Rose is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 03-05-2007 , 21:01   Re: Molotov Cocktail
Reply With Quote #8

So I guess it was the four hours of sleep.
Wow, I actually like that idea. You should submit it.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
Da_sk8rboy
Veteran Member
Join Date: Jul 2006
Old 03-05-2007 , 22:13   Re: Molotov Cocktail
Reply With Quote #9

you have some grammer mistakes.
__________________
i stop around here and there.
Da_sk8rboy is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 03-05-2007 , 22:30   Re: Molotov Cocktail
Reply With Quote #10

Quote:
Originally Posted by Zenith77 View Post
Wow, I actually like that idea. You should submit it.
I was going to but i got lost at the forums. I have no idea where to submit.
Quote:
Originally Posted by Da_sk8rboy View Post
you have some grammer mistakes.
No, samurai does. I've fixed it though.

Edit: Thx for the update SAMURAI.

Last edited by [ --<-@ ] Black Rose; 03-06-2007 at 01:07.
[ --<-@ ] Black Rose 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 12:01.


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