GetPlayerInput trouble

Discuss all aspects related to modding Zandronum here.
Post Reply
Thomas
 
Posts: 51
Joined: Fri Jun 22, 2012 9:41 am

GetPlayerInput trouble

#1

Post by Thomas » Tue Mar 12, 2013 1:28 am

For some special action in my mod I use GetPlayerInput, I want to keep track of the movement keys being pressed (bt_forward, bt_back, bt_moveleft, bt_moveright). And while this works fine offline, GetPlayerInput seems to return 0 online whenever I press one of those keys. Any idea what's causing this? Am I doing something wrong or is this a bug?

I'm using:

Code: Select all

GetPlayerInput (PlayerNumber(), INPUT_BUTTONS);

Theshooter7
Forum Regular
Posts: 262
Joined: Wed Jun 06, 2012 2:15 am

RE: GetPlayerInput trouble

#2

Post by Theshooter7 » Tue Mar 12, 2013 1:43 am

Make sure the compat flag "Send Full Button Info" is enabled. Otherwise GetPlayerInput() doesn't work at all online without it.
Image

Thomas
 
Posts: 51
Joined: Fri Jun 22, 2012 9:41 am

RE: GetPlayerInput trouble

#3

Post by Thomas » Tue Mar 12, 2013 2:30 am

Ah, well that's probably it. Well it does work when I press jump/crouch buttons. Anyway, thanks!
Last edited by Thomas on Tue Mar 12, 2013 2:31 am, edited 1 time in total.

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

RE: GetPlayerInput trouble

#4

Post by Ijon Tichy » Tue Mar 12, 2013 2:35 am

also you can use -1 instead of PlayerNumber()

Post Reply