Skip to content
This repository was archived by the owner on Nov 23, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
477 changes: 463 additions & 14 deletions AdvancedZones.cs

Large diffs are not rendered by default.

31 changes: 14 additions & 17 deletions AdvancedZones.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,38 +44,43 @@
<HintPath>lib\Assembly-CSharp-firstpass.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Rocket.API, Version=2.6.1.0, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="Rocket.API, Version=2.6.4.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>lib\Rocket.API.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Rocket.Core, Version=2.4.5.0, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="Rocket.Core, Version=2.4.8.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>lib\Rocket.Core.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Rocket.Unturned, Version=4.9.5.0, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="Rocket.Unturned, Version=4.9.3.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>lib\Rocket.Unturned.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=x86">
<SpecificVersion>False</SpecificVersion>
</Reference>
<Reference Include="UnityEngine, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>lib\UnityEngine.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Xml" />
<Reference Include="UnityEngine.CoreModule">
<Reference Include="UnityEngine, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>lib\UnityEngine.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>lib\UnityEngine.CoreModule.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.PhysicsModule">
<HintPath>lib\UnityEngine.PhysicsModule.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="AdvancedZones.cs" />
Expand All @@ -90,14 +95,6 @@
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Zone.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="lib\Assembly-CSharp-firstpass.dll" />
<Content Include="lib\Assembly-CSharp.dll" />
<Content Include="lib\Rocket.API.dll" />
<Content Include="lib\Rocket.Core.dll" />
<Content Include="lib\Rocket.Unturned.dll" />
<Content Include="lib\UnityEngine.dll" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
3 changes: 2 additions & 1 deletion AdvancedZonesConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ namespace Game4Freak.AdvancedZones
public class AdvancedZonesConfiguration : IRocketPluginConfiguration
{
public string version;
public int UpdateFrame;
// Old
public List<string> BlockedBuildablesListNames;
public List<List<int>> BlockedBuildables;
Expand Down Expand Up @@ -43,7 +44,7 @@ public void LoadDefaults()
{
//version = AdvancedZones.VERSION;
version = AdvancedZones.VERSION;

UpdateFrame = 10;
// Zones
Zones = new List<Zone>();
// BuildBlocklists
Expand Down
23 changes: 21 additions & 2 deletions Zone.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@ public class Zone
public List<Parameter> parameters;

public static string[] flagTypes = { "noDamage", "noVehicleDamage", "noLockpick", "noPlayerDamage", "noBuild", "noItemEquip", "noTireDamage", "noEnter", "noLeave", "enterMessage", "leaveMessage", "enterAddGroup", "enterRemoveGroup", "leaveAddGroup", "leaveRemoveGroup", "noZombie", "infiniteGenerator", "noVehicleCarjack",
"noPvP", "noVehicleSiphoning", "enterAddEffect", "leaveAddEffect", "enterRemoveEffect", "leaveRemoveEffect", "noAnimalDamage", "noZombieDamage" };
"noPvP", "noVehicleSiphoning", "enterAddEffect", "leaveAddEffect", "enterRemoveEffect", "leaveRemoveEffect", "noAnimalDamage", "noZombieDamage", "noObjectDamage", "noResourceDamage", "noSwapSeat", "noDequip", "noDropItem", "noChangeSign", "noOpenStorage", "noCraft", "noHarvest", "noBarricadeSalvage", "noStructureSalvage", "noBarricadeTransform", "noStructureTransform", "noItemSpawn", "noChat", "noTakeItem", "noExitVehicle", "noEnterVehicle" };
public static string[] flagDescs = { "No damage on structures or barricades", "No damage on vehicles", "No lockpick on vehicles", "No damage on players", "No placing of specific buildables", "No equiping of specific items", "No damage on tires", "No entering the zone", "No leaving the zone", "Message on entering the zone",
"Message on leaving the zone", "Group added on entering the zone", "Group removed on entering the zone", "Group added on leaving the zone", "Group removed on leaving the zone", "No zombies", "Infinitely running generators", "No carjacking of vehicles", "No damage on players from other players", "No siphoning of vehicles",
"Effect on entering the zone", "Effect on leaving the zone", "Effect cleared on entering the zone", "Effect cleared on leaving the zone", "No damge to animals", "No damage to zombies" };
"Effect on entering the zone", "Effect on leaving the zone", "Effect cleared on entering the zone", "Effect cleared on leaving the zone", "No damage to animals", "No damage to zombies", "No damage to objects", "No damage to resources", "No swapping seat in vehicle", "No dequiping items", "No dropping items", "No changing sign", "No opening storage", "No crafting", "No harvesting plants", "No salvaging barricades", "No salvaging structures", "No transforming barrdicades", "No transforming structures", "No item spawn", "No chatting", "No taking items",
"No exitting vehicle", "No entering vehicle"};
public static int noDamage = 0;
public static int noVehicleDamage = 1;
public static int noLockpick = 2;
Expand All @@ -72,6 +73,24 @@ public class Zone
public static int leaveRemoveEffect = 23;
public static int noAnimalDamage = 24;
public static int noZombieDamage = 25;
public static int noObjectDamage = 26;
public static int noResourceDamage = 27;
public static int noSwapSeat = 28;
public static int noDequip = 29;
public static int noDropItem = 30;
public static int noChangeSign = 31;
public static int noOpenStorage = 32;
public static int noCraft = 33;
public static int noHarvest = 34;
public static int noBarricadeSalvage = 35;
public static int noStructureSalvage = 36;
public static int noBarricadeTransform = 37;
public static int noStructureTransform = 38;
public static int noItemSpawn = 39;
public static int noChat = 40;
public static int noTakeItem = 41;
public static int noExitVehicle = 42;
public static int noEnterVehicle = 43;

public Zone()
{
Expand Down
Binary file modified lib/Assembly-CSharp-firstpass.dll
Binary file not shown.
Binary file modified lib/Assembly-CSharp.dll
Binary file not shown.
Binary file modified lib/UnityEngine.CoreModule.dll
Binary file not shown.
Binary file added lib/UnityEngine.PhysicsModule.dll
Binary file not shown.
Binary file modified lib/UnityEngine.dll
Binary file not shown.