Raised This Month: $ Target: $400
 0% 

making +forward to +back


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wouter
Senior Member
Join Date: Feb 2005
Location: Belgium
Old 04-19-2006 , 07:55   making +forward to +back
Reply With Quote #1

how can i make +forward(run forward) to +back(run backward), without changing a players config?

the idea was to create a jumpstick and by using negative airspeed make him go faster (like the matrix jump)
wouter is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 04-19-2006 , 09:17  
Reply With Quote #2

I'm not sure but I think this would work:

Code:
public client_PreThink(id) {     new iButton = get_user_button(id)     if(iButton & IN_FORWARD)         entity_set_int(id,EV_INT_button,iButton & ~IN_FORWARD & IN_BACK) }

EDIT: You can also try using entity_set_velocity for your purposes. You don't need to make him go faster with negative speed or something.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
wouter
Senior Member
Join Date: Feb 2005
Location: Belgium
Old 04-19-2006 , 09:31  
Reply With Quote #3

thx i'll check it out if i'm back home
wouter is offline
kmal2t
BANNED
Join Date: Apr 2006
Old 04-19-2006 , 10:22  
Reply With Quote #4

I'm assuming that you're reffering to sv_airaccelerate -99999

Just to let you know, I've already messed with this idea and it plays very screwy so you'd be better off waiting for the conclusion to my post Script Fix which is coincidentally exactly what you're looking for. The idea is that it detects jump then changes the velocity to make people leap forward like you mentioned. I have it mostly set up but still waiting for someone to help me complete it :\
kmal2t is offline
wouter
Senior Member
Join Date: Feb 2005
Location: Belgium
Old 04-19-2006 , 11:00  
Reply With Quote #5

Quote:
Originally Posted by kmal2t
I'm assuming that you're reffering to sv_airaccelerate -99999
dont know wish amout i will take because it is not meant to jump a range when you normaly run one or 2 minutes, only for a small boost
wouter is offline
Reply



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 05:13.


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