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

Solved are there native cvar ( host_framerate ) or change speed game


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LiZou Mapper
Member
Join Date: Oct 2018
Location: Morocco
Old 02-10-2020 , 15:22   are there native cvar ( host_framerate ) or change speed game
Reply With Quote #1

Hi
i want ask any someone
host_framerate 0
all know this cvar
when make
host_framrate 0.5 -> become game speed is fast
host_framrate -0.5 -> become game speed is slow
are any there in AMX Mod X, there any 'native' change game speed !
e.g. : get_framehost() ?

i search in amxmodx.org/api, but i don't found anything ?
Please Little Help
__________________

-------------
My Maps !
Zombie Escape Mod !
-------------


Last edited by LiZou Mapper; 06-21-2022 at 20:52. Reason: Solved
LiZou Mapper is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-10-2020 , 22:11   Re: are there native cvar ( host_framerate ) or change speed game
Reply With Quote #2

What do you mean by "game speed"?

Also, you can get and set any cvar (whether or not it does what you want when you change it depends on the cvar). Simply use the cvar functions in AMX Mod X:

Code:
get_cvar_*()
get_pcvar_*()
set_cvar_*()
set_pcvar_*()
To use the pcvar functions with cvars that are not created in your plugin, use get_cvar_pointer() to get the proper reference to the cvar.
__________________

Last edited by fysiks; 02-10-2020 at 22:12.
fysiks is offline
LiZou Mapper
Member
Join Date: Oct 2018
Location: Morocco
Old 07-27-2020 , 17:02   Re: are there native cvar ( host_framerate ) or change speed game
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
What do you mean by "game speed"?

Also, you can get and set any cvar (whether or not it does what you want when you change it depends on the cvar). Simply use the cvar functions in AMX Mod X:

Code:
get_cvar_*()
get_pcvar_*()
set_cvar_*()
set_pcvar_*()
To use the pcvar functions with cvars that are not created in your plugin, use get_cvar_pointer() to get the proper reference to the cvar.
but i need active sv_cheats 1, i don't want active cheatw
so,there any method in ReAPI or from any include or located in some modules
__________________

-------------
My Maps !
Zombie Escape Mod !
-------------

LiZou Mapper is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-27-2020 , 20:07   Re: are there native cvar ( host_framerate ) or change speed game
Reply With Quote #4

What are you talking about? How is sv_cheats related to using AMXX and cvars?!
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 07-28-2020 , 13:30   Re: are there native cvar ( host_framerate ) or change speed game
Reply With Quote #5

Sadly, it's not possible to speed up/down the game because the cvar that manages it is not registered.
__________________
gabuch2 is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 08-02-2020 , 16:22   Re: are there native cvar ( host_framerate ) or change speed game
Reply With Quote #6

Quote:
Originally Posted by Gabe Iggy View Post
Sadly, it's not possible to speed up/down the game because the cvar that manages it is not registered.
The cvar is networked according to Solo, so I guess it's possible to alter it using Orpheu or similar means. Might be worth trying that out.
__________________

Last edited by klippy; 08-02-2020 at 16:22.
klippy is offline
Old 08-10-2020, 04:33
LiZou Mapper
This message has been deleted by LiZou Mapper. Reason: Just delete it
LiZou Mapper
Member
Join Date: Oct 2018
Location: Morocco
Old 08-10-2020 , 04:35   Re: are there native cvar ( host_framerate ) or change speed game
Reply With Quote #7

Quote:
Originally Posted by Gabe Iggy View Post
Sadly, it's not possible to speed up/down the game because the cvar that manages it is not registered.
Thanks
__________________

-------------
My Maps !
Zombie Escape Mod !
-------------


Last edited by LiZou Mapper; 06-21-2022 at 20:54.
LiZou Mapper 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 09:30.


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