Raised This Month: $51 Target: $400
 12% 

Force set_view


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JohnyS
Junior Member
Join Date: Feb 2019
Old 12-26-2021 , 10:31   Force set_view
Reply With Quote #1

Greetings brothers.
I want to ask if there is a way to force set_view using the following const?

Code:
#if AMXX_VERSION_NUM < 183

#define OBS_NONE                        0
#define OBS_CHASE_LOCKED                1           // Locked Chase Cam
#define OBS_CHASE_FREE                  2           // Free Chase Cam
#define OBS_ROAMING                     3           // Free Look
#define OBS_IN_EYE                      4           // First Person
#define OBS_MAP_FREE                    5           // Free Overview
#define OBS_MAP_CHASE                   6           // Chase Overview

#endif
JohnyS is offline
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 12-26-2021 , 11:01   Re: Force set_view
Reply With Quote #2

Quote:
Originally Posted by JohnyS View Post
Greetings brothers.
I want to ask if there is a way to force set_view using the following const?
No.

http://www.amxmodx.org/api/engine/set_view
http://www.amxmodx.org/api/engine_co...et-view-native .

Those constants are for pev only and can be forced by cvar: mp_forcecamera.
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]
Shadows Adi is offline
JohnyS
Junior Member
Join Date: Feb 2019
Old 12-26-2021 , 13:48   Re: Force set_view
Reply With Quote #3

I saw that Arkshine did this with his meta plugin https://github.com/Arkshine/AdminFreeLook integrating the afl_user_override_mode feature.
JohnyS is offline
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 12-26-2021 , 14:12   Re: Force set_view
Reply With Quote #4

Quote:
Originally Posted by JohnyS View Post
I saw that Arkshine did this with his meta plugin https://github.com/Arkshine/AdminFreeLook integrating the afl_user_override_mode feature.
That is a module that has nothing to do with your question about using some constants with a native.
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]
Shadows Adi is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 12-28-2021 , 21:10   Re: Force set_view
Reply With Quote #5

You can hook Observer_SetMode using Orpheu and force using a specified observing mode.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Reply



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 20:21.


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