This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Bomb explode - sounds


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
simivar
Junior Member
Join Date: Jan 2010
Old 02-04-2010 , 09:55   Bomb explode - sounds
Reply With Quote #1

Bomb explode - sounds
By Simivar

~Description~
Bomb explode - sounds it's very easy and popular modyfication created by Simivar.

What does it do?
Plugin displaying information for the remaining time to the bomb explosion, when there's 10 seconds left to explode - plugin is choosing one of 3 sounds and play... Musics are attached to the headset (one in polish language), but you can obviously replace.
~Cvars~
There is only one cvar for a registering how many servers use this modyfication. You don't have to add any cvars to Your amxx.cfg..
~Adding new sound~
You can add a next sounds, how to do that?

Open a .sma file and find:
Code:
        case 2: client_cmd(0,"mp3 play sound/misc/bomb2.mp3")
after, add a next case with next number, eg.
Code:
        case 3: client_cmd(0,"mp3 play sound/misc/your_file_name_with_extension.mp3")
after that, find:
Code:
    new losowo = random_num(0,2)
and change 2 to number of Your last case (there it will be 3)
and now, find:
Code:
    precache_sound("misc/bomb2.mp3")
after add:
Code:
    precache_sound("misc/your_file_name_with_extension_this_same_like_in_step_1.mp3")
That's all!
Attached Files
File Type: zip Bomb Explode sounds v.0.3.zip (613.4 KB, 582 views)
File Type: sma Get Plugin or Get Source (bomb_explode_sounds.sma - 1247 views - 2.3 KB)

Last edited by simivar; 02-05-2010 at 11:05.
simivar is offline
lazarev
Veteran Member
Join Date: Sep 2008
Old 02-04-2010 , 10:04   Re: Bomb explode - 3 sounds
Reply With Quote #2

Code:
#include <csx>
remove.
lazarev is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 02-04-2010 , 10:25   Re: Bomb explode - 3 sounds
Reply With Quote #3

Ew guys, why do you always steal my topic overlay -_-
__________________
xPaw is offline
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 02-04-2010 , 10:48   Re: Bomb explode - 3 sounds
Reply With Quote #4

Quote:
Originally Posted by xPaw View Post
Ew guys, why do you always steal my topic overlay -_-
Quote:
Originally Posted by xPaw View Post
Why not -_-
KadiR is offline
simivar
Junior Member
Join Date: Jan 2010
Old 02-04-2010 , 14:37   Re: Bomb explode - 3 sounds
Reply With Quote #5

Quote:
Originally Posted by lazarev View Post
Code:
#include <csx>
remove.
Okay.
Quote:
Originally Posted by xPaw View Post
Ew guys, why do you always steal my topic overlay -_-
Cuz it looks very nice and it's very clear (readable).
simivar is offline
Zombiezzz
Veteran Member
Join Date: Nov 2009
Location: Nov 2009
Old 02-04-2010 , 17:30   Re: Bomb explode - 3 sounds
Reply With Quote #6

nice work
__________________
Zombiezzz is offline
fang
Senior Member
Join Date: Nov 2007
Location: New Jersey
Old 02-04-2010 , 17:32   Re: Bomb explode - 3 sounds
Reply With Quote #7

Quote:
Originally Posted by xPaw View Post
Ew guys, why do you always steal my topic overlay -_-
What can we say? You're e-mazing.

@ Simivar- Suggestion: Make it read from an .ini that the user can put any sound into so it can just cycle through the sounds when the bomb explodes. Better than three hardcoded sounds.
fang is offline
AirShot
Veteran Member
Join Date: Sep 2009
Location: Belgium
Old 02-04-2010 , 18:10   Re: Bomb explode - 3 sounds
Reply With Quote #8

will be nice to use a .ini file to add custom sounds

I prefer this c4 explode sound : http://www.fpsbanana.com/sounds/2293
__________________
AirShot is offline
simivar
Junior Member
Join Date: Jan 2010
Old 02-05-2010 , 11:07   Re: Bomb explode - sounds
Reply With Quote #9

I add a instructions how to add a next sounds to the mod - it's in 1st post.

I'll try to add a .ini file, but I still learning so it's not will be soon : P. I know how to load a .ini file, but I don't know how to do a choosing (drawing) one of x sounds. ;c
simivar is offline
AirShot
Veteran Member
Join Date: Sep 2009
Location: Belgium
Old 02-05-2010 , 11:15   Re: Bomb explode - sounds
Reply With Quote #10

ok, but don't use small text size please.
__________________
AirShot 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 13:59.


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