ACS Buy Menu Help
- ForrestMarkX
- Forum Regular
- Posts: 132
- Joined: Sat Jun 16, 2012 2:04 am
- Location: Texas
ACS Buy Menu Help
I'm having a problem with a ACS Buy Menu that is activated by a linedef, what happens is if you die or someone leaves or spectates while in the menu it will either open for someone else and can't be closed or it stays open for you after you die and can't be closed. I have no idea how to fix this
Here is the ACS Code
http://pastebin.com/qsWXBHmn
Here is the ACS Code
http://pastebin.com/qsWXBHmn
Last edited by ForrestMarkX on Sat Jun 22, 2013 6:48 am, edited 1 time in total.
RE: ACS Buy Menu Help
The only advice I can give you is to try and look at Ænima's merc doom thing, it got a buy menu, you could look at the way it activates and such.
Combinebobnt wrote:i can see the forum league is taking off much better than the ctf ones
GalactusToday at 1:07 PM
are you getting uncomfortable jap
feeling something happen down there
RE: ACS Buy Menu Help
Just two things to remark quickly.ForrestMarkX wrote: I'm having a problem with a ACS Buy Menu that is activated by a linedef, what happens is if you die or someone leaves or spectates while in the menu it will either open for someone else and can't be closed or it stays open for you after you die and can't be closed. I have no idea how to fix this
"code" block is horrible at pasting a lot of code, use some pastebin for code of that size next time.
also, bigger is code you submit when you ask for help, smaller is the chance that anybody will bother to look into it. And combined with that "code" block, it makes things even worse.
And about the topic:
- Script 100 is CLIENTSIDE. I believe it shouldn't, that's is unsafe, and the fact that it draws menu for one player does not make it worth using CLIENTSIDE.
- The menu should disappear when player spectates or dies. That's easy to do, just assign TIDs to players, then, in menu script, check if player is alive, or in game, this way:
Code: Select all
if(ThingCount(T_NONE, PLAYER_BASE_TID + PlayerNumber())
{ /* Here you should close the menu. */ }
Last edited by Zupoman on Fri Jun 21, 2013 12:09 pm, edited 1 time in total.
This signature is empty and useless, I would write another useless idiotism here but people will call me a noob for that, so sorry, no more signatures for you. Go somewhere else.
- ForrestMarkX
- Forum Regular
- Posts: 132
- Joined: Sat Jun 16, 2012 2:04 am
- Location: Texas
RE: ACS Buy Menu Help
That doesn't appear to work, when you die the store still remains open. I think this whole system needs a rewrite cause it depends on items added to the inventoryZupoman wrote: And about the topic:
- Script 100 is CLIENTSIDE. I believe it shouldn't, that's is unsafe, and the fact that it draws menu for one player does not make it worth using CLIENTSIDE.
- The menu should disappear when player spectates or dies. That's easy to do, just assign TIDs to players, then, in menu script, check if player is alive, or in game, this way:PLAYER_BASE_TID is TID of player with PlayerNumber() of 0 (people usually set it to 1000).Code: Select all
if(ThingCount(T_NONE, PLAYER_BASE_TID + PlayerNumber()) { /* Here you should close the menu. */ }
-
Zedek The Plague Doctor
- Posts: 52
- Joined: Sun Aug 05, 2012 3:25 am
- Location: Dancing Robot Factory In Hell
- Clan: OLAF METAL
- Clan Tag: [OLAF]
- Contact:
RE: ACS Buy Menu Help
Bumpin' this. The actual look of the menu itself should stay the same, but the way it works should change.
-
Catastrophe
- Retired Staff / Community Team Member
- Posts: 2571
- Joined: Sat Jun 02, 2012 2:44 am
RE: ACS Buy Menu Help
I don't think you should be using line defs, but if you insist. What you should be doing is making the display itself, clientsided and make it only appear if a certain clientside variable is set to true, then it'll only pop up for the guy that has it true on his side. If you wanna communicate with the server, what you'd have to do is puke scripts.
- ibm5155
- Addicted to Zandronum
- Posts: 1641
- Joined: Tue Jun 05, 2012 9:32 pm
- Location: Somewhere, over the rainbow
RE: ACS Buy Menu Help
I did a clientside menu for change the rainfall settings that i did.
But it´s clientside and only affect just affect the gameplay.
Actually the best think I could sugest is to use a strife like menu system or see how does the buy menu from all out war works.
I don´t know if it exist but maybe some kind of script that only affect each player but it sends information to the server (net clientside?)
But it´s clientside and only affect just affect the gameplay.
Actually the best think I could sugest is to use a strife like menu system or see how does the buy menu from all out war works.
I don´t know if it exist but maybe some kind of script that only affect each player but it sends information to the server (net clientside?)
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">
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">
-
Zedek The Plague Doctor
- Posts: 52
- Joined: Sun Aug 05, 2012 3:25 am
- Location: Dancing Robot Factory In Hell
- Clan: OLAF METAL
- Clan Tag: [OLAF]
- Contact:
RE: ACS Buy Menu Help
I figured part of it out. I was poking through the code, and I figured out that when the menu closes, it seems to reset the selected weapon in the list to the first. I've noticed in multiplayer that when others close the menu, it resets the selected item for everyone.
I think the problem is with the variables. When one player does something with a variable, it does it for everybody.
I think the problem is with the variables. When one player does something with a variable, it does it for everybody.
-
Watermelon
- Zandrone
- Posts: 1244
- Joined: Thu Jun 28, 2012 9:07 pm
- Location: Rwanda
RE: ACS Buy Menu Help
All drawing should be done clientside. There are multiple ways to signal this for clients.

[/url]