1
- #pragma semicolon 1
1
+ #pragma semicolon 1
2
2
3
3
#define DEBUG
4
4
5
5
#define PLUGIN_AUTHOR " BattlefieldDuck"
6
- #define PLUGIN_VERSION " 1.2 "
6
+ #define PLUGIN_VERSION " 1.3 "
7
7
8
8
#include <sourcemod>
9
9
#include <sdktools>
@@ -211,6 +211,7 @@ public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3
211
211
{
212
212
SetClientViewEntity (client , point );
213
213
214
+ camera = EntRefToEntIndex (g_iCameraList [owner ][g_iInConsoleID [client ]][0 ]);
214
215
PrintCenterText (client , HUD_TEXT , owner , g_iInConsoleID [client ]+ 1 , GetCameraName (camera ));
215
216
}
216
217
else
@@ -256,6 +257,7 @@ public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3
256
257
{
257
258
SetClientViewEntity (client , point );
258
259
260
+ camera = EntRefToEntIndex (g_iCameraList [owner ][g_iInConsoleID [client ]][0 ]);
259
261
PrintCenterText (client , HUD_TEXT , owner , g_iInConsoleID [client ]+ 1 , GetCameraName (camera ));
260
262
}
261
263
else
@@ -644,11 +646,13 @@ bool CanSeeClient(int client, int camera)
644
646
if (entity > 0 && entity <= MaxClients )
645
647
{
646
648
CloseHandle (trace );
649
+
647
650
return true ;
648
651
}
649
652
}
650
653
651
654
CloseHandle (trace );
655
+
652
656
return false ;
653
657
}
654
658
@@ -736,6 +740,7 @@ bool IsCameraActivated(int client, int camera)
736
740
return true ;
737
741
}
738
742
}
743
+
739
744
return false ;
740
745
}
741
746
@@ -751,6 +756,7 @@ bool SetCameraActivated(int client, int camera, int point)
751
756
return true ;
752
757
}
753
758
}
759
+
754
760
return false ;
755
761
}
756
762
0 commit comments