View Single Post
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 12-08-2018 , 07:03   Re: Setting player's camera
Reply With Quote #4

You have to move code of your "OnGameFrame" to a callback of these 3 SDKs. All SDKs shoud point to the same callback. You can see using example in this plugin.
Executing code on each game frame is a very CPU expensive operation.

As about your second code, here is a description of all "point_viewcontrol_survivor" properties:
https://developer.valvesoftware.com/...ntrol_survivor
You can try something, like "SetLocalOrigin".

Also, isn't
Code:
TeleportEntity(iEntity, Float:{ -200.0, 0.0, 70.0}, Float:{ 0.0, 0.0, 0.0}, NULL_VECTOR);
in your code what you was looking for?
X = -200.0, Y = 0.0, Z = 70.0 ? Try change Y.

Also, some discussion and almost finished L4D1 port of Lux's plugin can be found here. Maybe it can help you somehow.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 12-08-2018 at 07:06.
Dragokas is offline