AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Force set_view (https://forums.alliedmods.net/showthread.php?t=335700)

JohnyS 12-26-2021 10:31

Force set_view
 
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


Shadows Adi 12-26-2021 11:01

Re: Force set_view
 
Quote:

Originally Posted by JohnyS (Post 2766954)
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.

JohnyS 12-26-2021 13:48

Re: Force set_view
 
I saw that Arkshine did this with his meta plugin https://github.com/Arkshine/AdminFreeLook integrating the afl_user_override_mode feature.

Shadows Adi 12-26-2021 14:12

Re: Force set_view
 
Quote:

Originally Posted by JohnyS (Post 2766977)
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.

Natsheh 12-28-2021 21:10

Re: Force set_view
 
You can hook Observer_SetMode using Orpheu and force using a specified observing mode.


All times are GMT -4. The time now is 11:31.

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