mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-04-29 15:35:24 +00:00
Better Global Viscosity
This commit is contained in:
parent
5cf94ac596
commit
66fc9947fd
1 changed files with 6 additions and 6 deletions
12
Classic/scripts/autoexec/TacoOverrides.cs
Normal file → Executable file
12
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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -257,7 +257,7 @@ function VehicleData::respawn(%data, %marker)
|
||||||
{
|
{
|
||||||
%mask = $TypeMasks::PlayerObjectType | $TypeMasks::VehicleObjectType | $TypeMasks::TurretObjectType;
|
%mask = $TypeMasks::PlayerObjectType | $TypeMasks::VehicleObjectType | $TypeMasks::TurretObjectType;
|
||||||
InitContainerRadiusSearch(%marker.getWorldBoxCenter(), %data.checkRadius, %mask);
|
InitContainerRadiusSearch(%marker.getWorldBoxCenter(), %data.checkRadius, %mask);
|
||||||
if(containerSearchNext() == 0)
|
if(containerSearchNext() == 0)
|
||||||
{
|
{
|
||||||
%newObj = %data.create(%marker.curTeam, %marker);
|
%newObj = %data.create(%marker.curTeam, %marker);
|
||||||
%newObj.startFade(1000, 0, false);
|
%newObj.startFade(1000, 0, false);
|
||||||
|
|
@ -285,7 +285,7 @@ function VehicleData::createPositionMarker(%data, %obj)
|
||||||
deployed = %obj.deployed;
|
deployed = %obj.deployed;
|
||||||
curTeam = %obj.team;
|
curTeam = %obj.team;
|
||||||
respawnTime = %obj.respawnTime;
|
respawnTime = %obj.respawnTime;
|
||||||
};
|
};
|
||||||
%marker.setTransform(%obj.getTransform());
|
%marker.setTransform(%obj.getTransform());
|
||||||
MissionCleanup.add(%marker);
|
MissionCleanup.add(%marker);
|
||||||
return %marker;
|
return %marker;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue