Raised This Month: $ Target: $400
 0% 

[ZP] Extra Item: FlashBang Bomb!


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
Kiske
Veteran Member
Join Date: May 2009
Old 09-21-2009 , 14:45   [ZP] Extra Item: FlashBang Bomb!
Reply With Quote #1

[ZP] Extra Item: FlashBang Bomb!
By Kiske


--| Description |--
The FlashBang Bomb! is a Extra Item for the Humans.

When explod, an effect of TE_DLIGHT expands on the floor and flashing everyone who is in his radius.

The closer you are from the Grenade, the Flash will increase.

Flashing the Zombies, Nemesis and Humans. [Defined By CVARs].


--| CVARS |--
PHP Code:
zp_fb_bomb_on 1 // Plugin Enable
zp_fbb_affect_nemesis 1 // Flash affect to Nemesis ?
zp_fbb_affect_humans 1 // Flash affect to Humans ?
zp_fbb_affect_zombies 1 // Flash affect to Zombies ?
zp_fbb_enable_zombies 1 // Enable Grenade to Zombies ? 
--| Modules and Includes Required |--
Quote:
  • amxmodx
  • amxmisc
  • cstrike
  • hamsandwich
  • fakemeta
  • fun
  • engine
  • xs
  • zombieplague
--| ScreenShots |--
[IMG]http://img15.**************/img15/8183/asdasdud.jpg[/IMG]

--| Credits |--
Quote:

They can change their preference:

PHP Code:
/** Plugin Customization **/

// Extra Item
new const ItemCost 3
new const ItemName[] = "FlashBang Bomb"
new const Team ZP_TEAM_HUMAN

// Sprites
new const SprGrenadeTrail[] = "sprites/laserbeam.spr"

// Sounds
new const ModelGrenade_FB[] = "models/v_flashbang.mdl"
new const SoundGrenadeExplo_FB[][] = { "weapons/flashbang-1.wav""weapons/flashbang-2.wav" }
new const 
SoundRecived_FB[] = "items/9mmclip1.wav"

/** Customization Ends Here **/ 
Sorry for my bad english, dont speak english very nice.


Attached Files
File Type: sma Get Plugin or Get Source (zp_flashbang_bomb.sma - 1366 views - 9.9 KB)
__________________


Last edited by Kiske; 09-25-2009 at 10:39.
Kiske is offline
Send a message via Skype™ to Kiske
MyPlague
BANNED
Join Date: Sep 2009
Old 09-21-2009 , 14:49   Re: [ZP] Extra Item: FlashBang Bomb!
Reply With Quote #2

It must be aproved!

very good kiske

+k
MyPlague is offline
TucanN#
Veteran Member
Join Date: May 2009
Location: Argentina, Mendoza
Old 09-21-2009 , 14:52   Re: [ZP] Extra Item: FlashBang Bomb!
Reply With Quote #3

kiske well hopefully that you approve: P
TucanN# is offline
Send a message via MSN to TucanN#
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 09-21-2009 , 14:52   Re: [ZP] Extra Item: FlashBang Bomb!
Reply With Quote #4

How does this bomb work exactly?
What is the difference between this and the normal flashbang?

Edit:
And also change this:
Quote:
Modification: ALL Category: Admin Commands
To
Quote:
Modification: Cstrike Category: Fun
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
Kiske
Veteran Member
Join Date: May 2009
Old 09-21-2009 , 14:57   Re: [ZP] Extra Item: FlashBang Bomb!
Reply With Quote #5

Quote:
Originally Posted by ot_207 View Post
How does this bomb work exactly?
What is the difference between this and the normal flashbang?
In the default zombie plague there is no real flashbang, this plugin re-enables it
__________________

Kiske is offline
Send a message via Skype™ to Kiske
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 09-21-2009 , 15:05   Re: [ZP] Extra Item: FlashBang Bomb!
Reply With Quote #6

Quote:
Originally Posted by Kiske View Post
In the default zombie plague there is no real flashbang, this plugin re-enables it
Ok, I glanced at the code and everything looks ok.
One thing to suggest though.
Use fun instead of the fakemeta_util stocks.

This is what you need to change:
PHP Code:
#include <fakemeta_util> 
Into
PHP Code:
#include <fakemeta>
#include <fun> 
Replace these functions with this:
PHP Code:
fm_give_item
fm_set_user_rendering 
Into
PHP Code:
give_item
set_user_rendering 
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
alias_retaer
Member
Join Date: Jul 2009
Old 09-21-2009 , 15:15   Re: [ZP] Extra Item: FlashBang Bomb!
Reply With Quote #7

very nice!
alias_retaer is offline
Kiske
Veteran Member
Join Date: May 2009
Old 09-21-2009 , 15:15   Re: [ZP] Extra Item: FlashBang Bomb!
Reply With Quote #8

Quote:
Originally Posted by ot_207 View Post
Ok, I glanced at the code and everything looks ok.
One thing to suggest though.
Use fun instead of the fakemeta_util stocks.

This is what you need to change:
PHP Code:
#include <fakemeta_util> 
Into
PHP Code:
#include <fakemeta>
#include <fun> 
Replace these functions with this:
PHP Code:
fm_give_item
fm_set_user_rendering 
Into
PHP Code:
give_item
set_user_rendering 

Done!
Thx

But, no matter how much you use includes?
__________________

Kiske is offline
Send a message via Skype™ to Kiske
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 09-21-2009 , 15:19   Re: [ZP] Extra Item: FlashBang Bomb!
Reply With Quote #9

Quote:
Originally Posted by Kiske View Post

Done!
Thx

But, no matter how much you use includes?
It does not matter how many modules your plugin uses.
The efficiency is made by module communications.
The more communications your plugin uses the more lag the server has.
So less that means more efficient.
With fun calling give_item(id, "weapon_flashbang") you just have one engine call with 2 args
With fm_give_item(id, "weapon_flashbang") you have more than 3 engine calls with more args.
So fun it is more efficient in this case .
Read this for further information:
https://forums.alliedmods.net/showthread.php?t=88792

Edit: Also are you interested in making this support full flash/ partial flash? If you are interested I can lend a hand .
Edit2: Sorry wrong link!
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.

Last edited by ot_207; 09-21-2009 at 15:31.
ot_207 is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 09-21-2009 , 16:32   Re: [ZP] Extra Item: FlashBang Bomb!
Reply With Quote #10

Credits...
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS 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 10:17.


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