Raised This Month: $ Target: $400
 0% 

sv_airaccelerate for one player only?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Neo-Vortex
Senior Member
Join Date: Jun 2004
Location: Australia
Old 06-23-2004 , 20:52   sv_airaccelerate for one player only?
Reply With Quote #1

is it possible to adjust sv_airaccelerate differently for each player? (trying to get matrix_jump and jetpack working together happily...)
Neo-Vortex is offline
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 01-05-2005 , 23:34  
Reply With Quote #2

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?
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
More
Member
Join Date: Nov 2004
Location: Internet
Old 01-06-2005 , 04:47  
Reply With Quote #3

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
More 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 14:39.


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