Official Fulqrum Publishing forum

Official Fulqrum Publishing forum (http://forum.fulqrumpublishing.com/index.php)
-   FMB, Mission & Campaign builder Discussions (http://forum.fulqrumpublishing.com/forumdisplay.php?f=203)
-   -   scoring and damages (http://forum.fulqrumpublishing.com/showthread.php?t=40678)

_79_dev 08-14-2013 10:30 AM

scoring and damages
 
Hello everyone, I would like to implement into server scoring and damage system which is going to rely on MySql database... For the moment I have simple events done and they all working fine but I stuck on "initiator" and "damage" in this methods:

Code:



public override void OnActorDamaged(int missionNumber, string shortName, AiActor actor, AiDamageInitiator initiator, NamedDamageTypes damageType)
    {
        base.OnActorDamaged(missionNumber, shortName, actor, initiator, damageType);

     

    }


    public override void OnActorDead(int missionNumber, string shortName, AiActor actor, System.Collections.Generic.List<DamagerScore> damages)

    {
        base.OnActorDead( missionNumber, shortName, actor, damages);
   

    }

For the moment I would like to get basic log when player plane was attacked, who did attack, and what damages was inflicted into players plane. Eventually I would like to get all of it into strings or any type of characters that I can put into MySql database...

Any help appreciated....

Vogler

Sokol1 08-14-2013 06:08 PM

In Sukhoi forum they suggest this:

http://sourceforge.net/p/project303/...sticHandler.cs

Sokol1


All times are GMT. The time now is 10:45 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.