public override void AssignParameters(SpawnerEntityMissionHelper _spawnerMissionHelper) { base.AssignParameters(_spawnerMissionHelper); _spawnerMissionHelper.SpawnedEntity.GetFirstScriptOfType <DestructableComponent>().MaxHitPoint = 15000f; SiegeTower firstScriptOfType = _spawnerMissionHelper.SpawnedEntity.GetFirstScriptOfType <SiegeTower>(); firstScriptOfType.MaxSpeed *= 1f; firstScriptOfType.MinSpeed *= 1f; }
public override void AssignParameters(SpawnerEntityMissionHelper _spawnerMissionHelper) { BatteringRam firstScriptOfType = _spawnerMissionHelper.SpawnedEntity.GetFirstScriptOfType <BatteringRam>(); firstScriptOfType.AddOnDeployTag = this.AddOnDeployTag; firstScriptOfType.RemoveOnDeployTag = this.RemoveOnDeployTag; firstScriptOfType.MaxSpeed *= this.SpeedModifierFactor; firstScriptOfType.MinSpeed *= this.SpeedModifierFactor; firstScriptOfType.AssignParametersFromSpawner(this.GateTag, this.SideTag, this.BridgeNavMeshID_1, this.BridgeNavMeshID_2, this.DitchNavMeshID_1, this.DitchNavMeshID_2, this.GroundToBridgeNavMeshID_1, this.GroundToBridgeNavMeshID_2, this.PathEntityName); }
public override void AssignParameters(SpawnerEntityMissionHelper _spawnerMissionHelper) { SiegeLadder firstScriptOfType = _spawnerMissionHelper.SpawnedEntity.GetFirstScriptOfType <SiegeLadder>(); firstScriptOfType.AddOnDeployTag = this.AddOnDeployTag; firstScriptOfType.RemoveOnDeployTag = this.RemoveOnDeployTag; firstScriptOfType.AssignParametersFromSpawner(this.SideTag, this.TargetWallSegmentTag, this.OnWallNavMeshId, this.DownStateRotationRadian, this.UpperStateRotationRadian, this.BarrierTagToRemove, this.IndestructibleMerlonsTag); List <GameEntity> children = new List <GameEntity>(); _spawnerMissionHelper.SpawnedEntity.GetChildrenRecursive(ref children); children.Find((Predicate <GameEntity>)(x => x.Name == "initial_wait_pos")).GetFirstScriptOfType <TacticalPosition>().SetWidthFromSpawner(this.TacticalPositionWidth); }
public override void AssignParameters(SpawnerEntityMissionHelper _spawnerMissionHelper) { foreach (GameEntity child in _spawnerMissionHelper.SpawnedEntity.GetChildren()) { if (child.GetFirstScriptOfType <Mangonel>() != null) { child.GetFirstScriptOfType <Mangonel>().AddOnDeployTag = this.AddOnDeployTag; child.GetFirstScriptOfType <Mangonel>().RemoveOnDeployTag = this.RemoveOnDeployTag; break; } } }
public override void AssignParameters(SpawnerEntityMissionHelper _spawnerMissionHelper) { SiegeTower firstScriptOfType = _spawnerMissionHelper.SpawnedEntity.GetFirstScriptOfType <SiegeTower>(); firstScriptOfType.AddOnDeployTag = this.AddOnDeployTag; firstScriptOfType.RemoveOnDeployTag = this.RemoveOnDeployTag; firstScriptOfType.MaxSpeed *= this.SpeedModifierFactor; firstScriptOfType.MinSpeed *= this.SpeedModifierFactor; Mat3 identity = Mat3.Identity; identity.RotateAboutSide(this.RampRotationRadian); firstScriptOfType.AssignParametersFromSpawner(this.PathEntityName, this.TargetWallSegmentTag, this.SideTag, this.SoilNavMeshID1, this.SoilNavMeshID2, this.DitchNavMeshID1, this.DitchNavMeshID2, this.GroundToSoilNavMeshID1, this.GroundToSoilNavMeshID2, this.SoilGenericNavMeshID, this.GroundGenericNavMeshID, identity, this.BarrierTagToRemove); }
public virtual void AssignParameters(SpawnerEntityMissionHelper _spawnerMissionHelper) { }
public override void AssignParameters(SpawnerEntityMissionHelper _spawnerMissionHelper) { _spawnerMissionHelper.SpawnedEntity.GetFirstScriptOfType <Ballista>().AddOnDeployTag = this.AddOnDeployTag; _spawnerMissionHelper.SpawnedEntity.GetFirstScriptOfType <Ballista>().RemoveOnDeployTag = this.RemoveOnDeployTag; }