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.
|