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

Permanent Field of View change?


Post New Thread Reply   
 
Thread Tools Display Modes
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 02-19-2021 , 11:22   Re: Permanent Field of View change?
Reply With Quote #11

Quote:
Originally Posted by OciXCrom View Post
The "pev" function returns a value. What you need is "set_pev". Your line of code has no effect.

If that doesn't work, pretty sure SetFOV is supported in HL.

Code:
static iSetFOV if(!iSetFov) {     iSetFov = get_user_msgid("SetFOV") } message_begin(MSG_ONE, iSetFov, _, id) write_byte(get_pcvar_num(g_pCvarFov)) message_end()
how it would work without fov?) not works..

Last edited by ZASTRELIS; 02-19-2021 at 11:22.
ZASTRELIS is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-19-2021 , 13:25   Re: Permanent Field of View change?
Reply With Quote #12

Did you try using the code I gave you?...
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 02-19-2021 , 17:54   Re: Permanent Field of View change?
Reply With Quote #13

Quote:
Originally Posted by ZASTRELIS View Post
not works..
Use default_fov in console.
__________________
DJEarthQuake is offline
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 02-20-2021 , 07:31   Re: Permanent Field of View change?
Reply With Quote #14

Quote:
Originally Posted by DJEarthQuake View Post
Use default_fov in console.
omg, thx. so it works. But how I can change it via amxx?

Last edited by ZASTRELIS; 02-20-2021 at 07:32.
ZASTRELIS is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-20-2021 , 07:32   Re: Permanent Field of View change?
Reply With Quote #15

server_cmd("default_fov 90")
__________________

Last edited by OciXCrom; 02-20-2021 at 07:33.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Natsheh
Veteran Member
Join Date: Sep 2012
Old 02-20-2021 , 08:01   Re: Permanent Field of View change?
Reply With Quote #16

PHP Code:

static iCvarPointer_FOV_Default 0;
if(!
iCvarPointer_FOV_Default iCvarPointer_FOV_Default get_cvar_pointer("default_fov");

set_pcvar_num(iCvarPointer_FOV_Default 90); 
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 02-20-2021 at 08:29.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 02-20-2021 , 21:49   Re: Permanent Field of View change?
Reply With Quote #17

Quote:
Originally Posted by ZASTRELIS View Post
omg, thx. so it works. But how I can change it via amxx?
----- AMX Mod X Help: Commands -----
1: say /setfov - default field of view

Code:
#include amxmodx new g_iFOV; public plugin_init() {     register_clcmd("say /setfov", "client_setfov", 0, "- default field of view");     g_iFOV = register_cvar("set_fov", "100"); } public client_setfov(id) console_cmd(id, "default_fov %i",get_pcvar_num(g_iFOV));
__________________
DJEarthQuake is offline
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 01:32.


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