JKGDevs / JediKnightGalaxies

Jedi Knight Galaxies (JKG) is a multiplayer shooter with role playing elements, played out in the Star Wars universe. The project is a full conversion game modification for Jedi Knight: Jedi Academy.
https://www.jkgalaxies.net/
GNU General Public License v2.0
34 stars 12 forks source link

Spawned Vendors Don't Refresh Shops #305

Open DarthFutuza opened 5 years ago

DarthFutuza commented 5 years ago

Vendors that are entities as part of the map behave normally; however, vendors that are spawned by an admin through the console or by the jkg_minVendors cvar once spawned do not refresh their shops.

eg: npc spawn vendor vendor_grenades grenadevendor

DarthFutuza commented 5 years ago

This is caused by jkg_trade.cpp's JKG_MakeNPCVendor() function which does not yet hook up to the JKG_target_vendor_think() function to provide continual shop item refreshes.