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 Discussion (Moderator: MordyT)CoD5 tank respawn plugin (idea)
Pages: [1]   Go Down
  Print  
Author Topic: CoD5 tank respawn plugin (idea)  (Read 430 times) Bookmark and Share
Jr. Member
**
OS: Windows
Type: Owner dedicated server(s)
Gameservers: CoD4 & CoD5
Posts: 11
Offline Offline
« on: September 08, 2010, 04:30:09 AM »

Right now if I want to have a long respawn time for tanks on my CoD5 CTF server I have to type this in the console:

/rcon scr_veh_respawntimemax 999

I was told by fpsadmin site that it will not work if its just put in a server config and have verified that myself that it has to be executed through rcon.

I was wondering if anyone here would be willing to make a plugin for this so it would automatically work all the time.

Thanks. Smiley
Logged

Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #1 on: September 08, 2010, 07:51:59 AM »

Have a look at the scheduler plugin. This plugin can execute rcon commands every minute (or other interval)

Sent from my HTC Legend using Tapatalk
Logged

Jr. Member
**
OS: Windows
Type: Owner dedicated server(s)
Gameservers: CoD4 & CoD5
Posts: 11
Offline Offline
« Reply #2 on: September 09, 2010, 08:21:19 AM »

Thanks Courgette. The problem I am having now is where to put this into the scheduler.xml.

This is what I have so far:

<configuration plugin="scheduler">

   <!--
   You can define as many tasks as you want.
   Tasks can be one of : daily, hourly, cron
   Each task is composed of at least one rcon or bfbc2 command.

   Optionnaly for daily task, you can specify hour and minutes.
   Optionnaly for houly task, you can specify minutes.
   Cron task follow the Unix cron syntax. See http://www.google.com/search?q=man+crontab+5
   
   Let say you want to execute "yourCommand arg1 arg2"
   If your game is based on Quake3 :
      <rcon>yourCommand arg1 arg2</rcon>
   If your game is Battlefield Bad Company 2 :
      <bfbc2 command="yourCommand">
         <arg>argument 1</arg>
         <arg>argument 2</arg>
      </bfbc2>
      
   Example :
      If you want to run the punkbuster command 'pb_sv_update' every night at 3:30 am
   for Quake3 like games :
      <daily name="myDailyPBupdate" hour="3" minutes="30">
         <rcon>pb_sv_update</rcon>
      </daily>
   for BFBC2 :
      <daily name="myDailyPBupdate" hour="3" minutes="30">
         <bfbc2 command="punkBuster.pb_sv_command">
            <arg>pb_sv_update</arg>
         </bfbc2>
      </daily>
   -->

   <daily name="dayly1">
      <rcon>bigtext "It's midnight, go to bed kids"</rcon>
      <rcon>bigtext "seriously"</rcon>
   </daily>


   <daily name="dayly1" hour="2" minutes="41">
      <rcon>bigtext "hi from dayly2"</rcon>
   </daily>



   <hourly name="hourly1">
      <rcon>bigtext "hi from hourly1"</rcon>
   </hourly>

   <hourly name="hourly2" minutes="43">
      <rcon>bigtext "hi from hourly2"</rcon>
   </hourly>




   <cron name="every3m"
    minutes="*/3"
    hour="*"
    day="*"
    month="*"
    dow="*"
    >
      <rcon>say "^7every3m"</rcon>
   </cron>

   <cron name="every4h5m"
    minutes="5"
    hour="*/4"
    day="*"
    month="*"
    dow="*"
    >
      <rcon>say "^7every4h5m"</rcon>
   </cron>


   <cron name="every2day13h45m"
    minutes="45"
    hour="13"
    day="*/2"
    month="*"
    dow="*"
    >
      <rcon>say "^7every2day13h45m"</rcon>
   </cron> 


   <cron name="newYear"
    minutes="0"
    hour="0"
    day="1"
    month="1"
    dow="*"
    >
      <rcon>bigtext "Happy new year !"</rcon>
   </cron> 

   <cron name="everyMondayMorningAt7am"
    minutes="0"
    hour="7"
    day="*"
    month="*"
    dow="1"
    >
      <rcon>bigtext "mondays, pfff...."</rcon>
   </cron> 

</configuration>


I am a little confused on where I should put this scr_veh_respawntimemax 999 and I don't want my server to spam any messages since all I need is that one command for tank respawn time set to 999. Basically I want to make it so every map it looks up that rcon command every 20 minutes which is usually how long the rounds last since its on CTF. Thanks for your help man. Smiley
« Last Edit: September 09, 2010, 08:48:19 AM by Max][mu$ » Logged
Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal