mirror of
https://github.com/ineedbots/t4_bot_warfare.git
synced 2025-06-27 14:51:56 +00:00
The start of something awesome
This commit is contained in:
17
main_shared/maps/mp/gametypes/_clientids.gsc
Normal file
17
main_shared/maps/mp/gametypes/_clientids.gsc
Normal file
@ -0,0 +1,17 @@
|
||||
init()
|
||||
{
|
||||
level.clientid = 0;
|
||||
|
||||
level thread onPlayerConnect();
|
||||
}
|
||||
|
||||
onPlayerConnect()
|
||||
{
|
||||
for(;;)
|
||||
{
|
||||
level waittill("connecting", player);
|
||||
|
||||
player.clientid = level.clientid;
|
||||
level.clientid++; // Is this safe? What if a server runs for a long time and many people join/leave
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user