/* * Author: Needles * https://steamcommunity.com/profiles/76561198026257137/ */ printl("*** BRUSH"); ::Brush <- {}; function Brush::BuildNavPrefer(team, tags, bboxPreferList, bboxAvoidList) { if (bboxPreferList != null) { foreach(bbox in bboxPreferList) { local ent_funcNavPrefer = SpawnEntityFromTable("func_nav_prefer", { origin = Vector(0.0, 0.0, 0.0), tags = tags, teamnum = team, spawnflags = 1, }); ent_funcNavPrefer.SetSize(bbox.mins, bbox.maxs); ent_funcNavPrefer.SetSolid(Constants.ESolidType.SOLID_BBOX); } } if (bboxAvoidList != null) { foreach(bbox in bboxAvoidList) { local ent_funcNavPrefer = SpawnEntityFromTable("func_nav_avoid", { origin = Vector(0.0, 0.0, 0.0), tags = tags, teamnum = team, spawnflags = 1, }); ent_funcNavPrefer.SetSize(bbox.mins, bbox.maxs); ent_funcNavPrefer.SetSolid(Constants.ESolidType.SOLID_BBOX); } } }