forked from Mirrors/openclonk
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
parent
02b8cf8422
commit
332b899c54
|
@ -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(...);
|
||||
}
|
||||
|
||||
|
|
|
@ -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(...);
|
||||
}
|
||||
|
||||
|
|
|
@ -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(...);
|
||||
}
|
||||
|
||||
|
|
|
@ -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(...);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue