[L4D]Unlock screen freeze
2 Attachment(s)
I am really excited. This is my first plugin. To be honest, I don’t understand the program at all. I just want to try to complete it after reading countless works on the forum. If there are any bugs, I may not be able to fix it, I hope someone Can improve it on this basis.
Title: Unlock screen freeze Description After the rescue was initiated, all players failed. When restarting, the perspective of the bystander was permanently frozen.This is an official bug that has existed for more than ten years. Especially on 4+ servers, many bystanders have this trouble BUG request https://forums.alliedmods.net/showthread.php?t=335392 CVAR/Command list "l4d_REC_Swich", "1" "Plug-in switch.0:off 1:on" Changelog Maps with known bugs Code:
l4d_hospital04_interior |
Re: [L4D]Unlock screen freeze
Congrats on your first plugin!
Some notes: - SMX not required in first post since it compiles fine on the forum. - Using old syntax, suggest converting to new and learning that instead. - You can put "#pragma newdecls required" at the top of the source to require new syntax. - StrContains is inefficient for something like this, better to use strcmp or strncmp. For example: PHP Code:
- Delete the "FCVAR_PLUGIN" parts. Also the warning: symbol "GetMaxClients" is marked as deprecated: Use MaxClients variable instead. - So switch GetMaxClients() with MaxClients as the warning says. - When you do that change the for loop to start from "MaxClients + 1". - It might be faster to use "FindEntityByClassname" for "point_viewcontrol*" and "point_deathfall_camera" instead of looping every entity. Would have to benchmark and test but I heard this is faster than looping all ents. Edit: I think it's possible to fix this issue without deleting the entity or completely removing the effect. I'll have a look in a few days when I have time. |
Re: [L4D]Unlock screen freeze
Quote:
|
Re: [L4D]Unlock screen freeze
This bug also happens in l4d2. I will test it,
if your code works, I should add to my l4dinfectedbots. Good job |
Re: [L4D]Unlock screen freeze
2 Attachment(s)
l4d2 version.
|
Re: [L4D]Unlock screen freeze
Quote:
Yes. Your plug-in allows players to enter the team of infected people will have this problem. A more precise way is to use hammerid. But currently I can't write the program, but I will use stripper:source to control it perfectly. |
Re: [L4D]Unlock screen freeze
This problem also often bothers me on the l4d2 server , is there a solution to the problem without deleting the point_ entity ? what provokes this bug? can the number of players exceed 4 people?
|
Re: [L4D]Unlock screen freeze
Quote:
Maybe this is somewhat you want. Unfortunately I didn't notice that some other point_viewcontrol* lead to the same issue, plus not sure how to make the solution globally applicable. Would be nice if anyone can provide some good ideas. |
Re: [L4D]Unlock screen freeze
Only specific maps will have this bug, just filter out the hummerid of these map cameras to solve the globally affected problem, so if someone knows how to write it, you can tell me, and I will update
|
Re: [L4D]Unlock screen freeze
I think it's not really needed to check the map, since every point_viewcontrol, point_deathfall_camera consistently raise view-locks on spectators in L4D1.
Moreover, this issue also happens on campaign intros according to Harry, so you might have to add more maps or make the deletion applied every map. (then better via Stripper) I've updated the plugin linked above, which doesn't delete the entities and should take care of all intros / deathfall cameras. The following function can be used to reset players' views. PHP Code:
|
All times are GMT -4. The time now is 00:24. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.