Page 1 of 1
Blocking forward and backward movement temporarily
Posted: Sun Feb 02, 2014 3:38 pm
by Klofkac
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.
RE: Blocking forward and backward movement temporarily
Posted: Sun Feb 02, 2014 3:43 pm
by ibm5155
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
RE: Blocking forward and backward movement temporarily
Posted: Sun Feb 02, 2014 4:24 pm
by Ijon Tichy
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
RE: Blocking forward and backward movement temporarily
Posted: Mon Feb 03, 2014 7:10 am
by Klofkac
No, morphing has alot of side effects - teleport fog, health reset, unability to switch weapon...
RE: Blocking forward and backward movement temporarily
Posted: Mon Feb 03, 2014 11:06 am
by adamclare87
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
Posted: Mon Feb 03, 2014 12:21 pm
by Klofkac
The problem is, I cannot move the linedefs... You could just turn around just by one degree and the linedefs wouldn't work anymore.
RE: Blocking forward and backward movement temporarily
Posted: Mon Feb 03, 2014 1:14 pm
by Dark-Assassin
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.
RE: Blocking forward and backward movement temporarily
Posted: Mon Feb 03, 2014 2:04 pm
by ibm5155
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
RE: Blocking forward and backward movement temporarily
Posted: Mon Feb 03, 2014 3:32 pm
by Ijon Tichy
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.