AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved are there native cvar ( host_framerate ) or change speed game (https://forums.alliedmods.net/showthread.php?t=321432)

LiZou Mapper 02-10-2020 15:22

are there native cvar ( host_framerate ) or change speed game
 
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

fysiks 02-10-2020 22:11

Re: are there native cvar ( host_framerate ) or change speed game
 
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.

LiZou Mapper 07-27-2020 17:02

Re: are there native cvar ( host_framerate ) or change speed game
 
Quote:

Originally Posted by fysiks (Post 2683357)
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 :)

OciXCrom 07-27-2020 20:07

Re: are there native cvar ( host_framerate ) or change speed game
 
What are you talking about? How is sv_cheats related to using AMXX and cvars?!

gabuch2 07-28-2020 13:30

Re: are there native cvar ( host_framerate ) or change speed game
 
Sadly, it's not possible to speed up/down the game because the cvar that manages it is not registered.

klippy 08-02-2020 16:22

Re: are there native cvar ( host_framerate ) or change speed game
 
Quote:

Originally Posted by Gabe Iggy (Post 2712046)
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.

LiZou Mapper 08-10-2020 04:35

Re: are there native cvar ( host_framerate ) or change speed game
 
Quote:

Originally Posted by Gabe Iggy (Post 2712046)
Sadly, it's not possible to speed up/down the game because the cvar that manages it is not registered.

Thanks


All times are GMT -4. The time now is 03:56.

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