Raised This Month: $51 Target: $400
 12% 

KnifeFight


Post New Thread Reply   
 
Thread Tools Display Modes
Phailyur
Junior Member
Join Date: Jan 2011
Old 01-13-2011 , 00:11   Re: KnifeFight
Reply With Quote #411

I don't mean to double post here but now my custom song is not working. I download the song and it goes into my knifefight file on my Local but it doesn't play at all when the knifefight actually happens. Although the chicken sound plays perfectly fine like it is supposed to.

knifefight.sp :
Code:
g_Cvarstopmusic     = CreateConVar("sm_knifefight_stopmusic",   "0", 
        "Stop music when fight is over. Useful when used with gungame. 0 = Disabled");
    g_Cvardeclinesound  = CreateConVar("sm_knifefight_declinesound",    "knifefight/chicken.wav", 
        "The sound to play when player declines to knife.");
    g_Cvarbeaconsound   = CreateConVar("sm_knifefight_beaconsound", "buttons/blip1.wav", 
        "The sound to play when beacon ring shows.");
    g_Cvarcountdowntimer    = CreateConVar("sm_knifefight_countdowntimer",  "3", 
        "Number of seconds to count down before a knife fight.");
    g_Cvarfighttimer    = CreateConVar("sm_knifefight_fighttimer",  "30", 
        "Number of seconds to allow for knifing.    Players get slayed after this time limit expires.");
    g_Cvarbeaconradius  = CreateConVar("sm_knifefight_beaconradius",    "800",  
        "Beacon radius.");
    g_Cvarfightsongs    = CreateConVar("sm_knifefight_fightsongs",  "knifefight/song1.wav", 
        "Songs to play during the fight, comma delimited. (example: knifefight/song1.mp3,knifefight/song2.mp3,knifefight/song3.mp3) (max: 20)");
knifefight.cfg :
Code:
// The sound to play when player declines to knife.
// -
// Default: "knifefight/chicken.wav"
sm_knifefight_declinesound "knifefight/chicken.wav"

// Enable this plugin. 0 = Disabled
// -
// Default: "1"
sm_knifefight_enabled "1"

// Songs to play during the fight, comma delimited. (example: knifefight/song1.mp3,knifefight/song2.mp3,knifefight/song3.mp3) (max: 20)
// -
// Default: ""
sm_knifefight_fightsongs "knifefight/song1.wav"
I even added a CVAR the sourcemod.cfg :
Code:
// This is the song that plays inside of KnifeFight
// It is located in cstrike\sound\knifefight\song1.wav
// --
// Default: ""
sm_knifefight_fightsongs  "knifefight/song1.wav"
Here is my FTP Fast Download server :
http://www.aperture-m.com/666/xplicit/cstrike

All of the files are right there and they download right to where they are told but it just doesn't play. Any help would be greatly appreciated.
Phailyur is offline
Phailyur
Junior Member
Join Date: Jan 2011
Old 01-14-2011 , 16:33   Re: KnifeFight
Reply With Quote #412

^ I have fixed my issue.
Phailyur is offline
stone newbie
Junior Member
Join Date: Oct 2010
Old 01-31-2011 , 09:34   Re: KnifeFight
Reply With Quote #413

hi @ all, i have a problem with update new music
unfortunally, only 10 of 20 songs are played by the plugin

knifefight.cfg:
Code:
// Songs to play during the fight, comma delimited. (example: knifefight/song1.mp3,knifefight/song2.mp3,knifefight/song3.mp3) (max: 20)
// -
// Default: ""
sm_knifefight_fightsongs "knifefight/song1.mp3,knifefight/song2.mp3,knifefight/song3.mp3,knifefight/song4.mp3,knifefight/song5.mp3,knifefight/song6.mp3,knifefight/song7.mp3,knifefight/song8.mp3,knifefight/song9.mp3,knifefight/song10.mp3,knifefight/song11.mp3,knifefight/song12.mp3,knifefight/song13.mp3,knifefight/song14.mp3,knifefight/song15.mp3"
pls what can i do
stone newbie is offline
Snake60
Senior Member
Join Date: Jul 2008
Location: Russia, Pskov
Old 01-31-2011 , 10:52   Re: KnifeFight
Reply With Quote #414

This is limitation of 255 bit string, not limit for number of songs... If you want more songs - you can rename folder knifefight in folder with more shorter name (for example: kf) Also you can give more shorter names for songs (for example: 01.mp3, 02.mp3 and etc.)
__________________
Snake60 is offline
Send a message via ICQ to Snake60 Send a message via MSN to Snake60 Send a message via Skype™ to Snake60
stone newbie
Junior Member
Join Date: Oct 2010
Old 01-31-2011 , 12:15   Re: KnifeFight
Reply With Quote #415

Quote:
Originally Posted by Snake60 View Post
This is limitation of 255 bit string, not limit for number of songs... If you want more songs - you can rename folder knifefight in folder with more shorter name (for example: kf) Also you can give more shorter names for songs (for example: 01.mp3, 02.mp3 and etc.)
thx man i test later
stone newbie is offline
stone newbie
Junior Member
Join Date: Oct 2010
Old 02-01-2011 , 07:14   Re: KnifeFight
Reply With Quote #416

it work's
stone newbie is offline
Snake60
Senior Member
Join Date: Jul 2008
Location: Russia, Pskov
Old 02-01-2011 , 07:15   Re: KnifeFight
Reply With Quote #417

Glad to hear it
__________________
Snake60 is offline
Send a message via ICQ to Snake60 Send a message via MSN to Snake60 Send a message via Skype™ to Snake60
BDeep
Senior Member
Join Date: Jun 2009
Location: NH
Old 03-14-2011 , 16:53   Re: KnifeFight
Reply With Quote #418

Altex,

Just a little FYI for you. I noticed this a long time ago and forgot all about it. If you set the sm_knifefight_declinesound to "" the server will crash and not start backup until you put something in there. Even if its a sound file that doesnt exist. Just thought I should point this out.

Thanks

Deep.
__________________
BDeep is offline
altex
Veteran Member
Join Date: May 2009
Location: Russia
Old 03-14-2011 , 16:58   Re: KnifeFight
Reply With Quote #419

Thanks, did not know that.
__________________
altex is offline
BDeep
Senior Member
Join Date: Jun 2009
Location: NH
Old 03-14-2011 , 17:13   Re: KnifeFight
Reply With Quote #420

No problem.

Also, I know there is a alternate version of this plugin for support with throwing knives but it does not work. Any chance that you might add that function into KnifeFight?
__________________
BDeep is offline
Reply



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 19:11.


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