Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here

NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

Author Topic: [dswp] KniferPlugin  (Read 14289 times)

Offline wurst

  • Jr. Member
  • **
  • Posts: 22
[dswp] KniferPlugin
« on: July 28, 2009, 01:16:57 AM »
Here 1 Plugin that we use to motivate players to chose a difficult weapon.
It counts Knife Records for each map and make a Bigtext if u got 10-15-20 etc knifekills.

check it:
http://www.dswp.de/SvaRoX/Plugins/Knifer

Credits to [dswp]SvaRox, he wrote it
License GPL, have a lot of cookies!
« Last Edit: July 28, 2009, 10:56:17 PM by Bakes »

Offline MrMind

  • Jr. Member
  • **
  • Posts: 39
Re: [dswp] KniferPlugin
« Reply #1 on: January 01, 2010, 12:31:26 PM »
Hi!

Is it possible the b3 show top knife killers (!kntopstats) end of every round?

Thx in advance.

Offline Bakes

  • B3 Contrib/Support
  • Hero Member
  • *
  • Posts: 1226
Re: [dswp] KniferPlugin
« Reply #2 on: January 01, 2010, 12:47:19 PM »
as another thing, is this UrT only, or can it work with CoD?

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4882
    • Github repository
Re: [dswp] KniferPlugin
« Reply #3 on: January 01, 2010, 03:18:17 PM »
AFAIR, you can specify the weapon code easily in the config (or in the code) so you should give it a try with Cod knife weapon kill code.

Offline MrMind

  • Jr. Member
  • **
  • Posts: 39
Re: [dswp] KniferPlugin
« Reply #4 on: January 01, 2010, 09:30:52 PM »
Hi!

Headshot plugin show all headshot in a bigtext after a modify in headshotsurt.py. Is it possible with knife plugin, because i want to show all knife kill in a bigtext?

Thx in advance.  :)

« Last Edit: January 04, 2010, 09:58:00 AM by MrMind »

Offline MrMind

  • Jr. Member
  • **
  • Posts: 39
Re: [dswp] KniferPlugin
« Reply #5 on: January 06, 2010, 09:04:56 AM »
Hi!

I want to show first 10 knife (15 and 20 kill too) kill for all players on my UrT 4.1 server. Well is it enought to modify these values in the knifer.xml file or i must modify others too in .py file?

Original code:

Quote
<settings name="messages">
        <set name="msg_10">^3$name ^4$score ^7knife kills, go on!</set>
        <set name="msg_15">^3$name ^4$score ^7knife kills, beware ^4his^7/^6her ^7knife!</set>
        <set name="msg_20">^4$score ^7kills : ^3$name ^7is a knife master!</set>
        <!-- <set name="msg_20">^3$name ^4$score ^7knife kills ^2Woo00oot!</set> -->
        <set name="msg_25">^4$score ^7knife kills : ^3$name is a ^1butcher!</set>
        <set name="msg_30">^4$score ^7knife kills : ^3$name stop your knife aimbot please :)</set>
        <set name="msg_35">^4$score ^7knife kills ^2No way...</set>
        <set name="msg_40">^3$name ^4$score ^7knife kills : Slicey is that you ?</set>
        <set name="msg_45">^3$name ^4$score ^7knife kills : Yes it must be you...</set>
        <set name="msg_50">^4$score ^7knife kills -> ^3$name ^7you sick freak!!!</set>
        <set name="msg_55">^3$name : ^4Buffer Overflow ^7knife kills</set>
</settings>

Updated code:

Quote
<settings name="messages">
        <set name="msg_2">$name made 2 knife kill</set>
        <set name="msg_3">$name made 3 knife kill</set>
        <set name="msg_4">$name made 4 knife kill</set>
        <set name="msg_5">$name made 5 knife kill</set>
        <set name="msg_6">$name made 6 knife kill</set>
        <set name="msg_7">$name made 7 knife kill</set>
        <set name="msg_8">$name made 8 knife kill</set>
        <set name="msg_9">$name made 9 knife kill</set>
        <set name="msg_10">$name made 10 knife kill</set>
        <set name="msg_15">$name made 15 knife kill</set>
        <set name="msg_20">$name over than 20 knife kill</set>
</settings>

Thx in advance...

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4882
    • Github repository
Re: [dswp] KniferPlugin
« Reply #6 on: January 06, 2010, 10:13:45 AM »
give it a try. I don't see why it would not work with just editing the config file

Offline CTU_FSUNOLE

  • Sr. Member
  • ****
  • Posts: 157
    • http://www.ctuclan.org
Re: [dswp] KniferPlugin
« Reply #7 on: October 02, 2010, 05:16:23 PM »
Will this work for COD 4?

Offline CTU_FSUNOLE

  • Sr. Member
  • ****
  • Posts: 157
    • http://www.ctuclan.org
Re: [dswp] KniferPlugin
« Reply #8 on: June 17, 2011, 06:13:45 PM »
Does anyone know if this works with COD 4?

Offline Ceaseless

  • Jr. Member
  • **
  • Posts: 36
Re: [dswp] KniferPlugin
« Reply #9 on: December 26, 2011, 12:28:57 AM »
Does anyone know if this works with COD 4?
I want to know the same

Offline MordyT

  • Moderator
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: [dswp] KniferPlugin
« Reply #10 on: December 26, 2011, 03:14:48 PM »
I want to know the same

AFAIR, you can specify the weapon code easily in the config (or in the code) so you should give it a try with Cod knife weapon kill code.
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

Offline Fragmeister

  • Full Member
  • ***
  • Posts: 78
    • Serveur FRAG on Urban terror
Re: [dswp] KniferPlugin
« Reply #11 on: September 10, 2012, 06:00:56 PM »
Hi,

Good plugin !
Is it possible to reset the Knife Kills at the end of each maps rather than the end of each half?
Because I have a server bomb and Knife Kills are reset at the end of each half when scores are displayed.

Thank you in advance for your help.
Website of my urt server : www.frag-urt.com/

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4882
    • Github repository
Re: [dswp] KniferPlugin
« Reply #12 on: September 10, 2012, 06:07:24 PM »
Try that hack (untested) :

edit knifer.py
search for any occurence of "EVT_GAME_EXIT"
replace them with "EVT_GAME_MAP_CHANGE"

Offline Fragmeister

  • Full Member
  • ***
  • Posts: 78
    • Serveur FRAG on Urban terror
Re: [dswp] KniferPlugin
« Reply #13 on: September 10, 2012, 09:05:57 PM »
Website of my urt server : www.frag-urt.com/

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4882
    • Github repository
Re: [dswp] KniferPlugin
« Reply #14 on: September 10, 2012, 10:52:06 PM »
Thanks courgette ! I will test that.
Is this change going to displaying the best Knifer at the end of each map rather than at the end of each half?
I think so, but again I did not test it.

 


Rate this page +1 at Google Search