mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-14 15:44:34 +00:00
Better Global Viscosity
This commit is contained in:
parent
5cf94ac596
commit
66fc9947fd
1 changed files with 6 additions and 6 deletions
8
Classic/scripts/autoexec/TacoOverrides.cs
Normal file → Executable file
8
Classic/scripts/autoexec/TacoOverrides.cs
Normal file → Executable file
|
|
@ -166,11 +166,11 @@ function DefaultGame::missionLoadDone(%game)
|
||||||
{
|
{
|
||||||
parent::missionLoadDone(%game);
|
parent::missionLoadDone(%game);
|
||||||
|
|
||||||
for(%i = 0; %i < MissionGroup.getCount(); %i++)
|
InitContainerRadiusSearch("0 0 0", 2048, $TypeMasks::WaterObjectType);
|
||||||
|
while ((%itemObj = containerSearchNext()) != 0)
|
||||||
{
|
{
|
||||||
%obj = MissionGroup.getObject(%i);
|
if(%itemObj.getClassName() $= "WaterBlock")
|
||||||
if(%obj.getClassName() $= "WaterBlock")
|
%itemObj.viscosity = $globalviscosity;
|
||||||
%obj.viscosity = $globalviscosity;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue