<div><b>Make people know what you hear: Play sounds that you, your team and enemies near you can hear.<br />You can also make custom sounds to play for the enemy you killed.</b><br /><br /><b><i><u>Warning: This plugin makes [TF2] Friendly Mode spam errors in console, so I don't recommend using this and Friendly together.</u></i></b><br /><br /><b><u>How to use:</u></b><br />The plugin comes with 2 music samples, write !walkman and select them.<br /><br /><b><u>How to make custom sounds:</u></b><br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Spoiler</b> <input value="Show" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;" onclick="if(this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != 'inline')
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'inline'; this.innerText = ''; this.value = 'Hide'; }
else
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value='Show'; }" type="button">
</div>
<div class="alt2" style="border: 1px inset; padding: 6px;">
<div class="spoiler" style="display: none;">Making custom sounds is simple! You just need to follow some rules:<br />First, open the file soundfiles.txt with your favorite text editor, it's located at sourcemod/configs/<br /><br />You're going to see this:<br /><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<hr /><code style="margin:0px" dir="ltr" style="text-align:left">"WalkMan"<br />{<br /> "1"<br /> {<br /> "title" "MvM Tank Round only"<br /> "soundfile" "music/mvm_start_tank_wave.wav"<br /> "duration" "14"<br /> }<br /> "2"<br /> {<br /> "title" "MvM Tank Round"<br /> "soundfile" "music/mvm_end_tank_wave.wav"<br /> "duration" "17"<br /> "killtitle" "MvM round lost"<br /> "killplay" "music/mvm_lost_wave.wav"<br /> }<br />}</code><hr />
</div>To create custom sounds, you need to follow the order, so the next sound needs to be "3", like this:<br /><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<hr /><code style="margin:0px" dir="ltr" style="text-align:left">"WalkMan"<br />{<br /> "1"<br /> {<br /> "title" "MvM Tank Round only"<br /> "soundfile" "music/mvm_start_tank_wave.wav"<br /> "duration" "14"<br /> }<br /> "2"<br /> {<br /> "title" "MvM Tank Round"<br /> "soundfile" "music/mvm_end_tank_wave.wav"<br /> "duration" "17"<br /> "killtitle" "MvM round lost"<br /> "killplay" "music/mvm_lost_wave.wav"<br /> }<br /> "3"<br /> {<br /> "title" "Title that will appear in the menu"<br /> "soundfile" "Music location"<br /> "duration" "Number of seconds to repeat the music"<br /> "killtitle" "Kill Music Title"<br /> "killplay" "Kill Music Location"<br /> }<br />}</code><hr />
</div>The 1, 2 and 3 are called keyvalues, inside the "3" we can see some parameters: title, soundfile, duration, killtitle, killplay. These parameters builds the functionality. title is the text that will be shown in the menu, soundfile is where the sound file is saved, like musics/gaben.wav, duration is how much time the plugin will waits to repeat the music, killtitle is what will be shown in the "Kill Music Area", like that: Welcome music | Kill Bodyshot sound, the killplay is where the kill sound is saved.<br /><br />lets see how it looks edited:<br /><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<hr /><code style="margin:0px" dir="ltr" style="text-align:left">"3"<br /> {<br /> "title" "Gaben Music"<br /> "soundfile" "music/gaben.mp3"<br /> "duration" "13"<br /> "killtitle" "Horn annoying sound"<br /> "killplay" "annoy/horn.wav"<br /> }</code><hr />
</div>Gaben Music | Horn annoying sound is what is going to be shown in the menu, it will play gaben.mp3 each 13 seconds, and horn.wav to the player you killed.<br /><br />You don't need to have the Kill sound, but the walk sound is required.<br /></div>
</div>
</div><br /><br /><b><u>How to Install:</u></b><br />- Click in Get Plugin, put walkman.smx in sourcemod/plugins/<br />- Click in soundfiles.txt, put it in sourcemod/configs/<br />- Edit soundfiles.txt if you want.<br />- You don't need custom plugins to put custom sounds in downloads table.</div>
<br /> <div style="padding:6px">
<fieldset class="fieldset">
<legend>Attached Files</legend>
<table cellpadding="0" cellspacing="3" border="0">
<tr>
<td><img class="inlineimg" src="https://forums.allie.../attach/sp.gif"alt="File Type: sp" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="http://www.sourcemod...69"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1441767446">GetSource</a> (walkman.sp - 8.0 KB)
</td>
</tr><tr>
<td><img class="inlineimg" src="https://forums.allie...attach/txt.gif"alt="File Type: txt" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="https://forums.allie...ndfiles.txt</a>(299 Bytes)
</td>
</tr>
</table>
</fieldset>
</div>
Wyświetl pełny artykuł
Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse
[ANY] WalkMan
Temat rozp.
Adminek AMXX.PL
, 09.09.2015 03:57
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych