Jump to content

NPC loot

Closed 2.0.2



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

Share this comment


Link to comment

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

Edited by Adem

Share this comment


Link to comment
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

Share this comment


Link to comment

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)

Share this comment


Link to comment

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

Share this comment


Link to comment

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

Share this comment


Link to comment
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

Share this comment


Link to comment
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

Share this comment


Link to comment
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

Share this comment


Link to comment

1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

82k

Files Sold

Total number of files sold.

1.6m

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.