SirPlease / L4D2-Competitive-Rework

Just refreshing and optimizing the core files a bit, eh?
GNU General Public License v3.0
242 stars 131 forks source link

Item tracking module #330

Closed lunatixxx closed 3 years ago

lunatixxx commented 3 years ago

Something is wrong with it for me at least, there are no items spawns outside of saferoom already on first round when i activate it even with unlimited items. I have the impression that it kills items before the first round is starting and considering that it did not add any in the array to track well nothing is spawning.

enable_itemtracking 1 itemtracking_savespawns 1 itemtracking_mapspecific 0 pills_limit -1 pipebomb_limit -1 molotov_limit -1 vomitjar_limit -1

Derpduck commented 3 years ago

Remove the following section from your global_filters.cfg file https://github.com/SirPlease/L4D2-Competitive-Rework/blob/master/cfg/stripper/zonemod/global_filters.cfg#L1100

lunatixxx commented 3 years ago

I don't have these lines this is something else.

lunatixxx commented 3 years ago

By the way there are no errors.

Why the "EnumAndElimSpawns" is called at the end of the first round, is it not supposed to be at the start of the round?

if(!g_bIsRound1Over) { // Round1 if(IsModuleEnabled()) { EnumAndElimSpawns(); } }

Then just after the plugin ask to generate stored items spawns if this is not the round end event while there are still no items in the list (at this stage i don't think it can differenciate first and second round), is it not the reason there are no items spawned ?

else { // Round2 if(IsModuleEnabled()) { if(UseConsistentSpawns()) { GenerateStoredSpawns(); } else { EnumAndElimSpawns(); } } }

Maybe i'm wrong but something seems weird, also how can you limit items on the map if you only check it at the end of the round ? They can't be equal for the second team or they will not be limited as intended.

lunatixxx commented 3 years ago

Was basically the same problem that i reported for witch_and_tankifier, you're forced to load a config otherwise it does not find the mapinfo even if i had the defaut config folders.