Blocking forward and backward movement temporarily

Discuss all aspects related to modding Zandronum here.
Post Reply
Klofkac
Forum Regular
Posts: 481
Joined: Sat Jun 09, 2012 1:31 pm
Location: Ask Grandvoid servers

Blocking forward and backward movement temporarily

#1

Post by Klofkac » Sun Feb 02, 2014 3:38 pm

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.
Last edited by Klofkac on Sun Feb 02, 2014 3:56 pm, edited 1 time in total.
π•‚π•π• π•—π•œπ•’π•”

User avatar
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

#2

Post by ibm5155 » Sun Feb 02, 2014 3:43 pm

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
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">

Ijon Tichy
Frequent Poster Miles card holder
Posts: 901
Joined: Mon Jun 04, 2012 5:07 am

RE: Blocking forward and backward movement temporarily

#3

Post by Ijon Tichy » Sun Feb 02, 2014 4:24 pm

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

Klofkac
Forum Regular
Posts: 481
Joined: Sat Jun 09, 2012 1:31 pm
Location: Ask Grandvoid servers

RE: Blocking forward and backward movement temporarily

#4

Post by Klofkac » Mon Feb 03, 2014 7:10 am

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

#5

Post by adamclare87 » Mon Feb 03, 2014 11:06 am

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!

Klofkac
Forum Regular
Posts: 481
Joined: Sat Jun 09, 2012 1:31 pm
Location: Ask Grandvoid servers

RE: Blocking forward and backward movement temporarily

#6

Post by Klofkac » Mon Feb 03, 2014 12:21 pm

The problem is, I cannot move the linedefs... You could just turn around just by one degree and the linedefs wouldn't work anymore.
π•‚π•π• π•—π•œπ•’π•”

User avatar
Dark-Assassin
Maintenence Crew
Posts: 968
Joined: Fri May 25, 2012 4:25 am

RE: Blocking forward and backward movement temporarily

#7

Post by Dark-Assassin » Mon Feb 03, 2014 1:14 pm

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.
❗ Don't message me for technical or moderation support.
❔ Use the relevant support channels instead.

User avatar
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

#8

Post by ibm5155 » Mon Feb 03, 2014 2:04 pm

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
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">

Ijon Tichy
Frequent Poster Miles card holder
Posts: 901
Joined: Mon Jun 04, 2012 5:07 am

RE: Blocking forward and backward movement temporarily

#9

Post by Ijon Tichy » Mon Feb 03, 2014 3:32 pm

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.

Post Reply