PDA

View Full Version : Data for Stats


wildwillie
10-20-2011, 01:38 AM
I'm looking for a little help in a script.

I have been putting together a Server commander for CloD and have some of it working.

I have the following method that I use to pass back info when a pilot creates a new plane (Spawns in) but I would like to have a little more information.

I have Player Name
Player position
Army
Plane
Plane Type
Spawn location

I need the fuel quantity selected, loadouts, and markings.

here is the basic method that is called from OnPlaceEntered:

public void sortieBegin(Player p, AiActor actor, int placeIndex)
{
try
{
String timeStamp = ConvertToTimestamp(DateTime.Now);
AiAircraft aircraft = actor as AiAircraft;
if (aircraft == null) { return; }
String acType = aircraft.Type().ToString(); // Fighter, Heavy Fighter, etc
String acName = aircraft.InternalTypeName(); // Plane (Bf109E, etc)
String callSign = aircraft.CallSign(); // Not useful
String playerPosition = aircraft.CrewFunctionPlace(placeIndex).ToString(); // Pilot, Gunner, Bombadier, etc
String pilotName = p.Name();
int army = p.Army();
Point2d actorPos = new Point2d(actor.Pos().x, actor.Pos().y);
String startingGrid = GamePlay.gpSectorName(actorPos.x, actorPos.y).ToString();

svr.SendMessage(StatCommands.SortieBegin + "::" + pilotName + "::" + army + "::" + acName + "::" +
acType + "::" + playerPosition + "::" + "::" + startingGrid);

}
catch (Exception ex)
{
System.Console.WriteLine("IL2ClodStats.sortieBegin - Exception: " + ex);
// Error coding
}

Any ideas on what I need to reference for the above info ?

Thanks,

RAF238thWildWillie

FG28_Kodiak
10-20-2011, 05:33 AM
GetParameterType:
http://forum.1cpublishing.eu/showthread.php?t=26189
But i think its not exactly what you mean.

Ataros
10-20-2011, 08:31 AM
Here is a list of parameters from the devs in attachment http://forum.1cpublishing.eu/showthread.php?p=342338#post342338

wildwillie
10-20-2011, 10:53 AM
Thanks for the info.

OK fuel quantity is good, now to find the Markings and Loadout info(Neither of those are in the getParameters area).

RAF238thWildWillie

salmo
10-23-2011, 09:06 PM
Thanks for the info.

OK fuel quantity is good, now to find the Markings and Loadout info(Neither of those are in the getParameters area).

RAF238thWildWillie

Aircraft markings? - Try here Willie http://forum.1cpublishing.eu/showthread.php?t=27278