Anonymous | Login | Signup for a new account | 2025-07-27 20:33 UTC | ![]() |
My View | View Issues | Change Log | Roadmap | Zandronum Issue Support Ranking | Rules | My Account |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0001934 | Zandronum | [All Projects] Bug | public | 2014-09-14 01:01 | 2014-09-20 21:10 | ||||
Reporter | Catastrophe | ||||||||
Assigned To | |||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | duplicate | ||||||
Platform | Microsoft | OS | Windows | OS Version | XP/Vista/7 | ||||
Product Version | 1.2 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0001934: GetPlayerInput does not work properly with spectators offline | ||||||||
Description | With the account system coming up I need getplayerinput to work with spectators through a clientsided script. For example, my mod has a purchase menu, but it is for last man standing only. So if you want to buy something you'd have to wait the full five minutes for a game to end, so it gets rather tedious. Plus, if I did implement a way for the menu to work while in-game, it would lead me to keep players invulnerable so they don't die while using the menu. Problem with this is that if I keep a player invulnerable, it could get abused and lead to matches getting stalled forever. Adding a weaponless area for purchasing items, but I want to keep this mod compatible with other mappacks. Adding a map just for buying items could work, but then people wanting to buy stuff would have to wait ages until the map rotation enters the map. tl;dr let me use getplayerinput on a spectator using a clientsided script so I can make a purchase menu without disrupting a game. | ||||||||
Attached Files | ![]() | ||||||||
![]() |
||||||
|
![]() |
|
ZzZombo (reporter) 2014-09-14 05:57 |
It already should work for spectators. |
Catastrophe (reporter) 2014-09-14 17:00 edited on: 2014-09-14 17:02 |
No, it doesn't. See the attached file. Puke 10 as a spectator and try moving, then do the same thing as a player and you'll see what's wrong. |
Qent (updater) 2014-09-14 18:02 |
To use GetPlayerInput in a clientside script, set the activator to the world and use -1 as the player number. |
Catastrophe (reporter) 2014-09-14 18:27 |
<Catastrophe> like this? <Catastrophe> setactivator(-1); <Catastrophe> buttons = GetPlayerInput (-1, INPUT_BUTTONS); <Qent> yep <Catastrophe> doesnt work in sp <Qent> yeah that's a problem <Qent> in singleplayer you have to use PlayerNumber i think <Catastrophe> that is gay. <Qent>'https://zandronum.com/tracker/view.php?id=1656 [^]' <Qent> yeah it is :/ <Qent> *ConsolePlayerNumber, not PlayerNumber <Catastrophe> yep works online if I do this <Catastrophe> Sigh, so the acs has to be different to test offline... Great. <Qent> ok great, i'll close the ticket I guess you can close, though I'd prefer if this inconsistency got fixed. |
Dusk (developer) 2014-09-14 20:58 |
Reopened. There's a clear bug here. |
Leonard (developer) 2014-09-14 21:22 |
In this case isn't it duplicate of 1656? |
Dusk (developer) 2014-09-20 21:10 |
You are right about that. |
This issue is already marked as resolved. If you feel that is not the case, please reopen it and explain why. |
|
Supporters: | No one explicitly supports this issue yet. |
Opponents: | No one explicitly opposes this issue yet. |
![]() |
|||
Date Modified | Username | Field | Change |
2014-09-14 01:01 | Catastrophe | New Issue | |
2014-09-14 05:57 | ZzZombo | Note Added: 0010263 | |
2014-09-14 17:00 | Catastrophe | Note Added: 0010264 | |
2014-09-14 17:00 | Catastrophe | File Added: inputtest.pk3 | |
2014-09-14 17:02 | Catastrophe | Note Edited: 0010264 | View Revisions |
2014-09-14 18:02 | Qent | Note Added: 0010265 | |
2014-09-14 18:27 | Catastrophe | Note Added: 0010266 | |
2014-09-14 18:29 | Qent | Status | new => closed |
2014-09-14 18:29 | Qent | Resolution | open => no change required |
2014-09-14 20:58 | Dusk | Assigned To | => Dusk |
2014-09-14 20:58 | Dusk | Note Added: 0010267 | |
2014-09-14 20:58 | Dusk | Status | closed => feedback |
2014-09-14 20:58 | Dusk | Resolution | no change required => reopened |
2014-09-14 20:59 | Dusk | Status | feedback => acknowledged |
2014-09-14 20:59 | Dusk | Category | Suggestion => Bug |
2014-09-14 20:59 | Dusk | Summary | Allow getplayerinput to work with spectators. => GetPlayerInput does not work properly with spectators offline |
2014-09-14 21:00 | Dusk | Severity | tweak => minor |
2014-09-14 21:00 | Dusk | Reproducibility | N/A => always |
2014-09-14 21:00 | Dusk | Status | acknowledged => confirmed |
2014-09-14 21:22 | Leonard | Note Added: 0010268 | |
2014-09-20 21:10 | Dusk | Note Added: 0010279 | |
2014-09-20 21:10 | Dusk | Status | confirmed => closed |
2014-09-20 21:10 | Dusk | Assigned To | Dusk => |
2014-09-20 21:10 | Dusk | Resolution | reopened => duplicate |
2014-09-20 21:10 | Dusk | Relationship added | duplicate of 0001656 |
Copyright © 2000 - 2025 MantisBT Team |