You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// information needed to build base pathfinding map (onto which forbidden/goal zones are later rasterized), if needed (lazy, since it's somewhat expensive and not always needed)
hints.PathfindMapBounds=newArenaBoundsRect(e.ViewWidth*resolution,e.ViewHeight*resolution,MapResolution:resolution);// note: we don't bother caching these bounds, they are very lightweight
169
+
hints.PathfindMapBounds=newArenaBoundsRect(e.ViewWidth*resolution,e.ViewHeight*resolution,mapResolution:resolution);// note: we don't bother caching these bounds, they are very lightweight
// radius is the largest horizontal/vertical dimension: radius for circle, max of width/height for rect
3
3
// note: this class to represent *relative* arena bounds (relative to arena center) - the reason being that in some cases effective center moves every frame, and bounds caches a lot (clip poly & base map for pathfinding)
4
4
// note: if arena bounds are changed, new instance is recreated; max approx error can change without recreating the instance
varmap=newPathfinding.Map(MapResolution,default,halfWidth+0.5f,halfHeight+0.5f,Rotation);// +0.5 offset because otherwise the AI will not run back into the rectangle for some reason
238
+
// pixels can be partially covered by the rectangle, so we need to rasterize it carefully
// for creating complex bounds by using arrays of shapes
245
311
// first array contains platforms that will be united, second optional array contains shapes that will be subtracted
246
312
// for convenience third array will optionally perform additional unions at the end
247
313
// offset shrinks the pathfinding map only, for example if the edges of the arena are deadly and floating point errors cause the AI to fall of the map or problems like that
248
314
// AdjustForHitbox adjusts both the visible map and the pathfinding map
sealed class GloamingGleam(BossModulemodule):Components.SimpleAOEs(module,(uint)AID.GloamingGleam,newAOEShapeRect(50f,6f));
14
14
sealed class RazorFang(BossModulemodule):Components.SimpleAOEs(module,(uint)AID.RazorFang,20f);
15
15
16
-
[ModuleInfo(BossModuleInfo.Maturity.Verified,Contributors="The Combat Reborn Team (Malediktus)",PrimaryActorOID=(uint)OID.FaithboundKirin,GroupType=BossModuleInfo.GroupType.CFC,GroupID=1058u,NameID=14053u,Category=BossModuleInfo.Category.Alliance,Expansion=BossModuleInfo.Expansion.Dawntrail,SortOrder=2)]
16
+
[ModuleInfo(BossModuleInfo.Maturity.AISupport,Contributors="The Combat Reborn Team (Malediktus)",PrimaryActorOID=(uint)OID.FaithboundKirin,GroupType=BossModuleInfo.GroupType.CFC,GroupID=1058u,NameID=14053u,Category=BossModuleInfo.Category.Alliance,Expansion=BossModuleInfo.Expansion.Dawntrail,SortOrder=2)]
17
17
public sealed class A21FaithboundKirin(WorldStatews,Actorprimary):BossModule(ws,primary,DefaultCenter,DefaultArena)
Copy file name to clipboardExpand all lines: BossMod/Modules/Dawntrail/Alliance/A22UltimaOmega/Crash.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ public override void AddAIHints(int slot, Actor actor, PartyRolesConfig.Assignme
15
15
{
16
16
varcenter=Arena.Center;
17
17
vardir=-25f*c.Direction.ToDirection();
18
-
hints.AddForbiddenZone(newSDKnockbackInAABBRectFixedDirection(center,dir,19f,23.5f));// rect intentionally slightly smaller to prevent sus knockback
18
+
hints.AddForbiddenZone(newSDKnockbackInAABBRectFixedDirection(center,dir,19f,23.5f),act);// rect intentionally slightly smaller to prevent sus knockback
0 commit comments