Posted by Osan`gar on February 11, 1998 at 20:57:27:
In Reply to: Re: CogKing, RespawnMask help posted by CogKing on February 11, 1998 at 19:23:16:
> > I'm not exactly clear on the respawn masks. I'm going to need them in a cog I'm working on, but nobody can really help me out with them. I'm wanting to set it to make a player respawn in a specific sector when he dies, how would I go about doing this? No one I've talked to has any experience with respawn masks, so you are the only one left. :) Help me CogKing, you're my only hope. ;) Sorry, had to say that.
> Actually you just have to look in the CTF cogs...
> The respawn mask tell you where NOT to respawn : for each bit set you cannot
> respawn on the walkplayer with that number. Yes, that means that the order of
> placing the walkplayers IS important. You just have to set the respawn mask to
> whatever set of flags is needed in your mod, and that's all. In CTF there are 3
> different things : the start room points (16), the red points (8) and the gold (8).
> In your mod (Jailbreak, isn't it ?) it is probably gonna be 2 series of points unless
> you let the users select teams in a lobby like CTF does.
> I cannot really tell you more without writing a cog, and that is already done in CTF :-)
> -CogKing
Yes, I have been looking through the CTF cogs extensively. I had picked up on that, but how would I limit the player to respawning to only two points when he dies (in order to go to the jail) instead of the normal respawn points (which would take effect after the player had been killed in the jail or when they first join like in CTF)? Would I just have to set the respawn point to keep the player from respawning anywhere but the walkplayer in the jail sector? If I have understood you correctly, that would be what I would have to do. Just set the players respawn when he dies from being killed by another player to keep him from respawning in any of the normal walkplayers, and then when he is killed in the jail, just reset his respawn mask to the one's reflected in the ctf_main.cog. Do I have it correctly?