Turret Limit Plugin
prsearle
Join Date: 2002-11-01 Member: 2365Members, Constellation
<div class="IPBDescription">Limited turrets per factory</div> This metamod plugin allows you to limit the number of turrets that can be supported by each turret factory. This number can be different for advanced turret factories, and sieges can also be limited.
Note that it will not stop the commander placing more turrets than can be supported by a factory, but it will prevent the extra turrets from tracking and firing. Which turrets are deactivated in this case depends on the order they are processed and can not be guaranteed; in all my testing, though, later placed turrets deactivated first. If an active turret is recycled or destroyed then an inactive turret will activate and take its place. The overlapping area between two turret factories is correctly handled.
The plugin should be installed like any other metamod plugin, and makes available four new cvar's:
<ul>
<li>prs_turrets
How many turrets a basic turret factory can support.
Default value: 8
<li>prs_adv_turrets
How many turrets an advanced turret factory can support.
Default value: 12
<li>prs_adv_sieges
How many siege turrets an advanced turret factory can support.
Default value: 2
<li>prs_checktime
The number of seconds between updates. This is the maximum time taken for a turret to activate or deactivate. Make sure it is greater than zero.
Default value: 5
</ul>
The plugin is available here: <a href='http://homepage.ntlworld.com/pr.searle/' target='_blank'>http://homepage.ntlworld.com/pr.searle/</a> along with source code. Bugs should be reported to pr.searle@ntlworld.com
<b> *** Edit:</b> Version 3.0 is available <a href='http://homepage.ntlworld.com/pr.searle/' target='_blank'>here</a> and does prevent the commander from placing extra turrets. It also adds another cvar: prs_hive_complete, which when set to one will play a "hive construction complete" sound when a hive is fully built.
Note that it will not stop the commander placing more turrets than can be supported by a factory, but it will prevent the extra turrets from tracking and firing. Which turrets are deactivated in this case depends on the order they are processed and can not be guaranteed; in all my testing, though, later placed turrets deactivated first. If an active turret is recycled or destroyed then an inactive turret will activate and take its place. The overlapping area between two turret factories is correctly handled.
The plugin should be installed like any other metamod plugin, and makes available four new cvar's:
<ul>
<li>prs_turrets
How many turrets a basic turret factory can support.
Default value: 8
<li>prs_adv_turrets
How many turrets an advanced turret factory can support.
Default value: 12
<li>prs_adv_sieges
How many siege turrets an advanced turret factory can support.
Default value: 2
<li>prs_checktime
The number of seconds between updates. This is the maximum time taken for a turret to activate or deactivate. Make sure it is greater than zero.
Default value: 5
</ul>
The plugin is available here: <a href='http://homepage.ntlworld.com/pr.searle/' target='_blank'>http://homepage.ntlworld.com/pr.searle/</a> along with source code. Bugs should be reported to pr.searle@ntlworld.com
<b> *** Edit:</b> Version 3.0 is available <a href='http://homepage.ntlworld.com/pr.searle/' target='_blank'>here</a> and does prevent the commander from placing extra turrets. It also adds another cvar: prs_hive_complete, which when set to one will play a "hive construction complete" sound when a hive is fully built.
Comments
Not yet; give me a few hours to install linux and I'll see what I can do. The source is available if you want to try compiling it yourself.
<a href='http://gimli.dyndns.info/~andy/factorylimit_1.0.tar.gz' target='_blank'>http://gimli.dyndns.info/~andy/factorylimit_1.0.tar.gz</a>
Voogru had a build limit plugin for 1.04 that worked like this however his was limited to a global max number of items not on a per tf basis
<a href='http://gimli.dyndns.info/~andy/factorylimit_1.0.tar.gz' target='_blank'>http://gimli.dyndns.info/~andy/factorylimit_1.0.tar.gz</a> <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
Thanks, I'll give it a try tonight and tell you if it works.
Voogru had a build limit plugin for 1.04 that worked like this however his was limited to a global max number of items not on a per tf basis<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
Voogru's plugin worked by blocking the "build turret" impulse if too many turets existed. Unfortunatly the turret's location is needed to check for valid turret factories, and I can't see any way of getting this location during an impulse command. I will keep looking through.
As far as I know this plugin should work alongside Voogru's BuildLimit plugin. BuildLimit restricts the total number of turrets, while FactoryLimit enforces a per-factory maximum. If anyone encounters problems using the two together, let me know.
With regards to a Linux binary, I currently have no way of compiling and testing one. Until this situation changes, I'm afraid you will either have to compile it yourself or use Andyonce's <a href='http://gimli.dyndns.info/~andy/factorylimit_1.0.tar.gz' target='_blank'>untested version</a>, mirrored <a href='http://homepage.ntlworld.com/pr.searle/ns/factorylimit_1.0.tar.gz' target='_blank'>here</a>.
The new version is available <a href='http://homepage.ntlworld.com/pr.searle/' target='_blank'>here</a> in win32 or source code. If you want a Linux version, I'm afraid you will either have to compile it yourself or use Andoyances 1.0 binary (1.0 will not prevent the commander from placing extra turrets and lacks the hive complete notification).
Please, thats enoug hto take out a hive, max should be 2, and a TF should be 6-7
2.0 will not stop the commander from placing more turrets than the factory can support; 3.0 does. Also there was a small bug in 2.0 where aliens would occasionally hear "our hive is complete" instead of "cleanse the intruders". 3.0 fixes this.
<!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> Please, thats enoug hto take out a hive, max should be 2, and a TF should be 6-7<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
The values can be changed by the server admins to whatever they feel more appropriate. Once changed, the new values will become effective within seconds.
Another problem I am having is simply placing turrets at the beginning. I build my first turret factory, then I can't build any turrets...
- I couldn't place any turrets.
- I couldn't drop any weapons.
- Other plugins such as Manual Siege seemed to be blocked, and didn't work properly.
So basically, while the plugin is a great idea, and I'd love to use it, I can't seem to get it working... <!--emo&::nerdy::--><img src='http://www.unknownworlds.com/forums/html/emoticons/nerd.gif' border='0' style='vertical-align:middle' alt='nerd.gif'><!--endemo-->
It does not work at all to begin with. Sometimes you need to build 2 TF's before it will allow any sentries to be built. Also ive had reports of eletricifying TF's causing a problem.
Any chance of a serious bug fix please?
Yep same here
Best regards,
Stu
Best regards,
Stu
1. Was there ever a version of this that worked well? Meaning, did version 1 or 2 at least limit the turrets per tf?
2. Does anyone have a link to that voogru build limit plugin? I couldn't find it on their site.
1. Was there ever a version of this that worked well? Meaning, did version 1 or 2 at least limit the turrets per tf?
2. Does anyone have a link to that voogru build limit plugin? I couldn't find it on their site.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
Version 1 and 2 allowed the commander to build as many turrets as he wanted, but prevented the extra ones from working. The only difference between version 1 and version 2 is the "Hive complete" notification. More details can be found <a href='http://homepage.ntlworld.com/pr.searle/' target='_blank'>here</a>.
Voogru's build limit plugin can be downloaded from <a href='http://www.voogru.com/files/BuildLimit_MM.zip' target='_blank'>here</a>.