SSGM c++ [message #296037] |
Sat, 10 November 2007 13:22 |
|
cAmpa
Messages: 597 Registered: March 2006
Karma: 0
|
Colonel |
|
|
Hey, i have 3 querys about SSGM.
1. Is there a function that tells me if a client is already done with loading the Map?
2. Quote: | extern SList<cPlayer *> *PlayerList; //Current player list
|
Got anyone a good example how can i use this?
Or is there an alternative to run a function on all clients after mapload?
(Need this to check all clients, if there are still in the correct TS Channel after Mapload)
3. Quote: | GetMaxPlayerID() Gets the maximum currently used player ID
|
This is listed in the console.txt but i cant find it in Source?
Bückstabü!
|
|
|
Re: SSGM c++ [message #296097 is a reply to message #296037] |
Sat, 10 November 2007 20:44 |
Adad
Messages: 84 Registered: April 2003
Karma: 0
|
Recruit |
|
|
1. Below.
2.
GenericSLNode *x = PlayerList->HeadNode;
while (x)
{
if (x->NodeData)
{
if (((cPlayer *)x->NodeData)->IsInGame)
{
//bla bla bla...
}
}
x = x->NodeNext;
}
Make a timer to run it every second.
3. It's removed in scripts 3.x afaik.
|
|
|
|
|
Re: SSGM c++ [message #296159 is a reply to message #296143] |
Sun, 11 November 2007 05:51 |
=HT=T-Bird
Messages: 712 Registered: June 2005
Karma: 0
|
Colonel |
|
|
Sir Kane wrote on Sun, 11 November 2007 03:33 | lol, wtf kind of struct/class member names are that?
|
Yes, lol@WW and their POJ linked-list class
HTT-Bird (IRC)
HTTBird (WOL)
Proud HazTeam Lieutenant.
BlackIntel Coder & Moderator.
If you have trouble running BIATCH on your FDS, have some questions about a BIATCH message or log entry, or think that BIATCH spit out a false positive, PLEASE contact the BlackIntel coding team and avoid wasting the time of others.
|
|
|
|
Re: SSGM c++ [message #296214 is a reply to message #296037] |
Sun, 11 November 2007 09:43 |
|
jnz
Messages: 3396 Registered: July 2006 Location: 30th century
Karma: 0
|
General (3 Stars) |
|
|
HeadNode NodeData and NodeNext
What's wrong with them?
and BTW, my last post was answering your question. GenericSLNode and SList have those members. Sarcasm was intended
[Updated on: Sun, 11 November 2007 09:44] Report message to a moderator
|
|
|