Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » SSGM c++
SSGM c++ [message #296037] Sat, 10 November 2007 13:22 Go to next message
cAmpa is currently offline  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 Go to previous messageGo to next message
Adad is currently offline  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 #296143 is a reply to message #296037] Sun, 11 November 2007 02:33 Go to previous messageGo to next message
Sir Kane
Messages: 1701
Registered: March 2003
Location: Angerville
Karma: 0
General (1 Star)
lol, wtf kind of struct/class member names are that?

Proud N9500 and proud N6270 user. Creator of the IEE libraries (original bhs.dll) and the RB series software.
http://n00bstories.com/image.fetch.php?id=1189992501http://www.n00bstories.com/image.fetch.php?id=1257492907
Re: SSGM c++ [message #296157 is a reply to message #296037] Sun, 11 November 2007 05:35 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
GenericSLNode and SList<template>
Re: SSGM c++ [message #296159 is a reply to message #296143] Sun, 11 November 2007 05:51 Go to previous messageGo to next message
=HT=T-Bird is currently offline  =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 Razz


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 #296168 is a reply to message #296037] Sun, 11 November 2007 07:01 Go to previous messageGo to next message
Sir Kane
Messages: 1701
Registered: March 2003
Location: Angerville
Karma: 0
General (1 Star)
I'm talking about member names of the classes/structures given by ratwil, not whatever you think.

Proud N9500 and proud N6270 user. Creator of the IEE libraries (original bhs.dll) and the RB series software.
http://n00bstories.com/image.fetch.php?id=1189992501http://www.n00bstories.com/image.fetch.php?id=1257492907
Re: SSGM c++ [message #296214 is a reply to message #296037] Sun, 11 November 2007 09:43 Go to previous message
jnz is currently offline  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 Satisfied

[Updated on: Sun, 11 November 2007 09:44]

Report message to a moderator

Previous Topic: westwood ftp
Next Topic: C&C3 Worldbuiler
Goto Forum:
  


Current Time: Sun Jan 26 10:23:38 MST 2025

Total time taken to generate the page: 0.01768 seconds