16.07.2014, 16:30
(
Last edited by Corekt; 16/07/2014 at 05:25 PM.
)
Quote:
Note: I didn't read the code but you don't specify this in any part of your thread.
The only problem with automatic turrets is the LoS. As I said I didn't read the code and you don't mention it on your thread, do the turrets have a LoS? Will they still aim and kill you if you hide behind a wall, vehicle or anything like it that would obstruct the vision and bullet impacts? The script is great but without a LoS solution it's practically useless on true DM/TDM enviroments. This is also the reason of why the engineer turrets on my TF GM are manual and not automated, while there are some ways to check for LoS it not only requires MapAndreas but it would also be uneffective in custom maps or under the map maps. |
I could probably achieve turret LoS without MapAndreas if there's a way to check if a player has a line of sight for a 3D text label with testlos on. As far as I know there isn't. Maybe I'll suggest such a function for the Streamer Plugin.

Edit: Quick bug fix. I mistyped a couple of variables in SetTurretTextOffset, which are now fixed. Pastebin has been updated. Please update your include if you intend to use that function.