Raised This Month: $ Target: $400
 0% 

knife sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
blacam00
Junior Member
Join Date: Aug 2005
Old 03-29-2006 , 03:46   knife sound
Reply With Quote #1

I've tried a few plugins that are supposed to enable me to change knife sounds. Such as the knife deploy sound, knife stab, knife slash, etc...but they dont seem to work properly. I found an unaproved plugin by Cheap Suit that worked except the deploy and stab sound did not work. I've also tried the port of krot@ls change model plugin and it doesn't work either. Can someone provide me the proper code to change the knife sounds. Thanks
blacam00 is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-29-2006 , 04:04  
Reply With Quote #2

Here's what I did for the knife sounds on the GHW server:
Code:
#include <amxmodx> #include <fakemeta> #define MAX_KNIFE_SNDS 9 public plugin_init() {     register_plugin("Custom knife sounds" , "0.1" , "v3x");     register_forward(FM_EmitSound , "EmitSound"); } // Original knife sounds new knife_sounds_o[MAX_KNIFE_SNDS][] = {     "weapons/knife_deploy1.wav",     "weapons/knife_hit1.wav",     "weapons/knife_hit2.wav",     "weapons/knife_hit3.wav",     "weapons/knife_hit4.wav",     "weapons/knife_hitwall1.wav",     "weapons/knife_slash1.wav",     "weapons/knife_slash2.wav",     "weapons/knife_stab.wav" } // Replacement knife sounds ( edit these!! ) new knife_sounds_r[MAX_KNIFE_SNDS][] = {     "GHW/weapons/knife_deploy1.wav",     "GHW/weapons/knife_hit1.wav",     "GHW/weapons/knife_hit2.wav",     "GHW/weapons/knife_hit3.wav",     "GHW/weapons/knife_hit4.wav",     "GHW/weapons/knife_hitwall1.wav",     "GHW/weapons/knife_slash1.wav",     "GHW/weapons/knife_slash2.wav",     "GHW/weapons/knife_stab.wav" } public plugin_precache() {     for(new i = 0; i < MAX_KNIFE_SNDS; i++)         precache_sound(knife_sounds_r[i]); } public EmitSound(entity, channel, const sound[]) {     if(pev_valid(entity) && is_user_alive(entity))     {         for(new i = 0; i < MAX_KNIFE_SNDS; i++)         {             if(equal(sound , knife_sounds_o[i]))             {                 emit_sound(entity, channel, knife_sounds_r[i], 1.0, ATTN_NORM, 0, PITCH_NORM);                 return FMRES_SUPERCEDE;             }         }     }     return FMRES_IGNORED; }
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
blacam00
Junior Member
Join Date: Aug 2005
Old 03-29-2006 , 04:36  
Reply With Quote #3

Thank you very much. It works perfect
blacam00 is offline
gggggg
BANNED
Join Date: Mar 2006
Old 04-01-2006 , 06:26  
Reply With Quote #4

its saying "bad load" . plug wont work on my cz server. whats wrong?
compiles ok but wont load
?????????????/
gggggg is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-01-2006 , 06:56  
Reply With Quote #5

Quote:
Originally Posted by gggggg
its saying "bad load" . plug wont work on my cz server. whats wrong?
compiles ok but wont load
?????????????/
1) STOP USING SO MANY DAMN QUESTION MARKS!
2) It requires the Fakemeta module in order to run.
3) You need to edit the file paths ( knife_sounds_r ).
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
gggggg
BANNED
Join Date: Mar 2006
Old 04-01-2006 , 08:30  
Reply With Quote #6

sry for the ?? marks . didnt know it was such a big deal
i have everything right (i think ) and am still getting bad load

all modules are running
i made this folder and put sounds in

"GHW/weapons/customknife_deploy1.wav",
"GHW/weapons/customknife_hit1.wav",
"GHW/weapons/customknife_hit2.wav",
"GHW/weapons/customknife_hit3.wav",
"GHW/weapons/customknife_hit4.wav",
"GHW/weapons/customknife_hitwall1.wav",
"GHW/weapons/customknife_slash1.wav",
"GHW/weapons/customknife_slash2.wav",
"GHW/weapons/customknife_stab.wav"

still says bad load

088:50 Currently loaded plugins:
name version author file status
Admin Base 1.60 AMXX Dev Team admin.amxx running
Admin Commands 1.60 AMXX Dev Team admincmd.amxx running
Admin Help 1.60 AMXX Dev Team adminhelp.amxx running
Multi-Lingual Sys 1.60 AMXX Dev Team multilingual.am running
Menus Front-End 1.60 AMXX Dev Team menufront.amxx running
Commands Menu 1.60 AMXX Dev Team cmdmenu.amxx running
Players Menu 1.60 AMXX Dev Team plmenu.amxx running
Maps Menu 1.60 AMXX Dev Team mapsmenu.amxx running
Admin Chat 1.60 AMXX Dev Team adminchat.amxx running
Anti Flood 1.60 AMXX Dev Team antiflood.amxx running
Scrolling Message 1.60 AMXX Dev Team scrollmsg.amxx running
Info. Messages 1.60 AMXX Dev Team imessage.amxx running
Admin Votes 1.60 AMXX Dev Team adminvote.amxx running
NextMap 1.60 AMXX Dev Team nextmap.amxx running
Nextmap Chooser 1.60 AMXX Dev Team mapchooser.amxx running
TimeLeft 1.60 AMXX Dev Team timeleft.amxx running
Pause Plugins 1.60 AMXX Dev Team pausecfg.amxx running
088:50 Stats Configurati 1.60 AMXX Dev Team statscfg.amxx running
Restrict Weapons 1.60 AMXX Dev Team restmenu.amxx running
StatsX 1.60 AMXX Dev Team statsx.amxx running
CS Misc. Stats 1.60 AMXX Dev Team miscstats.amxx running
CS Stats Logging 1.60 AMXX Dev Team stats_logging.a running
Sank Sounds Plugi 1.4.2b White Panther, L sank_sounds.amx running
Join/Leave Messag 1.2 BigBaller join_leave.amxx running
AMXX Piss 2.0 KRoTaL amxx_piss_cs_cz running
TakeADookie 2.0 PaintLancer amx_dookie.amxx running
Last man bets 0.9.3 JGHG lastmanbets.amx running
AMX Admin Model 1.1.1 whitemike amx_adminmodel. running
AMX Bank 1.6 twistedeuphoria amx_bank.amxx running
loot 2.0 Rick O`Shae looting.amxx running
Weapons Models 0.1 KRoTaL weapons_models. running
Weapon Arena 1.9.7 JGHG weaponarena.amx running
HE Arena X 0.3 JGHG he_arena.amxx running
HL Media Player 0.7b 008DEADinHK HittEmUp_Radio2 running
unknown unknown unknown sss.amxx bad load
35 plugins, 34 running


i just named the sma sss.sma and compiled it

'it compiles ok but it wont run .. what am i doing wrong?
gggggg is offline
gggggg
BANNED
Join Date: Mar 2006
Old 04-01-2006 , 16:42  
Reply With Quote #7

hello?
gggggg is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 04-01-2006 , 21:16  
Reply With Quote #8

hello.






Is fakemeta module enabled? that is the only thing ( I think ) that may cause this. did you change the script?
[ --<-@ ] Black Rose is offline
gggggg
BANNED
Join Date: Mar 2006
Old 04-02-2006 , 06:35  
Reply With Quote #9

hi
no. i didnt change anything. and yes all modules are enabled.. you think its a plugin confliction? (i have model plugs and others ) scroll up and look at my plugs i have ruinning..i am using the weapon model port plug from amx but the w_mdls and all knife snds wont work....i was hoping to use this plug to at least get the knife sounds to work...lol i found a guitar knife skin and made some kool lil waves for the snds but the plug wont run..any ideas?

19:26:53 Currently loaded modules:
name version author
Fun 1.60 AMX Mod X Dev Team
Engine 1.60 AMX Mod X Dev Team
FakeMeta 1.60 AMX Mod X Dev Team
CStrike 1.60 AMX Mod X Dev Team
CSX 1.60 AMX Mod X Dev Team
5 modules

wth is up w/ my KARMA?
gggggg is offline
gggggg
BANNED
Join Date: Mar 2006
Old 04-02-2006 , 20:58  
Reply With Quote #10

hi
check this out. i am using this plugin for changing weapon skins. its suppossed to change the knife sounds too but it doesnt .
im thinking thats why this knife sound plug wont run. i am very new to coding. can someone look at the 2 sma's and see if theres a way to cut out the knife sound code from the weapon plug and add the code from this kinfe sound plug? iunno if it will work.or if not can anyone fig out how to get the knife sounds to work?

heres the model plug w/ knife sound replacement code (doesnt work..only changes p_ and v_ mdls )

is there some way to get the knife sounds to work? maybe my removing the bad code and replacing it w/ the code( or w/e ) from this plug?
Attached Files
File Type: sma Get Plugin or Get Source (weapons_models.sma - 1275 views - 35.7 KB)
gggggg is offline
Reply


Thread Tools
Display Modes

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 16:41.


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