Raised This Month: $135 Target: $400
 33% 

Grenade Mod(CS/CZ)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   GHW_Chronic (70)
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 10-21-2006 , 18:32   Grenade Mod(CS/CZ)
Reply With Quote #1

-----------------Grenade Mod By k007 O.o----------------

_____________________
/AMXX 1.75 or Higher Required!/
-------------------------------

Description:
This plugin lets clients buy 3 grenades from a menu or a say command,
each grenade has it owns models and many more...

HE Grenade(HE):
It Glows Red, has a Red trail, and it Seeks to Enemies!

Flash bang(FB):
It Glows Blue, has a Blue Trail, and the flash is colored!

Smoke Grenade(SG)
It Glows Green, has a Green Trail, and it has special smoke effect(extra puffs)

Cvars
  • gm_enabled ( Enabled and Disbale the plugin(1=on, 0= off, Default is 1) )
  • gm_trails (1= make the nades trails default, 2= team based(Default 1) )
  • gm_buyzone(1=must be in a buyzone to buy grenade, 0= anywhere(def 1)
HE Cvars:
  • gm_he_cost (HE grenade cost(Default 1000)
  • gm_he_fuse( HE grenade fuse time(Default 5)
  • gm_he_nadespeed( HE grenade speed when it's seeking(default 900)
  • gm_he_launchtime(HE grenade launch time(Default 1)
FB Cvars:
  • gm_fb_cost(Colored Flash grenade cost(Default 1000)
  • gm_fb_fuse(Colored Flash grenade fusetime(Default 5)
  • gm_fb_mode ( Default: 1 )
  • -0: Off
  • - 1: Specified color
  • - 2: Random color
  • gm_fb_r - Color Red ( Default: 255 )
  • gm_fb_g - Color Green ( Default: 25 )
  • gm_fb_b - Color Blue ( Default: 25 )
SG Cvars:
  • gm_sg_cost(Smoke Grenade cost(Default 1000)
  • gm_sg_fuse(Smoke Grenade fuse time(Default 5)
  • gm_smoke_mode(0 = off, 1=on smoke effects(Default 1)
Chat Commands
  1. /grenades or grenades - show the grenades buy menu
  2. /buyHE or buyHE - buy a Seeking HE grenade
  3. /buyFB or buyFB - buy a Colored Flashbang
  4. /buySG or buySG - buy a Smoke grenade
Modules
  • FUN
  • CSX
  • CSTRIKE
  • Fakemeta
ChangeLog
  • 1.1: Release
  • 1.2: Cleaned the code
  • 1.3: fixed some stuff =p
  • 1.4: Added buyzone cvar, and added Explosion Effects to every nade (tested like 50 times and it works fine )
  • 1.5 : Changed Menu style to the new menu system..
  • 1.6 fixed some typos..(tell me if there is anymore typos!)
Credits
v3x, Cheap_suit, mayhem, and XxAvalanchexX

How to install?: download the .amxx file to your addons\amxmodx\plugins, then download the models.zip and put the folder called gm under \your server mod dir\models


Tested On CZ and should work on cs 1.6

You could Get the models from HERE!!!!!!!!!!! thx to bo0m! fo the upload, my internet sucks!
Attached Files
File Type: sma Get Plugin or Get Source (grenade_mod.sma - 11136 views - 25.8 KB)

Last edited by k007; 11-13-2006 at 20:32.
k007 is offline
Send a message via MSN to k007
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 10-21-2006 , 18:53   Re: Grenade Mod :)
Reply With Quote #2

mmm fun.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 10-21-2006 , 19:07   Re: Grenade Mod :)
Reply With Quote #3

realy small update
k007 is offline
Send a message via MSN to k007
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 10-21-2006 , 19:10   Re: Grenade Mod :)
Reply With Quote #4

You could clean up your curweapon area a bit by doing something like this
Code:
register_event("CurWeapon","curweapon","be", "1=1")//this event checks if the weapon is active...if I remember correctly public curweapon(id)     {       new wpnID = read_data(2)         switch(wpnID)     {         case CSW_SMOKEGRENADE:         {             if(hasSG[id])                 {                 set_pev(id, pev_viewmodel2, V_SG_MODEL)                 set_pev(id, pev_weaponmodel2, P_SG_MODEL)             }         }         case CSW_HEGRENADE:         {             if(hasHE[id])                 {                 set_pev(id, pev_viewmodel2, V_HE_MODEL)                 set_pev(id, pev_weaponmodel2, P_HE_MODEL)             }         }         case CSW_FLASHBANG:         {             if(hasFB[id])                 {                 set_pev(id, pev_viewmodel2, V_FB_MODEL);                 set_pev(id, pev_weaponmodel2, P_FB_MODEL);             }         }     } }

In public grenade throw, your declaring
Code:
new id = index
yet inside the same function your using
Code:
new Team = get_user_team(index)
.

And the last thing I noticed...you added a
Code:
stock fm_set_rendering
which is the exact same stock from fakemeta_util....why not just use
Code:
#include <fakemeta_util>
and delete the stock from the plugin.

Just my .02 cents.

Last edited by organizedKaoS; 10-21-2006 at 19:12.
organizedKaoS is offline
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 10-21-2006 , 19:48   Re: Grenade Mod :)
Reply With Quote #5

update!
i fixed the curweapon flags and the id for the team. for the fm utl stock i remove it! i don't want people coming saying include this and include that the grenades will still glow but just i used a diffrent function to make them glow
k007 is offline
Send a message via MSN to k007
oneofthedragon
Member
Join Date: Jun 2006
Old 10-22-2006 , 18:47   Re: Grenade Mod :)
Reply With Quote #6

hmm model DL isnt working >.< Would it be possible to add a model free version? I guess I can change the sma myself though... But could you? I don't like my players having to DL too many models... Cool mod though!
__________________
Need a map? PM me.
oneofthedragon is offline
Old 10-22-2006, 19:22
k007
This message has been deleted by k007.
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 10-22-2006 , 19:25   Re: Grenade Mod :)
Reply With Quote #7

sorry man i had a typo in the link try now
k007 is offline
Send a message via MSN to k007
Server Crasher
BANNED
Join Date: Jul 2006
Location: Attica State Prison
Old 10-23-2006 , 01:06   Re: Grenade Mod :)
Reply With Quote #8

How/what do I have to do so that you don't have to be in the buyzone? I would like to add it to my UAIO plugin
Server Crasher is offline
Old 10-23-2006, 01:32
SweatyBanana
This message has been deleted by SweatyBanana. Reason: per request.
godlike
Senior Member
Join Date: Apr 2005
Old 10-23-2006 , 12:03   Re: Grenade Mod :)
Reply With Quote #9

n1 plugin k007 .Im happy you finally finished this plugin.
It will be Ub3r great if you added this with the flashbanks :
(Flashbang Dynamic Light) http://forums.alliedmods.net/showthread.php?t=46258 by XxAvalanchexX
__________________
Read the rules before posting something stupid: click here

Any questions about amxx PM me
godlike is offline
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 10-23-2006 , 20:45   Re: Grenade Mod :)
Reply With Quote #10

i was going to but then i didn't want to, because if you want those lighting effects with my grenades just run ava plugin and it will works for my grenade too...
ok so KINDA OF A BIG UPDATE:
added a buuyzone cvar, and added 3 explosion effects for every nade i don't want to talk it about it much just run the plugin in your server and you will see
k007 is offline
Send a message via MSN to k007
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 20:19.


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