![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|||||||||
|
|
Thread Tools | Display Modes |
08-29-12, 01:28 AM
|
#11 | |
|
Black Magic
![]() |
Quote:
My next mega-patch is 95% complete. The testing shows the idea works and it works quite well There is one thing left to figure out but I'm not going to let that hold it up. Here is what this mega-patch is:Ability to call in for wolfpacks When you send in a contact report there is a 10% chance that Bdu might vector other subs to your position. These subs are not subs pulled from the campaign or anything. These are new subs spawned on the fly. The great thing about how I'm spawning these new subs is the function is setup to be generic - that means I can spawn any unit of any nationality anytime I want, any quantity that I want Let's get into the meat and potatoes of how this is all working:You send in a contact report. The game checks to see if you are lucky enough to have Bdu consider your contact report. If they consider your contact report then a timer is set that will not allow Bdu to reconsider you for vectoring of subs to your position for 18 hours. Now the game checks to see how many subs Bdu will vector to your position. The max they will send is 3. Since a random number is being generated there is a possibility that 0 units will be sent to your position. Which means no reinforcements for you! If you are lucky enough to have some subs sent to your position then for each sub vectored to your position: - a timer is set for when the sub will spawn. The max time can be up to 8 hours. A random number is generated (0-1.0) that is multiplied by this 8hrs to get the spawn time. When the spawn timer times out then the new AI sub is spawned on the surface and given two waypoints: the first waypoint is your current position, the second waypoint is it's current position (so it will return to where it came from). A max spawn distance radius of 15km is used to generate the random spawn distance and location in relation to your sub. - The new AI sub will follow waypoints until it finds a contact. Once it has a contact then it goes into attack mode and does what it's supposed to do. - if the new AI sub doesn't 'see' any contacts it will follow the first waypoint to it's end then turn around and head back to where it came from and eventually disappear from the game. By using these random 8hr timers it's quite possible that one sub can show up a couple of hours later and another may show up 5 hours later. It's totally random ![]() I said the mega-patch is 95% complete because I haven't figured out how to send the Bdu messages to the player's sub yet. What I do until I figure this out is I put a message in the messagebox saying "Shadow contact/convoy and await reinforcements" - this way you know that Bdu is vectoring subs to your position. If you do not get this message then no subs are being sent to your position. All these timer variables and random % chances are variables in my patch file. This means one can adjust to the level of realism/their taste wanted (except for the number of subs that can be sent to your position - that is fixed at a max of 3) ![]() Now note I said the function that I made is generic so that I can spawn any unit of any nationality anytime and in any quantity that I want. I have big plans for carriers/cruisers in the game now ![]() I thought about adding a new command to the game ("Request_wolfpack") instead of tying this new idea to the contact reports....what do you all think
Last edited by TheDarkWraith; 08-29-12 at 02:12 AM. |
|
|
|
|
|
