Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/maps/random/jebel_barkal_triggers.js
Show First 20 Lines • Show All 470 Lines • ▼ Show 20 Lines | for (let patrolTarget of shuffleArray(this.GetTriggerPoints(jebelBarkal_cityPatrolGroup_triggerPointPath))) | ||||
ProcessCommand(jebelBarkal_playerID, { | ProcessCommand(jebelBarkal_playerID, { | ||||
"type": "patrol", | "type": "patrol", | ||||
"entities": groupEntities, | "entities": groupEntities, | ||||
"x": pos.x, | "x": pos.x, | ||||
"z": pos.y, | "z": pos.y, | ||||
"targetClasses": { | "targetClasses": { | ||||
"attack": jebelBarkal_cityPatrolGroup_balancing.targetClasses() | "attack": jebelBarkal_cityPatrolGroup_balancing.targetClasses() | ||||
}, | }, | ||||
"queued": true, | "ignoreAttackEffects": { | ||||
"allowCapture": false | "Capture": true | ||||
}, | |||||
"queued": true | |||||
}); | }); | ||||
} | } | ||||
} | } | ||||
this.DoAfterDelay(jebelBarkal_cityPatrolGroup_interval(time) * 60 * 1000, "JebelBarkal_SpawnCityPatrolGroups", {}); | this.DoAfterDelay(jebelBarkal_cityPatrolGroup_interval(time) * 60 * 1000, "JebelBarkal_SpawnCityPatrolGroups", {}); | ||||
}; | }; | ||||
Trigger.prototype.JebelBarkal_SpawnTemplates = function(spawnEnt, templateCounts) | Trigger.prototype.JebelBarkal_SpawnTemplates = function(spawnEnt, templateCounts) | ||||
▲ Show 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | for (let spawnEnt of TriggerHelper.MatchEntitiesByClass(this.jebelBarkal_attackerGroupSpawnPoints, spawnPointBalancing.buildingClasses)) | ||||
ProcessCommand(jebelBarkal_playerID, { | ProcessCommand(jebelBarkal_playerID, { | ||||
"type": "patrol", | "type": "patrol", | ||||
"entities": entities, | "entities": entities, | ||||
"x": pos.x, | "x": pos.x, | ||||
"z": pos.y, | "z": pos.y, | ||||
"targetClasses": { | "targetClasses": { | ||||
"attack": spawnPointBalancing.targetClasses() | "attack": spawnPointBalancing.targetClasses() | ||||
}, | }, | ||||
"queued": true, | "ignoreAttackEffects": { | ||||
"allowCapture": false | "Capture": true | ||||
}, | |||||
"queued": true | |||||
}); | }); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
this.debugLog("Total attackers: " + totalSpawnCount); | this.debugLog("Total attackers: " + totalSpawnCount); | ||||
if (totalSpawnCount) | if (totalSpawnCount) | ||||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator