1.0: Uploaded Mod
1.01: I'll upload that alternate version later I guess. Been trying to add some
if Network and Network:is_client() then
lines in the mod so it doesn't access violation crash your game when you join other peoples games as a client when you have this mod installed (it was crashing cause it was apparently trying to spawn gas even when you aren't able to spawn gas as a client I guess, lol).
1.1: Sorry for another update in the same day, apparently the game really didn't like my distance checks at all for determining whether a marshal can spawn gas on a client and it just caused the host to just access violation crash, which made it not very playable at all. So for now I just made them spawn every so often as long as a marshal is alive on the map & targeting someone since that doesn't cause it to crash and in turn increased the intervals/delay for new tear gas to spawn now that the distance check is gone. Hopefully there are no crashes anymore.
(I'll keep the older version up in case of the good ol' "works fine on my machine(tm)" though)
(also added the alternate version where they will on average only gas every 2 ~ 4 hits, based on rng)
1.2: You know something? Call me crazy, but I swear that the game is giving me an extra hit per bullet because of some line I put in 1.1. Cause I'm constantly getting instances where I get hit even though I ran into cover and hid 5 secs ago, even as host. I'm pretty sure this isn't related to that accuracy bug in vanilla. Not sure if it's cause of skill issue when I coded this or if it's just actually some weird interaction with this mod with the Better Cops Weapon usage or Full Speed Swarm mods. But either way for now I'm gonna put a bandaid partial fix on this till I figure it out why this happens or someone else comes along and tells me what is going on (or if nothing is actually going on at all). Cause that type of shit is giving me BF3 PTSD flashbacks of the bullshit 10 tickrate clientsided hit detection there where I got killed constantly after running into cover, lmao.