SirPlease / L4D2-Competitive-Rework

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

Parish Map 2 Weapon Asymmetry #60

Closed honkthebonk2 closed 5 years ago

honkthebonk2 commented 5 years ago

While playing on our modified version of zonemod, I noticed a 100% consistent issue that happens on map 2 of the Parish, where this table: 1 will only have one weapon spawn for the first round, 2 but have two weapon spawns for the second round. I realize this isn't on your servers nor is it the most up-to-date version of zonemod, but when devilesk ran a diff between our version and 1.9.4 I didn't see any changes that would fix this.

devilesk commented 5 years ago

It looks like it's these entities that are removing a weapon spawn. Don't know why it only happens for the first round though. (I guess OnMapSpawn only happens once for the first round?)

{
"origin" "-6836 -5520 -247"
"targetname" "case_weapon_spawn"
"classname" "logic_case"
"hammerid" "1514758"
"OnCase01" "weapon_spawn_shotgunKill0-1"
"OnCase02" "weapon_spawn_rifleKill0-1"
}{
"origin" "-6852 -5520 -247"
"spawnflags" "1"
"classname" "logic_auto"
"hammerid" "1514800"
"OnMapSpawn" "case_weapon_spawnPickRandom0-1"
}

Adding the following stripper rule to c5m2_park.cfg fixes it though:

; -- Prevent a random weapon spawn removal that only affects the first round
filter:
{
    "targetname" "case_weapon_spawn"
}