Jump to content

calling npc deaths

No Response 1.2.0

Calling 'OnPlayerDeath' on 'GlitchedItemRetriever v1.2.0' took 282ms
Zombie[5135588] was killed by bear (Bear) at (675.63, 27.36, -1047.81)
Calling 'OnPlayerDeath' on 'GlitchedItemRetriever v1.2.0' took 287ms
Zombie[7869339] was killed by bear (Bear) at (-245.75, 23.25, 273.58)
Calling 'OnPlayerDeath' on 'GlitchedItemRetriever v1.2.0' took 283ms
Zombie[9080962] was killed by Eldyn[76561198167313806] at (1331.43, 13.43, -819.86)
Setting linear velocity of a kinematic body is not supported.
Setting angular velocity of a kinematic body is not supported.
Calling 'OnPlayerDeath' on 'GlitchedItemRetriever v1.2.0' took 287ms
Zombie[1508189] was killed by Eldyn[76561198167313806] at (1336.72, 13.30, -822.28)
Calling 'OnPlayerDeath' on 'GlitchedItemRetriever v1.2.0' took 285ms
Zombie[741547] was killed by Eldyn[76561198167313806] at (1338.95, 13.30, -823.51)
Calling 'OnPlayerDeath' on 'GlitchedItemRetriever v1.2.0' took 277ms
Zombie[5135483] was killed by Eldyn[76561198167313806] at (1338.35, 13.30, -822.87)
Calling 'OnPlayerDeath' on 'GlitchedItemRetriever v1.2.0' took 291ms

 

 

Causing too much lag with all the unnecessary calls for NPC deaths

Link to comment

Huh, I'll have a look at it. I wonder since I check for human players only.

Yes, the method itself is called for every humanoid Player (NPCs are players as well) but if it's bi NPC, I return from the function instantly.

A simple "if(player.NPC())" check should not take 200-300 ms 

 

I'll search for the problem here and come back to you soon

Link to comment

I found the cause in one of the last rust server updates but i'll need a little to find a workaround for that. I'll upload a new version once I've found a better way. thanks for reporting the problem

  • Love 1
Link to comment

I just uploaded version 1.3.0

could you maybe download this version and check if it eleminates the problem?

thanks a lot.

Link to comment

"GlitchedItemRetriever" (1.4.0) by 21mac21 (0.07s / 356 KB) - GlitchedItemRetriever.cs

 

Link to comment
1.3m

Downloads

Total number of downloads.

6.5k

Customers

Total customers served.

96.5k

Files Sold

Total number of files sold.

1.9m

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.