shqke / sourcetvsupport

Fixes broadcasting/demo recording features in Left 4 Dead
GNU General Public License v3.0
47 stars 8 forks source link

[L4D2] Weapon and crosshair #5

Closed lunatixxx closed 3 years ago

lunatixxx commented 3 years ago

At the finale map after the first team escaped in the vehicle, for the second team when i was in FPS view the crosshair and the weapon totally disappeared. I'm guessing this is what caused it (the escape), i also did some alt tab but i don't think this is related.

shqke commented 3 years ago

Yes, so the camera had set view properties of all players on the server during finale sequence, and on team swap only non-spectator players had their view reset. Invoking input "Disable" on all camera related entities would fix this behavior (kept it as early as on event round_start_pre_entity to prevent map logic be involved).

I've added a source code for sourcepawn plugin to get rid of bugs that you would experience (mentioned and not).

I'll think of a better way of distrubution when (and if) there will be more to think on. Right now it's located at extra/camera_round_reset.sp file in this repo (scripting/camera_round_reset.sp in artifacts).

lunatixxx commented 3 years ago

So this will fix it when watching live sourcetv, but will not on demos ? I don't think demos loads plugins of the server.

shqke commented 3 years ago

Plugin will fix bugs mentioned by you on newly recorded demo files, on a broadcast and if you're just spectating (on a server with said plugin active),

Broadcast and demo footage are coming from the same source ("point of view" of SourceTV bot).

lunatixxx commented 3 years ago

I only tested on one demo but the plugin seems to have fixed it.

shqke commented 3 years ago

Glad it helped.

shqke commented 3 years ago

Just a heads up. Moved an optional plugin into its own repository.