fredi-68 / luswca

Remember to put full project title here
GNU General Public License v3.0
0 stars 0 forks source link

Quickbuild Loot Table Indices #54

Closed fredi-68 closed 4 years ago

fredi-68 commented 5 years ago

Having finished the loot table rewrite, I've been looking at implementing loot drops for rebuilds. I've checked against footage of the original game and the original server used to drop items and powerups upon finishing a rebuild for the building player. However, after experimenting a bit and consulting the client database, it turns out that neither is there a loot matrix index specified by the rebuild component OR the level file, nor do rebuilds usually specify a destructible component. So how are we supposed to know which loot table to drop from? It is possible that the server used some sort of default to fall back on in case the rebuild doesn't specify a destructible component or level file override. However, I currently have no idea what this default was set to so implementing this feature is currently impossible. It is weird though how this very specific piece of information isn't in the database when literally everything else that isn't needed by the client is there (even server side scripts are located in the client files). I bet I am missing something really obvious again but the only way to figure this out is to investigate.

fredi-68 commented 4 years ago

Found them, they are in the client database under activities. Apparently QBs are identified using their activity ID and not their LOT. Should probably just remove the mission hook for QBs using LOTs entirely and just use activityID from now on

fredi-68 commented 4 years ago

Implemented