Official Fulqrum Publishing forum

Official Fulqrum Publishing forum (http://forum.fulqrumpublishing.com/index.php)
-   IL-2 Sturmovik: Cliffs of Dover (http://forum.fulqrumpublishing.com/forumdisplay.php?f=189)
-   -   How to show details of enemy plane damage (http://forum.fulqrumpublishing.com/showthread.php?t=25337)

jimbop 08-10-2011 10:59 PM

How to show details of enemy plane damage
 
2 Attachment(s)
This is how you can get a real-time damage report on enemy aircraft in single player. First, acknowledgements to FG28_Kodiak in this thread, post 15. I'm reposting because I don't think this got the coverage it deserved and also to include a few specific instructions for those who haven't used script before. Also, there are some screenshots! :)

I find this really useful in learning how to target enemy aircraft since you get immediate information which is much more detailed than seeing a bit of aircraft fall off. I find it interesting how much lead you can pour into a bomber from their six without any damage whatever whereas a single shot in just the right place has dramatic effect.

Instructions:

1. Open a single mission in FMB. You can use either of the attached examples at the bottom of this post if you haven’t made your own.

2. Click Edit, Script and then click on the Script tab.

3. Paste FG28_Kodiak’s code in the window and save:

Code:

using System;
using maddox.game;
using maddox.game.world;

public class Mission : maddox.game.AMission
{

    public override void OnAircraftDamaged(int missionNumber, string shortName, AiAircraft Aircraft, AiDamageInitiator DamageFrom, part.NamedDamageTypes WhatDamaged)
    {
            base.OnAircraftDamaged(missionNumber, shortName, Aircraft, DamageFrom, WhatDamaged);
           
            if (DamageFrom.Player != null )
            {
                GamePlay.gpLogServer (null, "{0} hits {1} : {2} \n", new object [] {DamageFrom.Player, shortName, WhatDamaged});//Test
      }
           
    }
}

That's it, just save the mission and play. When you fire successfully on an aircraft (not just enemy) you will see a damage report as in this screenshot (click to enlarge):

http://farm7.static.flickr.com/6081/...d56e54ea_b.jpg
on Flickr

And as you can see you still get the usual status messages, in this case after the enemy has crashed:

http://farm7.static.flickr.com/6186/...d04d1d5d_b.jpg
on Flickr

The mission which these screenshots were taken from is attached (Dornier_Hunt_1, a very simple training mission I use). FG28_Kodiak's original mission (OnAircarftDamaged1) is also attached. You can open either of these in FMB and see the script as described above. To fly them you should extract the two files to your Documents\1C SoftClub\il-2 sturmovik cliffs of dover\missions\Single folder. You can then find it in the Single Missions menu.

Attachment 6868

Attachment 6869

Enjoy and thanks again to FG28_Kodiak!

droz 08-10-2011 11:22 PM

awesome!

jimbop 08-11-2011 12:00 AM

Quote:

Originally Posted by cheesehawk (Post 322365)
I sort of hope this is considered a mod, its too much information for the online world and full switch servers.

Not an issue - scripts are server side for online so this will not work for multiplayer (afaik). Great for single player training but if you don't like it, don't use it.

ATAG_Doc 08-11-2011 12:26 AM

Quote:

Originally Posted by cheesehawk (Post 322365)
I sort of hope this is considered a mod, its too much information for the online world and full switch servers.

You know I kind of agree. I can see how this could be abused. But that's just the nature of gaming and the way they approach this problem is to have cheat controls in place about the ones they already know about and watch the forums for the one's they don't.

It's called leveraging.

yellonet 08-11-2011 12:35 AM

Can you really use this script in an online game?
This seems to be a server-side script.

Edit: As I figured.

Phazon 08-11-2011 12:42 AM

Awesome thanks alot! Very useful for analysing the effectiveness of certain weapon and ammo types. :)

Skoshi Tiger 08-11-2011 01:01 AM

Thanks,

it seams every day someone is finding something new and exciting about this sim. There is so much depth to this game, it is a wonder it only took five years for them to develop.

Cheers!

jimbop 08-11-2011 02:04 AM

Quote:

Originally Posted by Phazon (Post 322383)
Awesome thanks alot! Very useful for analysing the effectiveness of certain weapon and ammo types. :)

Yes, this is exactly what I use it for. You can also determine precisely where each aircraft's vulnerabilities are. Great fun!

Phazon 08-11-2011 02:12 AM

Yes it was surprising to see how the systems were getting hit. What appeared to be a few useless glancing shots that I thought was a waste of ammo actually turned out to break the fuel pump on one of the tanks. Previous "useless" shots on the fuselage wrecked all sorts of systems internally as well.

Its definately encouraged me to take more pot shots as it doesn't take much to make life hard for the other pilot, even if the effect isn't apparent straight away. :D

jimbop 08-11-2011 03:50 AM

Sure explains those times when a plane you disengaged from a few minutes ago goes down. Very interesting!


All times are GMT. The time now is 05:58 AM.

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