windbag: scenario save full load to prevent air intake at scenario start

master
Maikel de Vries 2018-06-23 15:36:20 +02:00
parent 5bb9fa228a
commit 7a933e81b7
1 changed files with 13 additions and 1 deletions

View File

@ -248,7 +248,19 @@ public func GetCarryTransform(object clonk, bool idle, bool nohand, bool second_
public func GetCarryPhase() { return 600; }
func Definition(def)
/*-- Saving --*/
public func SaveScenarioObject(props, ...)
{
if (!inherited(props, ...)) return false;
// Save fully loaded.
if (fill_amount == this.MaxIntake) props->AddCall("FullLoad", this, "DoFullLoad");
return true;
}
public func Definition(def)
{
SetProperty("PictureTransformation", Trans_Mul(Trans_Scale(1500), Trans_Rotate(150, 0, 0, 1), Trans_Rotate(-170, 1, 0, 0), Trans_Rotate(10, 0, 1, 0)), def);
}