View Single Post
  #29  
Old 09-11-2011, 08:49 AM
SNAFU SNAFU is offline
Approved Member
 
Join Date: Feb 2011
Posts: 324
Default

Allright, I just put these 2 scripst 1to1 into an empty submissions and load them into the main mission via mainscript.

Concerning your penalty script: Message and countdown works fine, only the fuelpump is still operable after penalty. I am now trying different damage types, will report back.

I added the other damagetypes as you see below, but they all are ignored, I just can take off as usual.

.
.
.

if (ArrestTime.TotalSeconds < TotalArrestTime)
{
TimeSpan RestTime = pri.ArrestEndTime.Subtract(DateTime.Now);
GamePlay.gpLogServer(null, "Player: {0} gets a time penalty for leaving Airplane in flight\n", new object[] { player.Name() });
(actor as AiAircraft).hitNamed (part.NamedDamageTypes.ControlsElevatorDisabled);
(actor as AiAircraft).hitNamed (part.NamedDamageTypes.ControlsAileronsDisabled);
(actor as AiAircraft).hitNamed (part.NamedDamageTypes.ControlsRudderDisabled);
(actor as AiAircraft).hitNamed (part.NamedDamageTypes.FuelPumpFailure);
(actor as AiAircraft).hitNamed (part.NamedDamageTypes.FuelTank0Exploded);
(actor as AiAircraft).hitNamed (part.NamedDamageTypes.Eng0TotalSeizure);
}

.
.
.

PS: Tested the script also on an empty mission, without any other script with the same results... no penalty. ;(
__________________
http://cornedebrouwer.nl/cf48e

Last edited by SNAFU; 09-11-2011 at 09:21 AM.
Reply With Quote