AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Enable Slow Down (https://forums.alliedmods.net/showthread.php?t=63873)

point.blank 12-02-2007 03:11

Enable Slow Down
 
What is the opposite of

Code:


set_pev(id, pev_fuser2, 0.0);

meaning... what enables slowdown when a player jumps?

ConnorMcLeod 12-02-2007 17:53

Re: Enable Slow Down
 
If you want to see it in real time :
Code:
#include <amxmodx> #include <fakemeta> public plugin_init() {     register_plugin("test slowdown", "0.1", "connor")     register_forward(FM_PlayerPreThink, "fwdPlayerPreThink") } public fwdPlayerPreThink(id) {     if(!is_user_alive(id))         return FMRES_IGNORED     static Float:fuser2     pev(id, pev_fuser2, fuser2)     client_print(id, print_center, "slowdown = %4.1f", fuser2)     return FMRES_HANDLED }

point.blank 12-02-2007 18:44

Re: Enable Slow Down
 
I don't quite understand, what I'm looking for is a way to keep slowdown

Connorr, yours Gives me a lot of numbers which I'm not sure what to do with, and

Quote:

new Float: DefaultValue = pev(id, pev_fuser2)
client_print(id, print_chat, "DefaultValue = %f", DefaultValue)
always shows 0

ConnorMcLeod 12-03-2007 04:42

Re: Enable Slow Down
 
Default value is 0.0
Each time you jump, value increases, then decrease.
There is no "opposite".

If you told what you want to do, it would be easier for you to get advices ;)

purple_pixie 12-03-2007 05:39

Re: Enable Slow Down
 
I would assume that there is a plugin stopping all players from slowing down on landing.

This should be removed for certain players / in certain instances.

My advice would be to do it the other way - check before setting it to 0 instead.


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

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