Skip to content

Commit

Permalink
Merge pull request #83 from InvalidArgument3/assets
Browse files Browse the repository at this point in the history
zonestuff
  • Loading branch information
InvalidArgument3 authored Jul 2, 2024
2 parents f9abde5 + 15f344b commit 20c8013
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CharacterCollisionDamageDisabler/metadata.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<ModMetadata xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ModVersion>1.0</ModVersion>
</ModMetadata>
11 changes: 11 additions & 0 deletions CharacterCollisionDamageDisabler/modinfo.sbmi
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<MyObjectBuilder_ModInfo xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SteamIDOwner>76561198071098415</SteamIDOwner>
<WorkshopId>0</WorkshopId>
<WorkshopIds>
<WorkshopId>
<Id>3280195552</Id>
<ServiceName>Steam</ServiceName>
</WorkshopId>
</WorkshopIds>
</MyObjectBuilder_ModInfo>
Binary file added CharacterCollisionDamageDisabler/thumb.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions Layman's SafeZone/Data/Scripts/bob/bobzone_activemeasures.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public override void UpdateBeforeSimulation()
playerInZone[player.Identity.IdentityId] = true;
var color = GetFactionColor(zoneblock.OwnerId);
var colorVector = color.ToVector4();
MyVisualScriptLogicProvider.SendChatMessageColored("You have entered the zone.", colorVector, zoneblock.CubeGrid.CustomName);
//MyVisualScriptLogicProvider.SendChatMessageColored("You have entered the zone.", colorVector, zoneblock.CubeGrid.CustomName);
}
}
}
Expand All @@ -112,7 +112,7 @@ public override void UpdateBeforeSimulation()
if (playerInZone.ContainsKey(player.Identity.IdentityId) && playerInZone[player.Identity.IdentityId])
{
playerInZone[player.Identity.IdentityId] = false;
MyAPIGateway.Utilities.ShowNotification("You have left the zone.", 2000, MyFontEnum.Red);
//MyAPIGateway.Utilities.ShowNotification("You have left the zone.", 2000, MyFontEnum.Red);
}
}
});
Expand All @@ -122,6 +122,7 @@ protected override void UnloadData()
{
// No direct way to unregister damage handlers in current SE API
// Ensure no references to prevent memory leaks or unintended behavior
// uhh yeah sure buddy
MyAPIGateway.Session.DamageSystem.RegisterBeforeDamageHandler(9, null);
players?.Clear();
dirties?.Clear();
Expand Down

0 comments on commit 20c8013

Please sign in to comment.