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!

You are here: Big Brother Bot ForumAdd-OnsPlugins DiscussionPlugins by Courgetteheashotsurt plugin v0.2.0 [urt4.1]
Pages: [1] 2 3 4   Go Down
  Print  
Author Topic: heashotsurt plugin v0.2.0 [urt4.1]  (Read 21082 times) Bookmark and Share
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3347
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« on: June 08, 2008, 05:47:01 AM »

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 : v0.2.0 (mirrors)| source code repository (RSS feed)

Install guide :

1) Use B3 v1.1.3 or later
This plugin requires B3 v1.1.3 or later


2) Setup your iourtded config properly :
Code:
set g_logsync "2" //0=no log, 1=buffered, 2=continuous, 3=append
set logfile "1" //0 = NO log, 1 = log file enabled
set g_loghits "1" // allow to log every bullet hit : essential to detect headshots

2) Copy the files

3) Update your config by adding the following line in the plugin section :
Code: xml



FAQ
- In this topic, you can already find answers for :
  • how to display the headshot messages in the chat area instead of the server area
  • how to display the headshot messages as a bigtext

« Last Edit: November 05, 2010, 08:21:49 PM by Courgette » Logged


Full Member
***
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 74
Offline Offline
WWW
« Reply #1 on: June 24, 2008, 07:55:10 AM »



would like to  use this but it doesnt see to work along side the  spree plugin for me ?
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3347
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #2 on: June 24, 2008, 03:14:50 PM »

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...
Logged

Full Member
***
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 74
Offline Offline
WWW
« Reply #3 on: June 24, 2008, 05:34:16 PM »



   <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"/>
-->      
Logged
Full Member
***
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 74
Offline Offline
WWW
« Reply #4 on: June 24, 2008, 05:36:06 PM »

also  how do they both work together  when they  both  use  "!spree"   as a  command  ? 
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3347
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #5 on: June 25, 2008, 02:58:56 AM »

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, 09:06:04 AM by tomdesinto » Logged

Newbie
*
Posts: 3
Offline Offline
« Reply #6 on: June 27, 2008, 10:56:57 AM »

Hello
I installed your plugin on the server but this one does not indicate
the headshoot as on the server of # UbU # the plugin is well launched

b3.xml
Code:
<plugins>
<plugin name="censor" priority="1" config="@b3/conf/plugin_censor.xml"/>
<plugin name="spamcontrol" priority="2" config="@b3/conf/plugin_spamcontrol.xml"/>
<plugin name="admin" priority="3" config="@b3/conf/plugin_admin.xml"/>
<plugin name="tk" priority="4" config="@b3/conf/plugin_tk.xml"/>
<plugin name="stats" priority="5" config="@b3/conf/plugin_stats.xml"/>
<plugin name="pingwatch" priority="6" config="@b3/conf/plugin_pingwatch.xml"/>
<plugin name="adv" priority="7" config="@b3/conf/plugin_adv.xml"/>
<plugin name="status" priority="8" config="@b3/conf/plugin_status.xml"/>
<plugin name="welcome" priority="9" config="@b3/conf/plugin_welcome.xml"/>
<plugin name="poweradminurt" priority="10" config="@b3/extplugins/conf/poweradminurt.xml"/>
<plugin name="headshotsurt" priority="11" config="@b3/extplugins/conf/headshots.xml"/>
<plugin name="login" priority="12" config="@b3/conf/plugin_login.xml"/>
<plugin name="countryfilter" priority="13" config="@b3/extplugins/conf/countryfilter.xml"/>
<plugin name="chat" priority="14" config="@b3/extplugins/conf/plugin_chat.xml"/>
</plugins>

headshots.xml
Code:
<configuration plugin="headshotsurt">

<settings name="settings">
<!-- Reset spree stats for all clients at map rotation 0 = no, 1 = yes -->
<set name="reset_headshots">0</set>
<!-- The minimum level to be able to use the !spree/@spree command. -->
<set name="min_level_headshots_cmd">0</set>
</settings>

</configuration>

I badly indicated a config?? or it is not same the plugin which # UbU# use??
Sorry for my bad English!

En français

Bonjour
j'ai installé ton plugin sur le serveur mais celui-ci n'indique pas les headshoot comme sur le serveur des #UbU#
Le plugin est bien lancé.

b3.xml
Code:
<plugins>
<plugin name="censor" priority="1" config="@b3/conf/plugin_censor.xml"/>
<plugin name="spamcontrol" priority="2" config="@b3/conf/plugin_spamcontrol.xml"/>
<plugin name="admin" priority="3" config="@b3/conf/plugin_admin.xml"/>
<plugin name="tk" priority="4" config="@b3/conf/plugin_tk.xml"/>
<plugin name="stats" priority="5" config="@b3/conf/plugin_stats.xml"/>
<plugin name="pingwatch" priority="6" config="@b3/conf/plugin_pingwatch.xml"/>
<plugin name="adv" priority="7" config="@b3/conf/plugin_adv.xml"/>
<plugin name="status" priority="8" config="@b3/conf/plugin_status.xml"/>
<plugin name="welcome" priority="9" config="@b3/conf/plugin_welcome.xml"/>
<plugin name="poweradminurt" priority="10" config="@b3/extplugins/conf/poweradminurt.xml"/>
<plugin name="headshotsurt" priority="11" config="@b3/extplugins/conf/headshots.xml"/>
<plugin name="login" priority="12" config="@b3/conf/plugin_login.xml"/>
<plugin name="countryfilter" priority="13" config="@b3/extplugins/conf/countryfilter.xml"/>
<plugin name="chat" priority="14" config="@b3/extplugins/conf/plugin_chat.xml"/>
</plugins>

headshots.xml
Code:
<configuration plugin="headshotsurt">

<settings name="settings">
<!-- Reset spree stats for all clients at map rotation 0 = no, 1 = yes -->
<set name="reset_headshots">0</set>
<!-- The minimum level to be able to use the !spree/@spree command. -->
<set name="min_level_headshots_cmd">0</set>
</settings>

</configuration>

j'ai mal indiqué une config ??
ou ce n'est pas le meme plugin qu'utilise les #UbU# ??
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3347
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #7 on: June 27, 2008, 05:15:46 PM »

your b3 config is ok, make sure to include the following line in your iourtded config:
set g_loghits "1"
Logged

Full Member
***
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 74
Offline Offline
WWW
« Reply #8 on: June 30, 2008, 06:44:21 AM »

ok got it working  is there any way to make it a console message and not a server message?
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3347
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #9 on: June 30, 2008, 09:47:38 AM »

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:
self.console.write('%s^3 made ^6%s^3 headshots'%(clientName,headshotsStats.count)) 

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

that should be fine (not tested thought)
Logged

Full Member
***
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 74
Offline Offline
WWW
« Reply #10 on: June 30, 2008, 10:18:03 AM »

ok well i'll test it out for you Smiley 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
Logged
Full Member
***
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 74
Offline Offline
WWW
« Reply #11 on: June 30, 2008, 10:42:42 AM »

works perfectly Smiley
Logged
Full Member
***
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 74
Offline Offline
WWW
« Reply #12 on: June 30, 2008, 10:44:03 AM »

so whats the  command for bigtext in urt4 ?    self.console.bold ?
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3347
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #13 on: June 30, 2008, 10:45:46 AM »

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, 11:15:07 AM by tomdesinto » Logged

Full Member
***
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 74
Offline Offline
WWW
« Reply #14 on: June 30, 2008, 11:07:12 AM »

ok thanks... 
Logged
Tags: plugin UrT bigtext 
Pages: [1] 2 3 4   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal