Zandronum Chat on our Discord Server Get the latest version: 3.2
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001934Zandronum[All Projects] Bugpublic2014-09-14 01:012014-09-20 21:10
ReporterCatastrophe 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionduplicate 
PlatformMicrosoftOSWindowsOS VersionXP/Vista/7
Product Version1.2 
Target VersionFixed in Version 
Summary0001934: GetPlayerInput does not work properly with spectators offline
DescriptionWith 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? file icon inputtest.pk3 [^] (854 bytes) 2014-09-14 17:00

- Relationships
duplicate of 0001656resolved CLIENTSIDE GetPlayerInput to work the same on- and offline 

-  Notes
User avatar (0010263)
ZzZombo (reporter)
2014-09-14 05:57

It already should work for spectators.
User avatar (0010264)
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.

User avatar (0010265)
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.
User avatar (0010266)
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.
User avatar (0010267)
Dusk (developer)
2014-09-14 20:58

Reopened. There's a clear bug here.
User avatar (0010268)
Leonard (developer)
2014-09-14 21:22

In this case isn't it duplicate of 1656?
User avatar (0010279)
Dusk (developer)
2014-09-20 21:10

You are right about that.

Issue Community Support
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.

- Issue History
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






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2025 MantisBT Team
Powered by Mantis Bugtracker