Barrel: Fixed barrel liquid ejection

The barrel did not eject liquids with the correct angle when using the barrel, because the parameters were not used by the liquids.
liquid_container
Mark 2016-03-23 20:18:08 +01:00
parent 02b8cf8422
commit 332b899c54
4 changed files with 8 additions and 8 deletions

View File

@ -2,9 +2,9 @@
func GetLiquidType() { return "Acid"; }
func Disperse()
func Disperse(int angle, int strength)
{
DisperseMaterial(GetLiquidType(), GetLiquidAmount());
DisperseMaterial(GetLiquidType(), GetLiquidAmount(), strength, angle);
_inherited(...);
}

View File

@ -2,9 +2,9 @@
func GetLiquidType() { return "Lava"; }
func Disperse()
func Disperse(int angle, int strength)
{
DisperseMaterial(GetLiquidType(), GetLiquidAmount());
DisperseMaterial(GetLiquidType(), GetLiquidAmount(), strength, angle);
_inherited(...);
}

View File

@ -2,9 +2,9 @@
func GetLiquidType() { return "Oil"; }
func Disperse()
func Disperse(int angle, int strength)
{
DisperseMaterial(GetLiquidType(), GetLiquidAmount());
DisperseMaterial(GetLiquidType(), GetLiquidAmount(), strength, angle);
_inherited(...);
}

View File

@ -2,9 +2,9 @@
func GetLiquidType() { return "Water"; }
func Disperse()
func Disperse(int angle, int strength)
{
DisperseMaterial(GetLiquidType(), GetLiquidAmount());
DisperseMaterial(GetLiquidType(), GetLiquidAmount(), strength, angle);
_inherited(...);
}