AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   sv_airaccelerate for one player only? (https://forums.alliedmods.net/showthread.php?t=3011)

Neo-Vortex 06-23-2004 20:52

sv_airaccelerate for one player only?
 
is it possible to adjust sv_airaccelerate differently for each player? (trying to get matrix_jump and jetpack working together happily...)

vittu 01-05-2005 23:34

I know this is an old post and I'm sorry, but I was looking for a way to do this and could not find it in the default includes (or at least didn't see something similar)... I suppose you can set a users velocities, but it wouldnt be quite the same.

Does anyone know if it is possible to set sv_airaccelerate on a single user?

More 01-06-2005 04:47

I think a function for this doesn't exist but you can make an alternate way:
Code:
new bool:hasPower[33] public plugin_init() {   register_plugin("abc", "0.1", "abc")   register_forward(FM_PlayerPreThink, "forward_playerprethink") } public forward_playerprethink(id) {   if (is_user_alive(id) && hasPower[id]) {     if (entity_get_int(id, EV_INT_flags) & FL_ONGROUND) {       set_cvar_num("sv_airaccelerate", -10)     }     else {       set_cvar_num("sv_airaccelerate", 10)     }   }   return FMRES_IGNORED }

just set hasPower[id] to true to allow a player to jump

NOTE: I don't know if this works I have scripted it on the fly


All times are GMT -4. The time now is 14:39.

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