Open smilz0 opened 10 months ago
I am not familiar with vscript, but I think molotov throws are done with a constant velocity, so the landing location of a molotov throw should be possible to calculate using the angle/gravity (and maybe a vscript equivalent of a trace?). If so, and you have an array with the xyz location of all gascans (location stored when entity spawned then updated by timer), then you can check the distance/height of the molotov landing location to each gascan location, and if too close, then abort the throw.
Don't throw molotovs if there are gascans nearby and scavenge is active.