PDA

View Full Version : Need DoD StatsSounds help


blobby
07-22-2007, 01:03 PM
OOOO i just spotted this topic whats the file called tatsu and is the sma on my server maby

Regards

blobby

blobby
07-22-2007, 01:23 PM
Ok ignore my last post i whent and downloaded amx for dod and whent to the scripting folder in there and pulled out statssounds.sma witch looks like the following

/*
* Plugin for sounds precache
*/

#include <amxmodx>

public plugin_precache(){
precache_sound( "misc/impressive.wav")
precache_sound( "misc/headshot.wav")
precache_sound( "misc/multikill.wav")
precache_sound( "misc/doublekill.wav")
precache_sound( "misc/godlike.wav")
precache_sound( "misc/ultrakill.wav")
precache_sound( "misc/killingspree.wav")
precache_sound( "misc/rampage.wav")
precache_sound( "misc/unstoppable.wav")
precache_sound( "misc/monsterkill.wav")
precache_sound( "misc/humiliation.wav")

precache_sound( "misc/takenlead.wav" )
precache_sound( "misc/tiedlead.wav" )
precache_sound( "misc/lostlead.wav" )

return PLUGIN_CONTINUE
}

public plugin_init() {
register_plugin("DoD Sounds Precache",AMXX_VERSION_STR,"AMXX Dev Team")
}

So What im asking is if i add this to the code will it work

precache_sound( "misc/ludacrisskill.wav")
precache_sound( "misc/holyshit.wav")

And so on and so forth would my server read this and play the sounds any help will be appretiated also if any one could tell me exactly what i need to start writing plugin that would be great

Regards

Blobby

=]

blobby
07-23-2007, 08:28 AM
Would someone be as kind as to move my posts on this topic to scripting help please because i can see that my posts are in the wrong place

Regards

Blobby

FeuerSturm
07-23-2007, 11:35 AM
when you add this:
precache_sound( "misc/ludacrisskill.wav")
precache_sound( "misc/holyshit.wav")


to the plugin_precache function the sounds will be downloaded by the clients
(if they exist on the server), but they will not be played as there's no
trigger in the plugin for those sounds if i remember correctly.

you would have to add triggers for those two sounds, otherwise they
won't be played at all.

let know when "ludacrisskill" and "holyshit" should be played and
i'll guide you through the changes.

blobby
07-23-2007, 11:47 AM
Ok right i have something going wrong here for a start i have ut_killing_spree on my server but i also have the stats sounds running but if i turn off ut_killing_spree the sounds dont play but yet the plugin is enabled the problem i have with ut_killing_spree is that it has too many sounds and the guy who made the plugin wont allow me to edit it so maby i am best starting from scratch with this but i wounder if you would be able to tell me where i can get some tutorials for making plugins ive downloaded the amxx studio and i have installed amx to my personal test server but i just don't have the knowledge to make the plugins so if you could point me in the right direction i would be so greatfull as ive always wanted to write plugins but i never new how to.

Regards

Blobby

P.S. Thank you for all of your time and i hope i will maby be able to make some useful plugins in the future

FeuerSturm
07-24-2007, 09:05 AM
blobby, the crator of the UT KillingSpree plugin CANNOT
disallow you to edit the plugin and use it for your own needs.

it's all open source and everyone is allowed to edit the source code
for his own needs.

so if you have the source file, you definately CAN edit it and use it,
if the source is not available you should get in touch with Bailopan
at amxmodx.org and let him know as that would be a violation of the
open source terms of amxx.

btw, best way to learn is to "read" easy plugins by other users, so
i wouldn't recommend to start learning with TK Revenge, TeamManager...
just look at some small plugins and try to understand what happens.
furthermore you should take a look at the *.inc files in the amxmodx/scripting/include/ folder!

blobby
07-24-2007, 01:19 PM
Ahhh right wicked i know what a few of the things in the source code mean like the client chat parts but that was obvious and also the adding sound thanks to you showing me :p Im going to have a go at editing the ut_killingspree plugin first then for a test after i have read through eh code on the ones you said if i get stuck is it ok to pm you post it up here ??

Regards

Blobby

FeuerSturm
07-24-2007, 02:01 PM
Ahhh right wicked i know what a few of the things in the source code mean like the client chat parts but that was obvious and also the adding sound thanks to you showing me :p Im going to have a go at editing the ut_killingspree plugin first then for a test after i have read through eh code on the ones you said if i get stuck is it ok to pm you post it up here ??

Regards

Blobby

sure, i'm always glad to help, you can post here, pm me or add me to
your steam-friends, whatever you like.

oh, btw, one question: how old are you?

blobby
07-24-2007, 03:19 PM
Im 17 m8y but ive got all day every day to make plugins and play dod :p

blobby
07-25-2007, 10:26 AM
Ok i have the following files

Statssounds.sma
stats.sma


Ok the stats sounds sma has all the preaches for the downloads in it.
The stats.sma looks to be the actual code for the plugin as its got all the register cvars and things on it.


So i want to add the following sounds to this plugin

wickedsick.wav
holyshit.wav
ludacrisskill.wav

I also wanted to edit the amount of kills you need for a certain wav file to play. So if you like get a spare moment i wounded if you would just bail me out lol as i haven't the foggiest where to start on this lol

Regards

Blobby
=]

=|[76AD]|= TatsuSaisei
07-28-2007, 08:16 PM
OOOO i just spotted this topic whats the file called tatsu and is the sma on my server maby

Regards

blobby

did I miss something ?

blobby
07-29-2007, 11:37 AM
Lol it was from when i first saw this topic in the other forum lol i was asking you where i could find the stats sma files but i spotted them like 15mins after i made the post lol

Regards

JS

blobby
08-08-2007, 08:10 AM
Can any one help me with this please im tearing my hair out lol Ive added the preaches to the stats.sma with all the sound preaches in there i just need to know where i can change how many kills be fore the sound is played and where to add the other lines for the sounds to be played

Regards

Blobby