Weapon Scripting Overhaul

Weapons are now monolithic behaviors
Various new weapon behavior types implemented
All weapons have optional magazine and reload mechanic
Visibility now decays globally
This commit is contained in:
Reinier Vens 2021-01-25 05:53:36 +00:00
commit 357f9db329
95 changed files with 2571 additions and 754 deletions

View file

@ -414,12 +414,6 @@ public static class ObjectExtensions
{
return (T)Copy((Object)original);
}
public static bool IntersectsWith(this Rect r1, Rect r2)
{
return (r2.x + r2.width >= r1.x && r2.x <= r1.x + r1.width) &&
(r2.y + r2.height >= r1.y && r2.y <= r1.y + r1.height);
}
}
public class ReferenceEqualityComparer : EqualityComparer<Object>