700 {
702 {
703 Car car;
704 EntityAI parent = GetHierarchyParent();
705
706 Class.CastTo( car, parent );
707
708
709 if ( car )
710 {
711 float amount = car.GetFluidFraction(
CarFluid.COOLANT );
712 float newAmount = Math.RandomFloat( amount * 0.2, amount * 0.75 );
713
714 car.Leak(
CarFluid.COOLANT, newAmount );
715 }
716 }
717 }
CarFluid
Type of vehicle's fluid. (native, do not change or extend)
proto native CGame GetGame()