by Matt » Wed Feb 14, 2018 2:22 pm
Marisa Kirisame wrote:I'm sure this can be done with ZScript in its current state, including morphing players into a spectator class on respawn.
It was done by a couple mods in ACS before that too, though it wasn't until ZScript that we had any generalized way of resetting the players' inventory on map restart.
(It could have been done in Decorate with some custominventory hackery but you wouldn't have been able to start with the correct weapon raised.)
Here's HD's ZScript implementation based on an original ACS, with some of the old ACS left in for the fancy "you lose" messages.
This can be simplified significantly so that the map restarts immediately upon the death count hitting the fraglimit, instead of all that ACS fancy message stuff or the "WipedOut" inventory token which is only used to mark people and morph them into spectators when the lives have run out.
[quote="Marisa Kirisame"]I'm sure this can be done with ZScript in its current state, including morphing players into a spectator class on respawn.[/quote]It was done by a couple mods in ACS before that too, though it wasn't until ZScript that we had any generalized way of resetting the players' inventory on map restart.
(It could have been done in Decorate with some custominventory hackery but you wouldn't have been able to start with the correct weapon raised.)
[url=https://github.com/MatthewTheGlutton/HideousDestructor/blob/master/zscript/playerdeath.txt#L86]Here's HD's ZScript implementation based on an original ACS, with some of the old ACS left in for the fancy "you lose" messages.[/url]
This can be simplified significantly so that the map restarts immediately upon the death count hitting the fraglimit, instead of all that ACS fancy message stuff or the "WipedOut" inventory token which is only used to mark people and morph them into spectators when the lives have run out.