Re: CogKing, RespawnMask help


[ Follow Ups ] [ Post Followup ] [ Jed Messages ]

Posted by Osan`gar on February 13, 1998 at 18:02:05:

In Reply to: Re: CogKing, RespawnMask help posted by CogKing on February 12, 1998 at 12:25:21:

> > 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?

> My mistake actually, I forgot the jails. In your case you have 4 types of respawns
> (unless you also want a lobby to select teams) : red normal, red in (gold) jail, gold
> normal and gold in (red) jail. Say you want 4 respawns in jails and 12 for each team. That would make it :

> Red normal : points 0 to 11, so not on 12 to 31
> Red in jail : points 12 to 15, so not on 0-11 or 16-31
> Gold normal : points 16 to 27, so not on 0-15 or 28-31
> Gold in jail : points 28 to 31, so not on 0-27

> Now, just get an Hex calc and compute the flags based on the last part...
> For instance the first one would be the hex number with all the bits 12 to 31 set,
> or 0xFFFFF000

> -CogKing

Thanks again CogKing. You've been a great help. :)


Follow Ups:



Post a Followup

Name:
E-Mail:
Subject:
Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ Jed Messages ]