idk its pretty weird
Immersive Raids
-
-
I figured it out. You have to use botOwner.gameObject.DestroyAllChildren or UnityEngine.Object.Destroy(botOwner.gameObject) to effectively remove the equipped weapon. The trace will complain about destroying a player body before properly disposing of it. There is a dispose method but it didn't seem to help with the complaints when I tried. Either way I'm fairly certain GC will clean up anything left over in memory, if a dead bot even has anything.
Now to figure out how to check the last aggressor or killed by data before deciding which bodies to clean up.
-
destroying bots causes lots of issues, I just disable them so they aren't visible so I'll just see if I can trace the object from the bot and disable that too
-
Oh okay, I only tested it briefly. I came across LootItem.RemoveLootItem and RagdollClass.ClearWeapon which seemed potentially useful but I was unable to make use of them so far.
Edit: Didn't make any progress in that area. Came across so BotsClass.Remove. Seems like that is the trick but I'm too dumb to figure it out I guess. On the bright side I have not run into any issues yet, and I realized it is pretty easy to track corpse lifetime and have it clean up more frequently.
if (Time.time - botOwner.Memory.LastTimeHit >= 180f) would include any bot that has not been hit in the last 3 minutes, for example.
Currently experimenting with a 10 minute clean-up cycle (separated the airdrop event) with a range of 30m and LastTimeHit at 3 minutes, seems to be working as intended.I'm thinking I can also use Memory.GoalEnemy to check if the bot was last looking at the player when it died, if I can figure out how to check for players.
Edit#2: Looks like the the end-raid cleanup outputs an error for what looks like each destroyed bot object, so yeah maybe not ideal. I see what you mean by lots of issues. Will have to settle with deactivate for now.
-
Got a player check working. I know this is a support thread and you may not be personally interested, but I doubt I am the only one who would appreciate this functionality.
bot cleanup - Pastebin.comPastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.pastebin.comNoticed some false positives if I was recently engaged with a bot who died to another bot, but if you are not near the engagement it works. In this case a false player detection only results in the corpse lasting a little longer. More or less does what I want for personal use, which was to clean loot I did not feel I earned. Any performance gain is a cherry on top, but it feels mostly negligible on my end, probably due to a memory bottleneck.
-
not really an issue, but time flips randomly each raid from 24 to 12 hour time, is there a fix for that? it doesn't break anything (yet) just makes it confusing to read sometimes
-
shit so that wasn't just a one-off, I haven't had it happen to me yet tho
-
try entering a raid without going to the last ready screen, past the insurance screen, I know that caused previous issues with time so maybe that's whats causing it again
-
I forgot if this has been reported yet, but after one raid with the correctly decreased energy/hydration rate, it reverts back to normal decay.
-
Is it purely visual or is there a noticeable increase in decay?
-
noticeable. normally (when working correctly) i'll only go below 90 each if i stay in raid for a while, with the bug/conflict/whatever I go below 80 in a matter of 8-10 minutes.
-
piss
-
was in a customs raid, moseying on through BP depot, and a lockdown occurred, so I went to loot at crossroads (the wood crates, 1 being in the extract) and mid looting it extracted me? is the lockdown set for 15 minutes or 15 seconds? cause it seems like it only lasted for 15 seconds.
-
From my testing, the lockdown only prevents the countdown from appearing on the HUD. you are still able to extract if you still know the location
-
15 minutes, not sure what caused that issue as I cant think of any way for the patches to cause something like that
-
~~~
-
15 minutes, not sure what caused that issue as I cant think of any way for the patches to cause something like that
Would "Refringe Open Extracts" possibly cause issues?
-
Maybe, I'll take a peak back at my patches, might have left in some test code if I were to guess
-
i can also confirm that i extracted during a lockdown, was just gonna sit in extract and wait it out but i extracted lol
-
yeah I'm getting the same thing, BSG might have moved it to another method with 0.13 so I guess I'll just have to hunt it down
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!