thankyou
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: headshotsurt plugin [Urban Terror 4.1/4.2]  (Read 44802 times)

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
headshotsurt plugin [Urban Terror 4.1/4.2]
« on: June 08, 2008, 03:47:01 PM »
Description :
This plugin counts the number of headshot kills (and not hits) that players make.
It also provides the !headshot command which is aliased as !hs. (type !help hs to learn how to use it)


Download

Follow changes (RSS feed)

Make sure to read the Install guide

« Last Edit: November 21, 2012, 11:34:34 PM by Courgette »

Offline seanbarr1988

  • Full Member
  • ***
  • Posts: 82
    • NitroServers
Re: heashotsurt plugin for Urban Terror
« Reply #1 on: June 24, 2008, 05:55:10 PM »


would like to  use this but it doesnt see to work along side the  spree plugin for me ?

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: heashotsurt plugin for Urban Terror
« Reply #2 on: June 25, 2008, 01:14:50 AM »
I'm not sure to understand your question..

If it is : can I run both plugins together ? the anwser is yes.

post your b3.xml config file (make sure to hide your rcon password and database passwords), that must something related to the plugin section...

Offline seanbarr1988

  • Full Member
  • ***
  • Posts: 82
    • NitroServers
Re: heashotsurt plugin for Urban Terror
« Reply #3 on: June 25, 2008, 03:34:16 AM »


   <settings name="plugins">
      <set name="external_dir">@b3/extplugins</set>
   </settings>
   <plugins>
      <plugin name="admin" priority="1" config="@b3/conf/plugin_admin.xml"/>
      <plugin name="adv" priority="2" config="@b3/conf/plugin_adv.xml"/>
      <plugin name="poweradminurt" priority="3" config="@b3/extplugins/conf/poweradminurt.xml"/>
      <plugin name="spree" priority="4" config="@b3/extplugins/conf/plugin_spree.xml"/>
      <plugin name="countryfilter" priority="5" config="@b3/extplugins/conf/countryfilter.xml"/>
      <plugin name="pingkicker" priority="6" config="@b3/extplugins/conf/plugin_pingkicker.xml"/>
       <plugin name="configmanager" priority="7" config="@b3/extplugins/conf/configmanager.xml"/>
      <plugin name="headshotsurt" priority="8" config="@b3/extplugins/conf/headshots.xml"/>

<!--
   This plugin will require an extra login password from your higher admins. You
   can use this if you are concerned about people accidentally gaining admin rights
   because of non-unique guids in Cod2.
   For Cod1 and Cod:UO this is less of a concern, because they can use the
   Punkbuster IDs.
      <plugin name="login" priority="12" config="@b3/conf/plugin_login.xml"/>
      <plugin name="stats" priority="5" config="@b3/conf/plugin_stats.xml"/>
      <plugin name="welcome" priority="9" config="@b3/conf/plugin_welcome.xml"/>
      <plugin name="status" priority="6" config="@b3/conf/plugin_status.xml"/>
      <plugin name="tk" priority="11" config="@b3/conf/plugin_tk.xml"/>
      <plugin name="pingwatch" priority="4" config="@b3/conf/plugin_pingwatch.xml"/>
      <plugin name="censor" priority="1" config="@b3/conf/plugin_censor.xml"/>
      <plugin name="spamcontrol" priority="2" config="@b3/conf/plugin_spamcontrol.xml"/>
-->      

Offline seanbarr1988

  • Full Member
  • ***
  • Posts: 82
    • NitroServers
Re: heashotsurt plugin for Urban Terror
« Reply #4 on: June 25, 2008, 03:36:06 AM »
also  how do they both work together  when they  both  use  "!spree"   as a  command  ? 

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: heashotsurt plugin for Urban Terror
« Reply #5 on: June 25, 2008, 12:58:56 PM »
I don't see what could be wrong with your config.
Restart the bot and post the log.
Also what version of B3 are you using ?

About the !spree command : you made me realise I left old comments en the config file.
The command for the headshotsurt plugin is !headshots (which is also aliased as !hs)
So there is no conflict between the two.
« Last Edit: June 25, 2008, 07:06:04 PM by tomdesinto »

Offline Peloo

  • Newbie
  • *
  • Posts: 3
Re: heashotsurt plugin for Urban Terror
« Reply #6 on: June 27, 2008, 08:56:57 PM »

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: heashotsurt plugin for Urban Terror
« Reply #7 on: June 28, 2008, 03:15:46 AM »
your b3 config is ok, make sure to include the following line in your iourtded config:
set g_loghits "1"

Offline seanbarr1988

  • Full Member
  • ***
  • Posts: 82
    • NitroServers
Re: heashotsurt plugin for Urban Terror
« Reply #8 on: June 30, 2008, 04:44:21 PM »
ok got it working  is there any way to make it a console message and not a server message?

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: heashotsurt plugin for Urban Terror
« Reply #9 on: June 30, 2008, 07:47:38 PM »
can you explain what went wrong and how you solved it so other people can learn from your experience.

about the message, it is a console message and I suppose you mean you want it to appear in the chat.
So edit headshotsurt.py line 167

replace :
Code: [Select]
self.console.write('%s^3 made ^6%s^3 headshots'%(clientName,headshotsStats.count))  

with :
Code: [Select]
self.console.say('%s^3 made ^6%s^3 headshots'%(clientName,headshotsStats.count)) 

that should be fine (not tested thought)

Offline seanbarr1988

  • Full Member
  • ***
  • Posts: 82
    • NitroServers
Re: heashotsurt plugin for Urban Terror
« Reply #10 on: June 30, 2008, 08:18:03 PM »
ok well i'll test it out for you :) and let you know.


 to fix my problem  i updated to the latest version of b3  (1.1.3  i think)  and enabled g_loghits 1

Offline seanbarr1988

  • Full Member
  • ***
  • Posts: 82
    • NitroServers
Re: heashotsurt plugin for Urban Terror
« Reply #11 on: June 30, 2008, 08:42:42 PM »
works perfectly :)

Offline seanbarr1988

  • Full Member
  • ***
  • Posts: 82
    • NitroServers
Re: heashotsurt plugin for Urban Terror
« Reply #12 on: June 30, 2008, 08:44:03 PM »
so whats the  command for bigtext in urt4 ?    self.console.bold ?

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: heashotsurt plugin for Urban Terror
« Reply #13 on: June 30, 2008, 08:45:46 PM »
you're off topic here. but to answer your question anyway: no, it is self.console.write('bigtext %s' % 'my text')
« Last Edit: June 30, 2008, 09:15:07 PM by tomdesinto »

Offline seanbarr1988

  • Full Member
  • ***
  • Posts: 82
    • NitroServers
Re: heashotsurt plugin for Urban Terror
« Reply #14 on: June 30, 2008, 09:07:12 PM »
ok thanks... 

 


Rate this page +1 at Google Search

anything