PDA

View Full Version : Medic sound just like TFC does it? Yes!



Dude
18-08-2002, 11:10 PM
Ok,time for another plugin:

~Bob-o~~: Ok, so not EXACTLY how TFC does it, I can't make a sprite hover over people's heads, But I can make them glow colors to give you a visual representation...

This will calculate everyone's coordinates, and if they are within the coordinates of the player that said medic, it will play a medic sound and tell them in the chat. If they are NOT within the coordinates of the player that said medic, nothing will happen. This is how TFC did their medic sound, It's not exactly like this but the concept is exactly the same. (it creates an ambient generic for everyone and lets the client figure out if they are close enough to hear it or not.)

Another added feature of this plugin is that the player will flash Red and White for a while if they say 'medic' to give everyone a visual of who said it so you don't have to look at everybody's name to figure out who said it.

Features:
+Spam Blocking (allows only one medic sound every 10 seconds for each individual player)
+Chat Message (says in the chat to the people close enough who needs a medic)
+Glow Flashin' Fun! (Flashes the player red and white to get people's attention)
+Super TFC Medic Sound! (...plays the TFC medic sound to people close enough)

Stuff I will NOT fix:
+A user's current glow setting WILL reset to nothing after they say medic. That will take too much time to fix and SC 2.0F is right around the corner anyways... This is not a bug, I never programmed in the ability to trap user's glow colors when they request them\admin changes them. It would be too much code to get such a minor result.

INSTALL INSTRUCTIONS:
To make this work, install it just like you would any other plugin. (save the .AMX to svencoop\dlls and add "dlls\plugin_Bob-o_Medic.amx" to adminmod's plugin.ini) One exception, you need to make everyone download the sound when they connect to the server. How do you do that? EASY, but it takes a few minutes.

You need to create a file (.res files) for every mapname that you intend to run. You don't HAVE TO, but it ensures that everyone will download the sound anytime they connect to your server. You would place them in the maps folder along with the BSP and CFG files. If you don't know how to make the file, you can copy-paste the included 'example.res' file in the .zip. Just rename it to the maps that you currently have. IE: osprey.res crisis2.res megamonstermassacre.res etc etc...

After that, unzip the Medic.wav into your svencoop sounds directory.

Commented source is included if you want to know how I did it or you would like to change the distance for how far out from the initiating player you would like to have players hear the sound and see the chat message. (or your a paranoid bastard who likes to compile his\her own plugins form the source for fear of me incorporating some virus-like thing, which is NOT in this plugin...)

Feel free to use the source how you would like, but give me credit please, that's all I ask. (btw: I told you that you would never see me here again, and so far this has proven to be 100% true. I am on [B] Basic Bee's forum (http://www.basicbee.com/forum/) a lot so if you are in dire need to contact me and don't want to e-mail\icq me, go there.

MutantMFM
19-08-2002, 12:16 AM
Sounds very nicely done Dude I can't wait to see it on Bob-o's server. :D

Slidje
19-08-2002, 03:59 AM
yeah thats great but wheres the damn plugin .

Dude
19-08-2002, 07:00 AM
Well,in my excitement I forgot to post a link :Hit's head on hard object:

It should be up soon.

Slidje
19-08-2002, 10:24 AM
excitement ? you only pasted what bob said .
stop stalling !
GIVE US THE PLUGIN (http://www.btinternet.com/~ezekiel.fireseed/randsom.jpg)

Dude
19-08-2002, 12:11 PM
You will wait impatient one!

Now,I'm trying to get the link,but bob isnt on right now,so stop pestering me :P.

Slidje
19-08-2002, 07:56 PM
dont make me send in my admins (http://www.btinternet.com/~ezekiel.fireseed/shelladmins.jpg)

BMT
19-08-2002, 09:45 PM
-=link edited to protect non adminmod servers=- (http://www.bob-o-buds.com/crap/server/index.php?op=download&id=6) Slidje

Holy mother of pearl, here's your link, curtesy of Bob-O himself.

Dude
19-08-2002, 09:58 PM
He kept telling me not to post it,but thanks BMT :)

Slidje
19-08-2002, 10:09 PM
okay i got it . ill road test it tomorow with tur .
cancel the abp on the plugin and if anyone sees a gopher with a sign , run . very fast . (http://www.btinternet.com/~ezekiel.fireseed/plugin.gif)