Blocking forward and backward movement temporarily
Blocking forward and backward movement temporarily
Is there a way to temporarily disable forward and backward movement, retaining the possibility to strafe, while making it possible to read forward and backward press through GetPlayerInput? Setting PROP_Frozen does not do what I want as it blocks strafing, too.
In the worst case I will use PROP_Frozen and block strafing.
In the worst case I will use PROP_Frozen and block strafing.
Last edited by Klofkac on Sun Feb 02, 2014 3:56 pm, edited 1 time in total.
πππ ππππ
- ibm5155
- Addicted to Zandronum
- Posts: 1641
- Joined: Tue Jun 05, 2012 9:32 pm
- Location: Somewhere, over the rainbow
RE: Blocking forward and backward movement temporarily
if(player_movment==x || player_movment==y) spawn("mapspot",player_x,player_y,player_z+32,2,0);
else thingremove(2);
Idk what do you want, but this will make the player not moving on this keys xD
else thingremove(2);
Idk what do you want, but this will make the player not moving on this keys xD
Projects
Cursed Maze: DONE, V2.0
Zombie Horde - ZM09 map update: [3/15/13]
Need help with English? Then you've come to the right place!
<this post is proof of "Decline">
Cursed Maze: DONE, V2.0
Zombie Horde - ZM09 map update: [3/15/13]
Need help with English? Then you've come to the right place!
<this post is proof of "Decline">
-
Ijon Tichy
- Frequent Poster Miles card holder
- Posts: 901
- Joined: Mon Jun 04, 2012 5:07 am
RE: Blocking forward and backward movement temporarily
could morph the player to a class with forward and backward speed set to 0
forgot the property names, look 'em up, it should be on the Classes:Player page
forgot the property names, look 'em up, it should be on the Classes:Player page
RE: Blocking forward and backward movement temporarily
No, morphing has alot of side effects - teleport fog, health reset, unability to switch weapon...
πππ ππππ
-
adamclare87
- Β
- Posts: 52
- Joined: Sat Aug 24, 2013 10:09 pm
- Location: Lincoln, UK
RE: Blocking forward and backward movement temporarily
Using ACS to set two linedefs to impassable, trapping the player in invisible walls for the period of the event? That would be my way of doing it anyways!
RE: Blocking forward and backward movement temporarily
The problem is, I cannot move the linedefs... You could just turn around just by one degree and the linedefs wouldn't work anymore.
πππ ππππ
- Dark-Assassin
- Maintenence Crew
- Posts: 968
- Joined: Fri May 25, 2012 4:25 am
RE: Blocking forward and backward movement temporarily
Only thing I can think of is this.
Check if the player is frozen, if so, if the input for Strafing is being used (button pressed), then ThrustThing the actor in the proper direction.
Check if the player is frozen, if so, if the input for Strafing is being used (button pressed), then ThrustThing the actor in the proper direction.
- ibm5155
- Addicted to Zandronum
- Posts: 1641
- Joined: Tue Jun 05, 2012 9:32 pm
- Location: Somewhere, over the rainbow
RE: Blocking forward and backward movement temporarily
and why dont you spawn some bridges on the forward and backward direction of the player? :S
It's weird but it'll work :p
It's weird but it'll work :p
Projects
Cursed Maze: DONE, V2.0
Zombie Horde - ZM09 map update: [3/15/13]
Need help with English? Then you've come to the right place!
<this post is proof of "Decline">
Cursed Maze: DONE, V2.0
Zombie Horde - ZM09 map update: [3/15/13]
Need help with English? Then you've come to the right place!
<this post is proof of "Decline">
-
Ijon Tichy
- Frequent Poster Miles card holder
- Posts: 901
- Joined: Mon Jun 04, 2012 5:07 am
RE: Blocking forward and backward movement temporarily
Bridges won't work; they'll block the player's movement completely more often than not, due to hitboxes not rotating.
Adding velocity through ACS would work, but would also have a noticeable delay online.
Adding velocity through ACS would work, but would also have a noticeable delay online.
