Raised This Month: $ Target: $400
 0% 

KnifeFight


Post New Thread Reply   
 
Thread Tools Display Modes
erikxcore
Member
Join Date: Apr 2013
Old 09-16-2013 , 09:34   Re: KnifeFight
Reply With Quote #561

Quote:
Originally Posted by herpes View Post
Could we get a fix to incorporate the missing beacon animations? Srvmil had a solution here, but I don't think it got incorporated in your bit-fixed code and I would love it

https://forums.alliedmods.net/showpo...&postcount=543
My bad, I had it working in the version that crashed with bots and I forgot re-add that fix in the latest version. Attached should have working beacons in CS:GO, although I didn't necessarily test this.

Only really changed two lines according to https://forums.alliedmods.net/showpo...97&postcount=2

As for the sound, I'll take a look and see if I can figure out anything, although working bots (or at least not prompting players if there is bots) is higher on my list until a SM pro comes in .
Attached Files
File Type: smx knifefightNoBot.smx (27.5 KB, 234 views)
File Type: sp Get Plugin or Get Source (knifefightNB.sp - 218 views - 53.1 KB)
erikxcore is offline
herpes
Member
Join Date: Oct 2010
Old 10-06-2013 , 00:08   Re: KnifeFight
Reply With Quote #562

Actually... I just got around to trying this and it says both people accept, and then nothing... Anyone else get that?
herpes is offline
dataviruset
AlliedModders Donor
Join Date: Feb 2009
Location: Hong Kong
Old 10-06-2013 , 04:59   Re: KnifeFight
Reply With Quote #563

We still have this problem:
Quote:
Originally Posted by dataviruset View Post
Hi, this plugin (version 1.3.8 ) crashes on our CS:S server when people pick knife fight when there's 1 player in each team left in the round. Any suggestions?
Does somebody have a solution?
dataviruset is offline
tazzle0870
Senior Member
Join Date: May 2010
Old 10-26-2013 , 11:02   Re: KnifeFight
Reply With Quote #564

music not playing and chicken sound

here is how i have it in knife cfg
// This file was auto-generated by SourceMod (v1.2.1)
// ConVars for plugin "knifefight.smx"


// Enable alltalk while knife fight. 0 = Disabled
// -
// Default: "1"
sm_knifefight_alltalk "1"

// Beacon radius.
// -
// Default: "800"
sm_knifefight_beaconradius "800"

// The sound to play when beacon ring shows.
// -
// Default: "buttons/blip1.wav"
sm_knifefight_beaconsound "buttons/blip1.wav"

// Number of seconds to count down before a knife fight.
// -
// Default: "3"
sm_knifefight_countdowntimer "3"

// The sound to play when player declines to knife.
// -
// Default: "knifefight/chicken.wav"
sm_knifefight_declinesound "chicken.wav"

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

// Songs to play during the fight, comma delimited. (example: song1.mp3,song2.mp3,song3.mp3) (max: 6)
// -
// Default: ""
sm_knifefight_fightsongs "knifefight/radioactive.mp3"

// Number of seconds to allow for knifing. Players get slayed after this time limit expires.
// -
// Default: "30"
sm_knifefight_fighttimer "30"

// Force knife fight at end of round instead of prompting with menus. 0 = Disabled
// -
// Default: "0"
sm_knifefight_forcefight "0"

// Use locator beam between players if they are far apart. 0 = Disabled
// -
// Default: "1"
sm_knifefight_locatorbeam "1"

// Dissolve loser body using special effects. 0 = Disabled
// -
// Default: "1"
sm_knifefight_losereffects "1"

// Minimum number of players before knife fights will trigger.
// -
// Default: "4"
sm_knifefight_minplayers "4"

// Enable random kill after knife fight time end. 0 = Disabled
// -
// Default: "0"
sm_knifefight_randomkill "0"

// Give players full health before knife fight. 0 = Disabled
// -
// Default: "1"
sm_knifefight_restorehealth "1"

// Default sound setting for new users.
// -
// Default: "1"
sm_knifefight_soundprefdefault "1"

// Stop music when fight is over. Useful when used with gungame. 0 = Disabled
// -
// Default: "0"
sm_knifefight_stopmusic "0"

// Use smart teleport system prior to knife fight. 0 = Disabled
// -
// Default: "1"
sm_knifefight_useteleport "1"

// Enable special effects on the winner. 0 = Disabled
// -
// Default: "1"
sm_knifefight_winnereffects "1"

// Total health to give the winner. 0 = Disabled
// -
// Default: "0"
sm_knifefight_winnerhealth "0"

// Total extra money given to the winner. 0 = Disabled
// -
// Default: "0"
sm_knifefight_winnermoney "0"

// Total speed given to the winner. 0 = Disabled (1.0 is normal speed, 2.0 is twice normal)
// -
// Default: "0"
sm_knifefight_winnerspeed "0"

Last edited by tazzle0870; 10-26-2013 at 12:55.
tazzle0870 is offline
tazzle0870
Senior Member
Join Date: May 2010
Old 10-27-2013 , 09:06   Re: KnifeFight
Reply With Quote #565

i have also tried to make file a wav file instead of mp3. the chicken one works now.. The fight music does not..
I changed the knifecfg also to this and still nothing .This is not a Gungame .. its for a pub . does that matter?

// Songs to play during the fight, comma delimited. (sm_knifefight_fightsongs "knifefight/radioactive.wav") (max: 20)

Last edited by tazzle0870; 10-27-2013 at 09:06.
tazzle0870 is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 10-27-2013 , 10:05   Re: KnifeFight
Reply With Quote #566

tazzle, what game? The bitrate of the files have to be specific, I forget what the requirements are, but perhaps someone here knows (or you could google it).
__________________
View my Plugins | Donate
TnTSCS is offline
dataviruset
AlliedModders Donor
Join Date: Feb 2009
Location: Hong Kong
Old 10-27-2013 , 10:09   Re: KnifeFight
Reply With Quote #567

The sampling rate / frequency must be 44,1 KHz for mp3s, I think.
dataviruset is offline
tazzle0870
Senior Member
Join Date: May 2010
Old 10-27-2013 , 11:07   Re: KnifeFight
Reply With Quote #568

this is css.. im not sure what sample rate is or how to adjust it. i added the music to cstrike/sounds/knifefight in folder wit chicken sound. Then added it to fnife fight cfg .Im not sure if my path is incorrect or not.. tazzle <--- throws hands up in air
tazzle0870 is offline
tazzle0870
Senior Member
Join Date: May 2010
Old 10-30-2013 , 18:40   Re: KnifeFight
Reply With Quote #569

bump
tazzle0870 is offline
dataviruset
AlliedModders Donor
Join Date: Feb 2009
Location: Hong Kong
Old 10-30-2013 , 23:02   Re: KnifeFight
Reply With Quote #570

Quote:
Originally Posted by tazzle0870 View Post
this is css.. im not sure what sample rate is or how to adjust it. i added the music to cstrike/sounds/knifefight in folder wit chicken sound. Then added it to fnife fight cfg .Im not sure if my path is incorrect or not.. tazzle <--- throws hands up in air
The sample rate is a property of the sound file. You can use some sound editing software to change it. Audacity for example, it's free.
dataviruset 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 04:58.


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