Search
Username:
Password:
Register or Reset Password
Remove the ads!
Battlebackgrond Sound-By 2KB
Added by...
Ironmad
Author(s): Ironmad
Category: CS:S > Other/Misc
Notes/Usage Instructions:

None found
Script Code:
Requires:
Mattie Eventscripts Latest

Features:
This script will take you into a whole new enviroment.
This will make your whole map turn into an awsome battlefield!
You'll hear battle-sounds triggered frequently throughout the rounds,
PS: But there is no sounds needed to be downloaded since they are
all found in everybodies allready installed HL2 folders!!!

Installing This Script:
This script is simply installed as all other new scripts.
Simply make a folder in your cstrike/addons/eventscripts that is named:
medda_battle
In that folder you make a txt.document called
es_medda_battle
Then you hit the download in this topic.
Copy the text and put it in your new es_medda_battle.txt
After that you add this line in your autoexec:
es_load medda_battle

Here are the Script:
// Medda_Battle V 1.8
// Written by Medda.
// Requires Mattie EventScripts Latest.
//
// Background: Thanks to Chun for providing me with handy info about server_vars and es_math!
// And thanks to Wonder for letting me know how to choose volume of specidic sounds.
// Another thanks to Venjax for allways providing me with handy info in the forums :)
// __________________________________________________________________________
block load
{
// #USE THIS SCRIPT BY CAUTION!
// Since this script makes your server continuously need to read data if Medda_Battle is turned on,
// you shall not spam your server with the admin commands!
// Changing the settings within the game through the chat, is an awsome feature,
// but also a bit provocative for your server.
// So simply use the admin feature with caution,
// incase you dont want to crash your server of cource ;D
// __________________________________________________________________________
// #MAKE YOURSELF ADMIN:
// To make yourself admin you have to paste your steamid over mine...
// You can find your steamid by joining a random server and type "status" in console.
// When you've got your steamid, you simply paste it over mine steamid here below:
// PS: dont remove the "".
//
es_xsetinfo admin_steamid "STEAM_0:0:3034939"
// __________________________________________________________________________
// #START MODE:
// Set this to 1 to start with Medda_Battle on.
// Set this to 0 to start with Medda_Battle off.
//
es_xsetinfo battle_mode 1
// __________________________________________________________________________
// #BATTLE ANNOUNCEMENT
// Set this to 1 if you want the battle announcement to
// show in the beginning of each round.
// PS: The announcement will only show if the battle is turned on.
// Set to 0 if you don't want any announcment to show.
// Default is set to 1
//
es_xsetinfo battle_announcement 1
// __________________________________________________________________________
// #ADMIN FEATURES:
// If you've made yourself admin you can check if you really are admin by type
// "battle commands" in chat, without the "". If you get a list of commands,
// you have successfully made yourself admin.
// Now With those commands you'll be shown,
// you can type in chat and the results are damn good! ;)
// Since what you can edit below this admin feature part is exactly what you can edit within
// the game by using those chat commands. But it's of cource smart to edit the stuffs below
// since you'll allways start with theese below chosen settings.
//
// __________________________________________________________________________
// #BATTLE INTENSE
// Set how intensive you want the battle enviroment.
// Choose between 1-6. 1 = most intensive.
// Default is set to 6
//
es_xsetinfo intensive_battle 6
// __________________________________________________________________________
// # 2 BATTLE LOOPSOUNDS:
// Set this to 1 if you want the 2 loopsounds of the battle triggered.
// Set this to 0 if you dont want the loopsounds triggered.
// Default is set to 0.
// PS: If set this to 1 and you turn off the battle in the middle of the round,
// The loopsounds will first quit when the round ends. "loop" get it? :o
//
es_xsetinfo loop_sounds 0
// __________________________________________________________________________
// # VOLUME:
// Set this to determine the volume of the sounds.
// Set this between 0.2 and 1.0
// Default is set to 1.0
//
es_xsetinfo volume 1.0
// __________________________________________________________________________
//
// #DO NOT EDIT ANYTHING BELOW THIS LINE:
// ___________________________________________________________________________________________________
//####################################################################################################
es_xsetinfo count 101
es_xsetinfo count2 10
//
// Helicopter Sounds
es_xsetinfo 101 ambient/machines/heli_pass1.wav
es_xsetinfo 105 ambient/levels/streetwar/city_riot2.wav
es_xsetinfo 110 ambient/machines/heli_pass_quick1.wav
es_xsetinfo 115 ambient/machines/heli_pass_distant1.wav
es_xsetinfo 120 ambient/machines/heli_pass2.wav
es_xsetinfo 125 ambient/overhead/hel2.wav
es_xsetinfo 130 ambient/overhead/hel1.wav
es_xsetinfo 135 ambient/machines/heli_pass_quick2.wav
es_xsetinfo 140 ambient/levels/streetwar/heli_distant1.wav
//
// Battle Sounds 1
es_xsetinfo 106 ambient/levels/streetwar/city_battle18.wav
es_xsetinfo 111 ambient/levels/streetwar/city_battle15.wav
es_xsetinfo 116 ambient/levels/streetwar/city_battle10.wav
es_xsetinfo 121 ambient/levels/streetwar/city_battle12.wav
es_xsetinfo 126 ambient/levels/streetwar/city_battle9.wav
es_xsetinfo 131 ambient/levels/streetwar/city_battle11.wav
es_xsetinfo 136 ambient/levels/streetwar/city_battle18.wav
es_xsetinfo 141 ambient/levels/streetwar/city_battle17.wav
//
// Battle Sounds 2
es_xsetinfo 102 ambient/levels/streetwar/city_battle13.wav
es_xsetinfo 107 ambient/levels/streetwar/city_battle3.wav
es_xsetinfo 112 ambient/levels/streetwar/city_battle7.wav
es_xsetinfo 117 ambient/levels/streetwar/city_battle6.wav
es_xsetinfo 122 ambient/levels/streetwar/city_battle4.wav
es_xsetinfo 127 ambient/levels/streetwar/city_battle8.wav
es_xsetinfo 132 ambient/levels/streetwar/city_battle14.wav
es_xsetinfo 137 ambient/levels/streetwar/city_battle5.wav
es_xsetinfo 142 ambient/levels/streetwar/city_battle16.wav
//
// Battle Sounds 3
es_xsetinfo 103 ambient/levels/prison/inside_battle1.wav
es_xsetinfo 108 ambient/levels/prison/inside_battle3.wav
es_xsetinfo 113 ambient/levels/prison/inside_battle2.wav
es_xsetinfo 118 ambient/levels/prison/inside_battle4.wav
es_xsetinfo 123 ambient/levels/prison/inside_battle5.wav
es_xsetinfo 128 ambient/levels/prison/inside_battle6.wav
es_xsetinfo 133 ambient/levels/prison/inside_battle7.wav
es_xsetinfo 138 ambient/levels/prison/inside_battle8.wav
es_xsetinfo 143 ambient/levels/prison/inside_battle9.wav
//
// Explosions Sounds
es_xsetinfo 104 ambient/explosions/exp2.wav
es_xsetinfo 109 ambient/explosions/explode_8.wav
es_xsetinfo 114 ambient/explosions/exp4.wav
es_xsetinfo 119 ambient/levels/streetwar/city_riot2.wav
es_xsetinfo 124 ambient/explosions/explode_6.wav
es_xsetinfo 129 ambient/explosions/explode_5.wav
es_xsetinfo 134 ambient/levels/streetwar/city_riot2.wav
es_xsetinfo 139 ambient/explosions/exp1.wav
es_xsetinfo 144 ambient/explosions/explode_9.wav
// __________________________________________________________________________
//
// Command Messages
es_xsetinfo 10 "battle on"
es_xsetinfo 11 "battle off"
es_xsetinfo 12 "battle more"
es_xsetinfo 13 "battle less"
es_xsetinfo 14 "battle volume more"
es_xsetinfo 15 "battle volume less"
es_xsetinfo 16 "battle loop on"
es_xsetinfo 17 "battle loop off"
es_xsetinfo 18 "#lightgreenAnd That Is It!"
es_xsetinfo 20 "battle commands"
}
// __________________________________________________________________________

event round_start
{
if (server_var(battle_mode) == 1) do
{
if (server_var(battle_announcement) == 1) do
{
es_xmsg #green Medda_Battle Is Activated!
}
}
if (server_var(battle_mode) == 1) do
{
if (server_var(loop_sounds) == 1) do
{
es_xcexec_all playvol ambient/explosions/battle_loop1.wav server_var(volume)
es_xcexec_all playvol ambient/explosions/battle_loop2.wav server_var(volume)
}
}
if (server_var(battle_mode) == 1) do
{
es_xdoblock medda_battle/playsounds
}
}
// __________________________________________________________________________
block playsounds
{
if (server_var(battle_mode) == 1) do
{
es_cexec_all playvol server_var(server_var(count)) server_var(volume)
es_math count + 1
}
if (server_var(battle_mode) == 1) do
{
if (server_var(count) lessthan 145) do
{
es_delayed server_var(intensive_battle) es_xdoblock medda_battle/playsounds
}
}
if (server_var(battle_mode) == 1) do
{
if (server_var(count) greaterthan 144) do
{
es_xsetinfo count 101
es_xdoblock medda_battle/playsounds
}
}
}
// __________________________________________________________________________
event player_say
{
if (event_var(es_steamid) equalto server_var(admin_steamid)) do
{
if (event_var(text) equalto server_var(10)) do
{
es_xsetinfo battle_mode 1
es_xmsg #green Medda_Battle Has Successfully Been Turned on.
}
}
if (event_var(es_steamid) equalto server_var(admin_steamid)) do
{
if (event_var(text) equalto server_var(11)) do
{
es_xsetinfo battle_mode 0
es_xmsg #green Medda_Battle Has Successfully Been Turned Off.
es_xdoblock medda_battle/playsounds
}
}
if (event_var(es_steamid) equalto server_var(admin_steamid)) do
{
if (event_var(text) equalto server_var(12)) do
{
if (server_var(intensive_battle) greaterthan 1) do
{
if (server_var(intensive_battle) lessthan 7) do
{
es_math intensive_battle - 1
es_tell event_var(userid) #green Medda_Battle Intense Has Been Successfully Increased To server_var(intensive_battle) Where Max Is 1!
}
}
}
}
if (event_var(es_steamid) equalto server_var(admin_steamid)) do
{
if (event_var(text) equalto server_var(13)) do
{
if (server_var(intensive_battle) greaterthan 0) do
{
if (server_var(intensive_battle) lessthan 6) do
{
es_math intensive_battle + 1
es_tell event_var(userid) #green Medda_Battle Intense Has Successfully Been Decreased To server_var(intensive_battle) Where Lowest Is 6!
}
}
}
}
if (event_var(es_steamid) equalto server_var(admin_steamid)) do
{
if (event_var(text) equalto server_var(14)) do
{
if (server_var(volume) lessthan 1.0) do
{
es_math volume + 0.1
es_tell event_var(userid) #green Medda_Battle Volume Has Successfully Been Increased To server_var(volume) Where Max Is 1!
}
}
}
if (event_var(es_steamid) equalto server_var(admin_steamid)) do
{
if (event_var(text) equalto server_var(15)) do
{
if (server_var(volume) greaterthan 0.2) do
{
es_math volume - 0.1
es_tell event_var(userid) #green Medda_Battle Volume Has Successfully Been Decreased To server_var(volume) Where Lowest Is 0.2!
}
}
}
if (event_var(es_steamid) equalto server_var(admin_steamid)) do
{
if (event_var(text) equalto server_var(16)) do
{
if (server_var(loop_sounds) == 0) do
{
es_xsetinfo loop_sounds 1
es_tell event_var(userid) #green Medda_Battle Loop Sounds Have Successfully Been Turned On!
}
}
}
if (event_var(es_steamid) equalto server_var(admin_steamid)) do
{
if (event_var(text) equalto server_var(17)) do
{
if (server_var(loop_sounds) == 1) do
{
es_xsetinfo loop_sounds 0
es_tell event_var(userid) #green Medda_Battle Loop Sounds Have Successfully Been Turned Off!
}
}
}
if (event_var(es_steamid) equalto server_var(admin_steamid)) do
{
if (event_var(text) equalto server_var(20)) do
{
es_tell event_var(userid) #lightgreen The Battle Commands That You Can Use In Chat Is Following:
es_xsetinfo count2 10
es_xdelayed 1 es_xdoblock medda_battle/commands
}
}
}
// __________________________________________________________________________
block commands
{
if (server_var(count2) lessthan 19) do
{
es_tell event_var(userid) #multi #green server_var(server_var(count2))
es_math count2 + 1
es_xdelayed 1 es_xdoblock medda_battle/commands
}
}
// __________________________________________________________________________
Added: 2 years ago
Feedback (2)
madcow777 .
BananiteY2M
Posted 2 months ago
Will it work in a map? just wondering
- Bananite
-Mack- .
Maybe i'm back for a little whileY2M
Posted 2 years ago
Does this work if your not admin? PM me back.
Add Feedback
Provide constructive feedback. What is "constructive"?
You must login or register to access this!
Assessment
The community's verdict.
User Rating [+]
10/10
bScore
10.00/10
You cannot assess yet!
Moderating FPSB is in your hands - when you assess a submission your vote determines its success or failure.

To vote on this submission register or login.
Stamps
This script in a nutshell...
No stamps recorded
You cannot stamp yet!
Stamps let you apply characteristics to submissions to help others understand them.

To stamp this submission register or login.
Added by...
Ironmad .
Eat Pizza
Ranked 469th ( 1) with 4,662 points. 15 points behind Yyum .

[+] Donate
Vote for Submitter
Like this script? Vote Ironmad . for one or more monthly awards.
You must login or register to access this!
Related Scripts
Want more? Find related scripts.