Calytic submitted a new resource:
AntiOfflineRaid - reduces damage done to your base depending on how long you are afk/offline
Read more about this resource...
AntiOfflineRaid
Moved
Total Downloads: 6,123 - First Release: Nov 17, 2015 - Last Update: Mar 1, 2018
- 5/5, 32 likes
-
Calytic Community Admin Community Mod
-
Calytic Community Admin Community Mod
Calytic updated AntiOfflineRaid with a new update entry:
0.0.2
-
Hey there.
I dont know if you included this or not as I am not available to test this on my server But I think you should include an exception.
What I mean is say for example you become unraidable after 10 minutes of being logged off, then if someone was to start raiding at 9 minutes then it should reset the timer, this way people don't blow down 1 wall and then cant do anything.
Im not sure how you would implement it, but for balancing and to stop people from just hitting it with a rock to reset the timer you could use a add function to the timer and make it proportionate to the damage so the damage of a rock only adds 1 second while the damage from a c4 adds 1 minute, as an example. -
I see a possible concept that will not work with this plugin, when groups work this out they will use alt accounts to do the building and then simply just move to main accounts for the rest of the wipe cycle to have it shown as offline the whole time for the bonus.
What have you got in place to counteract this ?
[DOUBLEPOST=1447730921][/DOUBLEPOST]My suggestion would be to use door toggle as a trigger. -
-
Hi, nice idea, nice plugin... thanks.. i testing in my server.. Feedback posted tommorow.. but.. small question...
Code:[11/18/2015 1:44:58 AM] [Oxide] 1:44 AM [Debug] at Oxide.Plugins.AntiOfflineRaid.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
Code:[11/18/2015 1:44:58 AM] [Oxide] 1:44 AM [Error] Failed to call hook 'OnPlayerConnected' on plugin 'AntiOfflineRaid v0.0.2' (InvalidCastException: Cannot cast from source type to destination type.)
-
With the alt account thing a suggestion is to allow better protection for the longer you have been logged in over the last X Hours. Eg. 48 hours
Logged in for 1 hour less protection than a person logged in for 8 hours
If someone logs in for 5 minutes their protection is very low and for a very short time.
EDIT : Suggest AFK doesn't count towards online time -
Also if they did have an alt account, then they would probably just have that left on for the set time to get the best protection and then log off after.
Having a read of the mod page my understanding now is that it can be raided for first 10 minutes, then becomes invunerable then over time you can start doing more damage.
Is this correct? -
There is already a mod that tracks online and afk times.
If that was utilised it would save doing it in this plugin.
The whole idea of tracking online time with no AFK added to it would be to stop the ALT account being used as just sitting in game.
If someone gets on for 5 minutes 1 day and the setting is for total time over X hours, it is up to the server admin to make it total online hours over X amount of time.
Eg. could be online for 8 hours over 120 hours means max protection or 8 hours over 48 hours means max protection. That can be left up to the admin. -
What I understood on your last comment was if someone played for only 5 minutes in the last 2 day then they get almost no protection, that part I was saying is very hard to do as you would need to log and track every player constantly for a 48 hour span (very resource intensive for a game).
how every if you where to base it on just there total time that would be more effective (as per what I believe you are saying in this comment).
I do also know about these player info DB mods as I have one or two currently installed in my own personal server. I have been running a NZ server for 3 months now, I just haven't advertised it here. -
Yeah that is what I mean. Only count active online time, then compare it to a number of total hours set by a variable set by admin for total hours.
Eg. 6 hours in 72 hours gets full while 3 in 72 hours gets half
Leaving the X variables on all settings up to the server admin means he/she can set it up however they want as well. -
-
It is like that now.
Just means the players who put the effort in time on your server get an advantage.
Nothing will be a perfect solution. -
-
Code:
8:55 AM [Error] Failed to call hook 'OnPlayerConnected' on plugin 'AntiOfflineRaid v0.0.2' (InvalidCastException: Cannot cast from source type to destination type.) 8:55 AM [Debug] at Oxide.Plugins.AntiOfflineRaid.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0 8:55 AM [Info] [Notifications] [FEAR] Andrea joined the server.
-
Hi. I have been testing this plugin, and cant get it to work on doors! Is there something im missing
-
-
Code:void OnPlayerConnected(BasePlayer player) { UpdateLastOnline(player); }
You can read about that here: -> Oxide API for Rust
To get this working we must work with "OnPlayerInit":
Just change the following Code beginning on line 251 in AntiOfflineRaid from:
Code:void OnPlayerConnected(BasePlayer player) { UpdateLastOnline(player); }
Code:void OnPlayerInit(BasePlayer player) { UpdateLastOnline(player); }
The other part "OnPlayerDisconnected" on line 246 should be fine and working with (BasePlayer player) and not be a problem. Just "OnPlayerConnected" should not work and that´s why you get this error message. -
Calytic Community Admin Community Mod
Calytic updated AntiOfflineRaid with a new update entry:
0.0.3
[DOUBLEPOST=1448090869][/DOUBLEPOST]Ugh, sorry for the delay. Wasn't watching the thread again. -
Is the buildings only binded to the player thats created it, so if 5 people make and house, it wont work `?
[DOUBLEPOST=1448100021][/DOUBLEPOST]Still wont work on doors! Im a noob in this, but walls worked fine. Any thought
[DOUBLEPOST=1448100398][/DOUBLEPOST]Seem like the doorframe works now. Thats new, but no doors