Raised This Month: $32 Target: $400
 8% 

CSGO Player Camera Control


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BOT Benson
Member
Join Date: Jun 2018
Location: Istanbul, Turkey
Old 09-23-2018 , 16:22   CSGO Player Camera Control
Reply With Quote #1

Is it possible to control the player's camera on csgo?
__________________
BOT Benson is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 09-23-2018 , 17:44   Re: CSGO Player Camera Control
Reply With Quote #2

This? https://sm.alliedmods.net/new-api/sd...ientViewEntity

It works on csgo.
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.


Last edited by Franc1sco; 09-23-2018 at 17:54.
Franc1sco is offline
Send a message via MSN to Franc1sco
mug1wara
AlliedModders Donor
Join Date: Jun 2018
Old 09-24-2018 , 00:50   Re: CSGO Player Camera Control
Reply With Quote #3

Believe there's a prop for that if I'm not wrong.

Also, you could use TeleportEntity.
mug1wara is offline
LenHard
Senior Member
Join Date: Jan 2016
Old 09-24-2018 , 02:14   Re: CSGO Player Camera Control
Reply With Quote #4

To Set: SetClientViewEntity(client, entity);
Reset: SetClientViewEntity(client, client);
__________________
LenHard is offline
BOT Benson
Member
Join Date: Jun 2018
Location: Istanbul, Turkey
Old 09-24-2018 , 14:07   Re: CSGO Player Camera Control
Reply With Quote #5

Quote:
Originally Posted by Franc1sco View Post
Quote:
Originally Posted by LenHard View Post
To Set: SetClientViewEntity(client, entity);
Reset: SetClientViewEntity(client, client);
think for the movie scene.I will try this.
__________________
BOT Benson is offline
BOT Benson
Member
Join Date: Jun 2018
Location: Istanbul, Turkey
Old 09-24-2018 , 14:08   Re: CSGO Player Camera Control
Reply With Quote #6

Quote:
Originally Posted by mug1wara View Post
Believe there's a prop for that if I'm not wrong.

Also, you could use TeleportEntity.
i don't think it will be good
__________________
BOT Benson is offline
BOT Benson
Member
Join Date: Jun 2018
Location: Istanbul, Turkey
Old 09-24-2018 , 15:47   Re: CSGO Player Camera Control
Reply With Quote #7

Quote:
Originally Posted by Franc1sco View Post
it doesn't work as I want.It needs to watch the object from its current location.
__________________
BOT Benson is offline
LenHard
Senior Member
Join Date: Jan 2016
Old 09-24-2018 , 18:12   Re: CSGO Player Camera Control
Reply With Quote #8

Quote:
Originally Posted by BOT Benson View Post
it doesn't work as I want.It needs to watch the object from its current location.
If it's a player you're trying to view, then you could change the client's observer modes

PHP Code:
SetEntProp(clientProp_Send"m_iObserverMode"4); // 4 is First person
SetEntPropEnt(clientProp_Send"m_hObserverTarget"target); 
If it's an entity, you could try mug1wara's approach of teleporting the client to the entity with certain angles to fit your description or using the SetClientViewEntity but fixing the angles of the entity (teleporting the entity).
__________________
LenHard is offline
BOT Benson
Member
Join Date: Jun 2018
Location: Istanbul, Turkey
Old 09-25-2018 , 07:05   Re: CSGO Player Camera Control
Reply With Quote #9

Quote:
Originally Posted by LenHard View Post
If it's a player you're trying to view, then you could change the client's observer modes

PHP Code:
SetEntProp(clientProp_Send"m_iObserverMode"4); // 4 is First person
SetEntPropEnt(clientProp_Send"m_hObserverTarget"target); 
If it's an entity, you could try mug1wara's approach of teleporting the client to the entity with certain angles to fit your description or using the SetClientViewEntity but fixing the angles of the entity (teleporting the entity).
I will try
__________________
BOT Benson is offline
BOT Benson
Member
Join Date: Jun 2018
Location: Istanbul, Turkey
Old 09-26-2018 , 13:06   Re: CSGO Player Camera Control
Reply With Quote #10

Quote:
Originally Posted by LenHard View Post
If it's a player you're trying to view, then you could change the client's observer modes

PHP Code:
SetEntProp(clientProp_Send"m_iObserverMode"4); // 4 is First person
SetEntPropEnt(clientProp_Send"m_hObserverTarget"target); 
If it's an entity, you could try mug1wara's approach of teleporting the client to the entity with certain angles to fit your description or using the SetClientViewEntity but fixing the angles of the entity (teleporting the entity).
the player must not watch another player. His eyes should follow him. Impossible ?
__________________
BOT Benson is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode