AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Subplugin Submission [ZP] Extra Item: Concussion Grenade 1.4(Last Update 10.03.2010) (https://forums.alliedmods.net/showthread.php?t=113328)

NiHiLaNTh 12-25-2009 14:04

[ZP] Extra Item: Concussion Grenade 1.4(Last Update 10.03.2010)
 
2 Attachment(s)
--- Introduction ---
This plugin adds new weapon to zombie plague - concussion grenade.I took
this idead from Team Fortress Classic.When grenade explodes it doesn't
do any damage, but it starts to make hallucinations to players, such as
screen shake, screen fade, recoil changes.Btw, this item for zombies and it
cost 15 ammo packs.

--- CVARs ---
zp_conc_nade_radius 500 -- Explosion radius
zp_conc_nade_duration 7 -- Duration of hallucinations

--- Credits ---
NiHiLaNTh - Plugin
dels/Shalun - Grenade models
MeRcyLeZZ - Some useful code parts
xPaw / Xellath - Code optimization

--- Changelog ---
HTML Code:

v1.0 - Initial release
v1.1 - Optimized code ( Thanks xPaw and Xellath )
v1.2 - Fixed bug when after explosion player were not affected
v1.3 - Added p_ and w_ model support
    - Fixed run-time error
    - Made some minor improvements ( MeTaLiCroSS )
v1.4 - Players are able to carry multiple grenades at the same time 

--- Screenshots ---
http://s15.radikal.ru/i189/0912/4b/f4d772b093b8t.jpg
http://s40.radikal.ru/i088/0912/22/4538f0d1af9bt.jpg

Version 1.3 requires new models.Please re-download resources.zip

metallicawOw 12-25-2009 14:17

Re: [ZP] Extra Item: Concussion Grenade
 
Quote:

Originally Posted by NiHiLaNTh (Post 1030846)
--- Introduction ---
This plugin adds new weapon to zombie plague - concussion grenade.I took
this idead from Team Fortress Classic.When grenade explodes it doesn't
do any damage, but it starts to make hallucinations to players, such as
screen shake, screen fade, recoil changes.

--- CVARs ---
zp_conc_nade_radius 500 -- Explosion radius
zp_conc_nade_duration 7 -- Duration of hallucinations

--- Credits ---
NiHiLaNTh - Plugin
dels - Grenade model
MeRcyLeZZ - Some useful code parts

--- Changelog ---
v1.0 - Initial release

--- Screenshots ---
http://s15.radikal.ru/i189/0912/4b/f4d772b093b8t.jpg
http://s40.radikal.ru/i088/0912/22/4538f0d1af9bt.jpg

Only for ZP 4.3 :/

NiHiLaNTh 12-25-2009 14:20

Re: [ZP] Extra Item: Concussion Grenade
 
you mean it works only for zp 4.3 ? If so, i'm sorry but I don't to support old versions

metallicawOw 12-25-2009 14:27

Re: [ZP] Extra Item: Concussion Grenade
 
Quote:

Originally Posted by NiHiLaNTh (Post 1030865)
you mean it works only for zp 4.3 ? If so, i'm sorry but I don't to support old versions

:(

NiHiLaNTh 12-25-2009 14:31

Re: [ZP] Extra Item: Concussion Grenade
 
Quote:

Originally Posted by metallicawOw (Post 1030874)
:(

Why do you don't want to use zp 4.3 ?

Ciio 12-25-2009 16:20

Re: [ZP] Extra Item: Concussion Grenade
 
Very nice extra item! ... + karma
---------------------------
Video of the grenade

Youtube : http://www.youtube.com/watch?v=PTFncEQTixI
Dowload : http://www.concussiongrenadevideo.tk/

Not take into account the chat xD

Freezet 12-25-2009 16:34

Re: [ZP] Extra Item: Concussion Grenade
 
Nice. add to server :)

DarkSkif 12-26-2009 00:26

Re: [ZP] Extra Item: Concussion Grenade
 
Here is a good plugin, put on the server +karma

NiHiLaNTh 12-26-2009 04:49

Re: [ZP] Extra Item: Concussion Grenade
 
Quote:

Very nice extra item! ... + karma


Quote:

Nice. add to server :)
Quote:

Here is a good plugin, put on the server +karma
Thank you! :):)

Xellath 12-26-2009 05:55

Re: [ZP] Extra Item: Concussion Grenade
 
Things you should change:
  • No need to loop for players at new round, just use arrayset.
  • You should really look up what arrayset does. You are setting the whole array to false everytime, not just one entry.
  • In deathmsg, there is no need to check if you're going to set it. Probably the same in other spots as well.
Code:
// this will set every entry to "true" arrayset( g_hasConc, true, 33 )   // this will set one entry ONLY g_hasConc[ id ] = true


All times are GMT -4. The time now is 14:54.

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