• Home
  • Index
  • Search
  • Download
  • Server Rules
  • House Roleplay Laws
  • Player Utilities
  • Player Help
  • Forum Utilities
  • Returning Player?
  • Toggle Sidebar
Interactive Nav-Map
Tutorials
New Wiki
ID reference
Restart reference
Players Online
Player Activity
Faction Activity
Player Base Status
Discord Help Channel
DarkStat
Server public configs
POB Administration
Missing Powerplant
Stuck in Connecticut
Account Banned
Lost Ship/Account
POB Restoration
Disconnected
Member List
Forum Stats
Show Team
View New Posts
View Today's Posts
Calendar
Help
Archive Mode




Hi there Guest,  
Existing user?   Sign in    Create account
Login
Username:
Password: Lost Password?
 
  Discovery Gaming Community Discovery Development Discovery Developers Forum Discovery Unofficial Development
« Previous 1 2 3 4 5 Next »
Introducing Repair Ships to POBs

Server Time (24h)

Players Online

Active Events - Scoreboard

Latest activity

Introducing Repair Ships to POBs
Offline Its Raisu
07-06-2020, 06:11 AM, (This post was last modified: 07-06-2020, 06:20 AM by Its Raisu.)
#1
Member
Posts: 174
Threads: 14
Joined: Jul 2018

So... I got curious about whether i could make the Repair Ship something that was usable for POB construction.

And here's the result.

In the video, due to my offline test server's repair_per_repair_cycle being 60,000. With the other settings being used, this comes out to 1500 healed per shot, which is 30k healed after 20 shots.

Why?
Because, currently, it takes quite some time to get a new POB established. You're entirely at the mercy of the repair tick timer and whether the base is found by those who would siege it. This allows POB builders to invest into actively constructing the POB by using repair ships after it has been deployed.

In addition, currently, when there is a siege against a POB, attackers can attack a base at any time of the day and it's only a matter of whether defenders are available and capable of clearing them out. With the threat of POBs being able to be repaired by repair ships at any time of the day, attackers will also need to be vigilant rather than waiting for player counts to drop before attacking.

At the moment, this doesn't check whether the POB's shields are up and I sort of like that it can work even when its shields are active. However I could see changing that to where the repair rate is reduced to 1/2 or 1/4 when defense shields are active.


Development process stuff...

Initially, I was just getting the repairgun code to work on POBs in general because I was having trouble getting hits to register on POBs when the Nanotool Gun was set to 1 damage.

I wasn't able to find the cause, but I was able to work around it by setting the gun's damage to 2 and having the repair gun work on damage values between 0 and 2 instead of just values between 0 and 1.

Then, I wanted it to repair the same way a normal POB repair cycle would by consuming 2 Robotic Hardware, Reinforced Alloy, or Hull Segments and then applying the same repair amount as defined in the plugin. However, this was now allowing a 4 shot per second gun to do the equivalent of 20 repair cycles in just 10 seconds. So I started looking at ways to slow down the repair rate while keeping the consumption rate the same -- such as by using the commodity's health similarly to how commodities with decay are lost over time.

In absence of that however, I was able to use RNG chance for a similar effect.
Code:
repairship_chance = 0.05 //Chance that 1 repair commodity is consumed when applying the repair from a Nanotool gun on a repair ship.
repairship_rate = 0.025 //The fractional amount of a repair cycle that is healed for each shot from a Nanotool gun on a repair ship.
These two base.config variables allow control over POB repairs through repair ships to either speed up / slow down their repair rate or increase / reduce the amount of commodities consumed.

The ones listed above result in 1 commodity being consumed roughly every 20 shots and 50% of a passive repair cycle every 20 shots.
After 40 shots, this will typically consume 2 commodities and heal 100% of what a passive repair cycle would.
Note about the variables on my offline test server moved to video
Reply  


Messages In This Thread
Introducing Repair Ships to POBs - by Its Raisu - 07-06-2020, 06:11 AM
RE: Introducing Repair Ships to POBs - by Busy Miner - 07-06-2020, 06:28 AM
RE: Introducing Repair Ships to POBs - by Xenon - 07-06-2020, 06:29 AM
RE: Introducing Repair Ships to POBs - by Hawksmoor - 07-06-2020, 06:30 AM
RE: Introducing Repair Ships to POBs - by Hemlocke - 07-06-2020, 06:34 AM
RE: Introducing Repair Ships to POBs - by Its Raisu - 07-06-2020, 07:09 AM
RE: Introducing Repair Ships to POBs - by Typrop - 07-06-2020, 06:37 AM
RE: Introducing Repair Ships to POBs - by Groshyr - 07-06-2020, 06:47 AM
RE: Introducing Repair Ships to POBs - by Lemon - 07-06-2020, 06:49 AM
RE: Introducing Repair Ships to POBs - by sasapinjic - 07-06-2020, 06:56 AM
RE: Introducing Repair Ships to POBs - by LuckyOne - 07-06-2020, 06:59 AM
RE: Introducing Repair Ships to POBs - by Paddy. - 07-06-2020, 07:25 AM
RE: Introducing Repair Ships to POBs - by Its Raisu - 07-06-2020, 11:05 AM
RE: Introducing Repair Ships to POBs - by Binski - 07-06-2020, 11:28 AM
RE: Introducing Repair Ships to POBs - by Paddy. - 07-07-2020, 10:57 AM
RE: Introducing Repair Ships to POBs - by Saronsen - 07-06-2020, 07:41 AM
RE: Introducing Repair Ships to POBs - by Busy Miner - 07-07-2020, 10:24 AM
RE: Introducing Repair Ships to POBs - by Lucas - 07-07-2020, 11:29 AM
RE: Introducing Repair Ships to POBs - by Binski - 07-06-2020, 11:15 AM
RE: Introducing Repair Ships to POBs - by Lemon - 07-07-2020, 11:54 AM
RE: Introducing Repair Ships to POBs - by Lucas - 07-07-2020, 12:05 PM
RE: Introducing Repair Ships to POBs - by LuckyOne - 07-07-2020, 07:26 PM

  • View a Printable Version
  • Subscribe to this thread


Users browsing this thread:
1 Guest(s)



Powered By MyBB, © 2002-2025 MyBB Group. Theme © 2014 iAndrew & DiscoveryGC
  • Contact Us
  •  Lite mode
Linear Mode
Threaded Mode