Jump to content

IIIaKa

Creator
  • Posts

    2,532
  • Joined

  • Last visited

  • Days Won

    10

Everything posted by IIIaKa

  1. For clarification. Does the damage apply to everyone? Or only to friends? Because the plugin allows damage to friends.
  2. Hello, thank you for reaching out. I am currently a bit busy with updating other plugins. As soon as I am free, I will check the plugin on Carbon.
  3. Changed Status from Pending to Work in Progress
  4. IIIaKa

    Fuel bar

    If the issue persists, feel free to report it in this thread.
  5. IIIaKa

    Fuel bar

    Changed Status from Pending to Not a Bug
  6. IIIaKa

    Twigs Decay

    You are welcome! You need to set the timer so that it can activate. You can adjust the damage value as you like within the range of 0 to 10, inclusive. It doesn’t have to be an integer; you can specify non-integer values, such as 0.123456789. However, if you want to set a prolonged decay, the parameter responsible for disabling repair should be enabled. This is done to avoid compilation errors. It is simply recommended to make a backup of your config file before updating.
  7. IIIaKa

    Fuel bar

    @BetterDeadThanZed Hi! Could you please send your configuration?
  8. IIIaKa

    Twigs Decay

    Hello! This plugin does not depend on any Convars. If the plugin is installed, it will enable automatic decay for buildings of the Twigs grade. You can also set the decay time and damage.
  9. IIIaKa

    Decay does not work.

    @SlayersRust The config is fine. Just to clarify, are you saying that the decay of structures in the Twigs grade is not working at all? Please check if the TwigsDecay plugin is properly installed and loaded. Could you also provide a list of installed plugins?
  10. IIIaKa

    Decay does not work.

    @SlayersRust Hi, can you please send your config file? This plugin enables decay only for building blocks with Twig grade, and it doesn't matter whether there is a TC or not.
  11. IIIaKa

    Decay does not work.

    By @SlayersRust
  12. Unfortunately, there are even fewer countries supported there than on PayPal ;(
  13. Hello, I would like to know if there are plans to add more withdrawal methods besides PayPal? Unfortunately, not everyone can create an account there.
  14. IIIaKa

    API

    @Razor I suggest replacing the current OnCupboardAuthorize, OnCupboardDeauthorize, OnCupboardClearList hooks with this: private void OnCupboardAuthorize(BuildingPrivlidge privilege, BasePlayer player) { if (Convert.ToBoolean(RaidableBases?.CallHook("EventTerritory", privilege.transform.position))) return; NextTick(() => { if (privilege != null && player != null && privilege.IsAuthed(player)) { if (!pcdData.tcData.ContainsKey(player.userID)) pcdData.tcData.Add(player.userID, new List<ulong>()); if (!pcdData.tcData[player.userID].Contains(privilege.net.ID.Value)) { pcdData.tcData[player.userID].Add(privilege.net.ID.Value); Interface.Oxide.CallHook("OnRandomRaidCupboardAuthorized", privilege.transform.position, player); } SaveData(); } }); } private void OnCupboardDeauthorize(BuildingPrivlidge privilege, BasePlayer player) { var pos = privilege.transform.position; var privID = privilege.net.ID.Value; NextTick(() => { if (player != null && pcdData.tcData.ContainsKey(player.userID) && (privilege == null || !privilege.IsAuthed(player))) { if (pcdData.tcData[player.userID].Contains(privID)) { pcdData.tcData[player.userID].Remove(privID); Interface.Oxide.CallHook("OnRandomRaidCupboardDeauthorized", pos, player); SaveData(); } } }); } private void OnCupboardClearList(BuildingPrivlidge privilege, BasePlayer player) { var pos = privilege.transform.position; var privID = privilege.net.ID.Value; NextTick(() => { foreach (var kvp in pcdData.tcData) { if (kvp.Value.Contains(privID) && !privilege.IsAuthed(kvp.Key)) { kvp.Value.Remove(privID); Interface.Oxide.CallHook("OnRandomRaidCupboardCleared", pos, kvp.Key); } } SaveData(); }); }
  15. IIIaKa

    API

    @Razor Is it possible to add another object hook, when attempting select players for a raid, to be able to prevent player to be raided?
  16. Hello, in the next update (0.1.6), I have fixed a bug where players couldn't shoot down helicopters. Work with Random Raids (you will need to manually add 3 hooks). Helicopters that belong to the Random Raids plugin will not take damage from other players. Vehicles, experimentally disabled damage only from players for privatized TCs. There is a possibility of griefing, where players can aggro NPCs and hide behind other players' TCs, thus causing them to break.
  17. IIIaKa

    Raid ID

    Thank you!
  18. IIIaKa

    Raid ID

    @nivex 2. I probably didn't express myself correctly. These are very rare cases, but they can still happen. For example, your plugin is installed on the server, several bases are spawned, and the server admin decides to add my plugin. After loading the plugin, my plugin won't know about the already existing bases because the OnRaidableBaseStarted hook was triggered before my plugin was added to the server. Or, for example, an update for my plugin is released, and the server admin updates the plugin, resulting in my plugin again not knowing about the existing bases. 3. It's a pity that there is no programmatic way to implement this. 5. It's a pity, as the userID is initially stored as a ulong type and no additional calculations are required. 9. In my PvE plugin to prevent griefing, everything is privatized, and therefore, targeting of all traps is disabled. But for raid bases, I want to enable them only for raiders. I have to constantly check the position of these traps in the CanBeTargeted hooks, but if you add a skinID to them, it would allow me to avoid position checks in many cases (for traps not from raid bases). object CanBeTargeted(BasePlayer player, FlameTurret flameTurret) { if (player.userID.IsSteamId()) { if (TryGetRaidBase(flameTurret.transform.position, out var rbData) && rbData.CanInteractWithRaid(player)) return null; return false; } return null; } //If traps have a skin ID object CanBeTargeted(BasePlayer player, FlameTurret flameTurret) { if (player.userID.IsSteamId()) { if (flameTurret.skinID == _rbSkinID && TryGetRaidBase(flameTurret.transform.position, out var rbData) && rbData.CanInteractWithRaid(player)) return null; return false; } return null; } Thank you!
  19. IIIaKa

    Raid ID

    @nivex 2. The OnRaidableBaseStarted hook is triggered when a base appears, and my plugin is loaded. However, if a base appeared before my plugin was loaded, then my plugin will not handle OnRaidableBaseStarted. So, are there ways to get the list of bases? 3. I mean to do this programmly through a plugin. In my PVE plugin, there is a system of "privatization" to prevent griefing. Currently, when a player enters a free base, they are offered with clickable UI to buy the base. The purchase happens after deducting funds, and then using covalence.Server.Command($"rbevent setowner {playerID}");. The problem is that I can't determine if the base has been successfully assigned to the player or not. That's why I was asking about the hook in point 1. 5. Can’t we just add an overloaded hook with ulong type alongside? 6. I just saw that in your plugin, the UI updates the loot count when a container destroyed. If there's a way to pass the base position and loot amount through a hook, it would help avoid unnecessary calculations and be very convenient. Also, if possible, please add the loot amount to the OnRaidableBaseStarted hook. 8. I noticed that the base's despawnDateTime can change during time. Is there a hook for that as well? 9. Is it posible to set skinID for GunTrap, FlameTurret and SamSite?
  20. IIIaKa

    Suggestion

    I agree, for PvP servers this would be unnecessary. But I think it would be perfect for PvE. I have a PvE server, and there are super newbies playing there. And if this can be implemented, then this kind of 'hint' would be very useful for them.
  21. IIIaKa

    Suggestion

    @nivex Hi, are there any updates regarding this?
  22. IIIaKa

    Raid ID

    @nivex Hi, are there any updates regarding this?

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
3.3m
Total downloads
Customers
12.4k
Customers served
Files Sold
176k
Total sales
Payments
3.8m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.