Saving players state in co-op
Posted: Mon Dec 17, 2012 4:37 pm
Hi everybody,
I open this subject in this section of the forum, because it seems to be no "no-script" way of doing what i want. This is the continuation of this one : http://zandronum.com/forum/showthread.php?tid=1754
My situation is :
- I want to set up a coop private server, where I will only play with a few friends.
- The server will be up permanently, and players can connect at the time they want, not only when everybody is here.
The problem is that now, when a players disconnect and then come back, he lost all his stuff (weapons, ammo, armor). And starting in the late levels of some wads is quite hard with only the pistol.
What I would like to do is that, when a player disconnect from the server, the server saves his stuff informations, and when the player comes back, the server gives him that stuff back.
I am totally new to ACS scripting, and have no idea how to do it. I've looked around the wiki and found the following actions which seems interesting, but I can't put it all together :
- checkInventory which return the stuff of a player
- giveInventory which give player some stuff
But how can I refer to a player, and how can I save informations relatives to this player ?
Thank you by advance.
I open this subject in this section of the forum, because it seems to be no "no-script" way of doing what i want. This is the continuation of this one : http://zandronum.com/forum/showthread.php?tid=1754
My situation is :
- I want to set up a coop private server, where I will only play with a few friends.
- The server will be up permanently, and players can connect at the time they want, not only when everybody is here.
The problem is that now, when a players disconnect and then come back, he lost all his stuff (weapons, ammo, armor). And starting in the late levels of some wads is quite hard with only the pistol.
What I would like to do is that, when a player disconnect from the server, the server saves his stuff informations, and when the player comes back, the server gives him that stuff back.
I am totally new to ACS scripting, and have no idea how to do it. I've looked around the wiki and found the following actions which seems interesting, but I can't put it all together :
- checkInventory which return the stuff of a player
- giveInventory which give player some stuff
But how can I refer to a player, and how can I save informations relatives to this player ?
Thank you by advance.