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

KnifeFight


Post New Thread Reply   
 
Thread Tools Display Modes
Sarona
AlliedModders Donor
Join Date: Jul 2012
Old 03-05-2015 , 05:31   Re: KnifeFight
Reply With Quote #591

Spanish translation, done!!:
Attached Files
File Type: txt knifefight.phrases.txt (2.6 KB, 227 views)

Last edited by Sarona; 03-09-2015 at 00:07.
Sarona is offline
BobTheKillBot
Junior Member
Join Date: Dec 2013
Old 05-18-2015 , 07:43   Re: KnifeFight
Reply With Quote #592

Does this work on CS:GO?
BobTheKillBot is offline
clavmbr
Junior Member
Join Date: Jun 2011
Old 06-30-2015 , 16:07   Re: KnifeFight
Reply With Quote #593

I'm tried to run on csgo and have error don't native BfWriteByte, i tried to fix. it running, but i don't tested much time.

Tested only on csgo.

I changed:
PHP Code:
if (BfReadByte(bf) == && BfReadByte(bf) == && (strcmp(type"scores"false) == 0)) 
to:
PHP Code:
  if (PbReadInt(bf"handlebf"'1') == && PbReadInt(bf"handlebf"'1') == && (strcmp(type"scores"false) == 0)) 
and added:
PHP Code:
#include <protobuf> 
Default config cause crash, but work wich this configs:

PHP Code:
// 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"

// Enable player blocking (disable sm_noblock) if sm_noblock is enabled while knife fight. 0 = Disabled
// -
// Default: "0"
sm_knifefight_block "0"

// Allow bot to knife fight with bot. 0 = Disabled
// -
// Default: "0"
sm_knifefight_botfight "0"

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

// Enable debug. 0 = Disabled
// -
// Default: "0"
sm_knifefight_debug "0"

// 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 ""

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

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

// 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"

// Remove player connected when fight is started. (0 - Slay, 1 - Move to spec)
// -
// Default: "0"
sm_knifefight_removenewplayer "0"

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

// Show winner. (0 - Top left, 1 - Chat)
// -
// Default: "0"
sm_knifefight_showwinner "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 "1"

// 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" 
i added the .sxm because the forum don't have protobuf.inc yet.
sorry my english.
Attached Files
File Type: sp Get Plugin or Get Source (knifefight-csgo.sp - 442 views - 53.1 KB)
File Type: smx knifefight-csgo.smx (28.4 KB, 462 views)

Last edited by clavmbr; 07-03-2015 at 22:25. Reason: TESTED CONFIG
clavmbr is offline
pubhero
Veteran Member
Join Date: Aug 2012
Location: Central Europe
Old 07-04-2015 , 11:16   Re: KnifeFight
Reply With Quote #594

Sometimes when run this plugin, the sv_alltalk goes crazy. In the server.cfg present sv_alltalk 0 but anyone can hear anyone. When i try using the sv_alltalk "0" convar, nothing not happen. When i disable this plugin, the sv_alltalk works well. Anyone can repairing this plugin?
Game: CS:S
pubhero is offline
zeroibis
Veteran Member
Join Date: Jun 2007
Old 10-18-2015 , 13:50   Re: KnifeFight
Reply With Quote #595

Quote:
Originally Posted by erikxcore View Post
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 .
Most things work with this version is cs:go but there are a few issues:

  • It does not play any of the sounds but they do get downloaded.
  • No block in cs:go means that you need a way to turn it on and off during the fight or teleport them a little further away from each other.
  • It says that bots accepted the knife fight when they really declined.
__________________
zeroibis is offline
mariozankl
Member
Join Date: May 2012
Location: Austria
Old 12-11-2015 , 13:41   Re: KnifeFight
Reply With Quote #596

Quote:
Originally Posted by zeroibis View Post
  • It does not play any of the sounds but they do get downloaded.
Would be nice if somebody could fix this.
mariozankl is offline
Sarin
Senior Member
Join Date: Nov 2014
Location: Sydney, Australia
Old 01-09-2016 , 03:11   Re: KnifeFight
Reply With Quote #597

Hey all,

I know this is a long shot. I've had a few players complaining that they want a throwing knife and no throwing knife fight. Is there a way once the knife fight has been accepted it has another vote weather to use throwing knives or not and removes them if both parties agree?

Last edited by Sarin; 01-09-2016 at 20:29.
Sarin is offline
doctavio
Junior Member
Join Date: May 2016
Old 05-19-2016 , 21:59   Re: KnifeFight
Reply With Quote #598

I still cant get this to work, i downloaded the files put then in there correct places and nothing happens, i still don't see a config file you said would be created. i have source mode and all that such, i have successfully installed wc3 and other mods just fine but this one just wont work...
doctavio is offline
Arm_strong
New Member
Join Date: May 2016
Old 05-23-2016 , 20:44   Re: KnifeFight
Reply With Quote #599

i am getting
MP3 initialized with no sound cache, this may cause janking.
Failed to create decoder for MP3
MP3 initialized with no sound cache, this may cause janking.
Failed to create decoder for MP3
*** Invalid sample rate (0) for sound 'my.mp3'.
anyone know how to fix this on css server last update broke it
Arm_strong is offline
Hydrozilla
Member
Join Date: Apr 2006
Location: NY
Old 03-11-2017 , 09:08   Re: KnifeFight
Reply With Quote #600

had the same error message. made several mp3's, all exactly same bitrate, and two of them gave this error. I renamed them, and they worked. makes no sense I know but making the names longer resolved it for me.
__________________
Hydrozilla 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 20:16.


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