Jump to content

NPC loot

Closed 2.0.2

Swedish Chef


Swedish Chef

Posted (edited)

My npcs keep using default loot, i have set to 1, own loot, and deleted loot list, set min 0 max 0, (i dont want any loot on them)

https://pastebin.com/upaH4eRh

Edited by Swedish Chef
corrected mistake
Adem

Posted

Changed Status from Pending to Work in Progress

Adem

Posted (edited)

E

Edited by Adem
Adem

Posted

Yes, there is a problem. Fixed it. I will post an update in the next few hours

  • Like 1
Adem

Posted

Fixed in the latest update

Adem

Posted

Changed Status from Pending to Closed

Swedish Chef

Posted (edited)

deleted..see below

 

Edited by Swedish Chef
Swedish Chef

Posted (edited)

deleted see below

 

Edited by Swedish Chef
Swedish Chef

Posted (edited)

deleted see below

Edited by Swedish Chef
Swedish Chef

Posted (edited)

it took a bit of testing to find out what was actually going on.

i have own loot selected

the npcs have the wrong loot, untill the vehicle they come from is destroyed, then they have correct loot

Edited by Swedish Chef
Swedish Chef

Posted

still the same with 2.0.4

fine with default config, 

but with this config, npcs have the wrong loot until vehicle is destroyed 

Adem

Posted (edited)

Strange.  Is everything working for me?. Are you using some kind of plugin to configure loot in the NPC?

Edited by Adem
Swedish Chef

Posted (edited)

5 hours ago, Adem said:

Are you using some kind of plugin to configure loot in the NPC?

no

its a fresh wiped server. +server.seed 365874 +server.worldsize 1500

only 2 plugins, NpcSpawn and Convoy

i just wiped the server again, used this config, and can replicate it every single time

shoot the convoy, its stops, i kill a guy, check his loot, its wrong, blow up his vehicle, kill another guy from the same vehicle, its now right

edit: can you open this ticket again please

Convoy.json

Edited by Swedish Chef
Swedish Chef

Posted

video:

https://youtu.be/e88kQYQYYHQ

you can see killed a guy first, checked loot, its wrong (defaultloot wrong), 

threw 4 c4, the blast killed a guy, then destroyed the vehicle

killed a guy (ownloot correct)

checked the guy who died in the blast (defaultloot wrong, because he died before the vehicle was destroyed)

Swedish Chef

Posted

6 hours ago, Adem said:

image.png.c06a520a6e805b28b861d2ca077f9f55.pngimage.png.d1c9559542bc9800ab5ada6e448d9988.png

sorry i cant see these?

Swedish Chef

Posted (edited)

in here

void OnCorpsePopulate(BasePlayer entity, NPCPlayerCorpse corpse)

this condition is not met, and so not placing correct loot

if (entity is ScientistNPC && (convoyVehicles.Any(x => x.scientists.Contains(entity) || x.roamNpc.Contains(entity) || freeConvoyNpc.Contains(entity))))

i can use a

Puts("here");

underneath it, and it does not show unless i kill the vehicle the npc came from

Edited by Swedish Chef
Swedish Chef

Posted (edited)

to be clear..

Capture.thumb.JPG.378c4cef76f3a0855d4245a7b69822b3.JPG

outputs nothing for the first kill in the video https://youtu.be/e88kQYQYYHQ

(17:14:42) | [Convoy] freeConvoyNpc for the second kill (because he was killed after the vehicle was destroyed)

and nothing for the third (because he was killed before the vehicle was destroyed)

 

Edited by Swedish Chef
Adem

Posted

Changed Status from Closed to Work in Progress

Adem

Posted (edited)

11 hours ago, Swedish Chef said:

video:

https://youtu.be/e88kQYQYYHQ

you can see killed a guy first, checked loot, its wrong (defaultloot wrong), 

threw 4 c4, the blast killed a guy, then destroyed the vehicle

killed a guy (ownloot correct)

checked the guy who died in the blast (defaultloot wrong, because he died before the vehicle was destroyed)

Updated. Check out the new version. The blinking of the map was also removed

Edited by Adem
Swedish Chef

Posted (edited)

1 hour ago, Adem said:

Updated. Check out the new version. The blinking of the map was also removed

nice, npc loot is behaving correctly, thanks very much for sorting this. 

the map is good too. i think im still undecided on the custom marker or closeonly one thats current. i personally like the closeonly one, but i bet players will want the custom marker. 

while i was testing it, this happened

https://youtu.be/KfJHO413P4M

the whole crate dissapeared, i dont know why, (same setup as before, fresh server,no plugins)

it happened twice, both were something to do with flying away , then coming back, there were a bunch of nullreference there as well.  i was restarting a LOT, and it only happened 2 times, i dont think its going to be an issue in-game, but if someone else mentions something then keep it in mind.. the config i used while it happened is attached

cheers, thanks again, please close 

Convoy.json

Edited by Swedish Chef
Adem

Posted

19 minutes ago, Swedish Chef said:

nice, npc loot is behaving correctly, thanks very much for sorting this. 

the map is good too. i think im still undecided on the custom marker or closeonly one thats current. i personally like the closeonly one, but i bet players will want the custom marker. 

while i was testing it, this happened

https://youtu.be/KfJHO413P4M

the whole crate dissapeared, i dont know why, (same setup as before, fresh server,no plugins)

it happened twice, both were something to do with flying away , then coming back, there were a bunch of nullreference there as well.  i was restarting a LOT, and it only happened 2 times, i dont think its going to be an issue in-game, but if someone else mentions something then keep it in mind.. the config i used while it happened is attached

cheers, thanks again, please close 

Convoy.json 22.97 kB · 0 downloads

Uploaded a new version. The disappearing problem should go away


1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.2k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • 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.