Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > IL-2 Sturmovik: Cliffs of Dover > Technical threads > FM/DM threads

FM/DM threads Everything about FM/DM in CoD

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 11-20-2012, 03:57 PM
SEE SEE is offline
Approved Member
 
Join Date: Oct 2009
Posts: 1,678
Default

The RAF default belt (you can check its make up in FMB) uses both observer and Tracer - seems odd how the defualt belts for each gun are made up.

Anyway, here is the script for giving on screen damage. Just copy and past into a notepad file and use the same name as the mission you want to associate it with but the extension must be .cs ( i.e if the mission file is weaponstest.mis then the notepad file will be weaponstest.cs and placed inj the same folder as the mis file.)


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
}

}
}
__________________
MP ATAG_EvangelusE

AMD A8 5600K Quad Core 3.6 Ghz - Win 7 64 - 8Gb Ram - GTX660ti 2Gb VRAM - FreeTrack - X52 - Asus 23' Monitor.

Last edited by SEE; 11-20-2012 at 04:01 PM.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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