AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   making +forward to +back (https://forums.alliedmods.net/showthread.php?t=27297)

wouter 04-19-2006 07:55

making +forward to +back
 
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)

Hawk552 04-19-2006 09:17

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.

wouter 04-19-2006 09:31

thx i'll check it out if i'm back home :up:

kmal2t 04-19-2006 10:22

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 :\

wouter 04-19-2006 11:00

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


All times are GMT -4. The time now is 05:13.

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