Lua's Spawn Rework

  • Well my file is valid I just copy a part of it because of the character limitations. But I find the culprit : it seems to be the SWORD International Mk-18 .338 LM marksman rifle I tried to add to the scav which should be not define as it should. I will take a closer look.

  • Lua added a new version:

    Lua
    Quote
    • Updated for SPT 3.2.0
    • Removed option "cursedAssault_chance" for PMC in pattern json
      • You can use them on "bear/usec_type" in pattern json
    • Lua-Default.json pattern update
      • For SPT 3.2.0 only, "gifter" is disabled in default pattern json
        • Do not use it until next SPT 3.2.0 hotfix or update
      • "spawn_scav_raider_location_chance" to 44 from 33
    • Supported "akiVersion": 3.2.0
  • Can anyone give example of how to make BossKnight spawn on customs?
    This is mine. In many raids i havent seen him. Maybe i'm doing smth wrong?


    {
                        "name":"bossKnight",
                        "chance":30,
                        "difficulty":"normal, hard",
                        "escort_type":null,
                        "escort_difficulty":null,
                        "wave_total":1,
                        "wave_spawn_time_for_each_min":25,
                        "wave_spawn_time_for_each_max":30,
                        "wave_spawn_all_same_location":false,
                        "spawn_locations":{
                            "ZoneScavBase":1,
                            "ZoneGasStation":0,
                            "ZoneDormitory":0
    },
                        "trigger_id":"",
                        "trigger_name":"",
                        "supports":null,
                        "random_time_spawn": false
    },

  • my cfg

    Yeah but if i have like 30% chance...


    dis my cfg

            "bigmap":{
                "map_rules": "Normal",
                "show_generated_bots":"all",
                "max_spawn_time": 3000,
                "max_spawn_time_limit_warning":true,
                "max_bot_per_zone": 20,
                "allow_other_bot_spawn_with_boss":true,
                "has_boss":true,
                "bosses_spawn_location_type":"evenly",
                "max_boss":2,
                "boss_spawn_trying_loop":0,
                "allow_same_boss_spawn":false,
                "bosses_also_use_scavs_spawn_locations":false,
                "bosses_also_use_raiders_spawn_locations":false,
                "cultists_spawn_count_for_max_boss": false,
                "cultists_spawn_at_own_locations": true,
                "boss_settings":[
    {
                        "name":"bossBully",
                        "chance":100,
                        "difficulty":"normal, hard",
                        "escort_type":"followerBully",
                        "escort_difficulty":"normal, hard",
                        "escort_amount_min":4,
                        "escort_amount_max":4,
                        "wave_total":1,
                        "wave_spawn_time_for_each_min":600,
                        "wave_spawn_time_for_each_max":900,
                        "wave_spawn_all_same_location":false,
                        "spawn_locations":{
                            "ZoneBrige":0,
                            "ZoneCrossRoad":0,
                            "ZoneOldAZS":0,
                            "ZoneBlockPost":0,
                            "ZoneDormitory":0,
                            "ZoneGasStation":1,
                            "ZoneFactoryCenter":0,
                            "ZoneFactorySide":0,
                            "ZoneWade":0,
                            "ZoneScavBase":0,
                            "ZoneTankSquare":0,
                            "ZoneCustoms":0
    },
                        "trigger_id":"",
                        "trigger_name":"",
                        "supports":null,
                        "random_time_spawn": true
    },
    {
                        "name":"bossKnight",
                        "chance":100,
                        "difficulty":"normal, hard",
                        "wave_total":1,
                        "wave_spawn_time_for_each_min":600,
                        "wave_spawn_time_for_each_max":900,
                        "wave_spawn_all_same_location":false,
                        "spawn_locations":{
                            "ZoneBrige":0,
                            "ZoneCrossRoad":0,
                            "ZoneOldAZS":0,
                            "ZoneBlockPost":0,
                            "ZoneDormitory":0,
                            "ZoneGasStation":0,
                            "ZoneFactoryCenter":0,
                            "ZoneFactorySide":0,
                            "ZoneWade":0,
                            "ZoneScavBase":1,
                            "ZoneTankSquare":0,
                            "ZoneCustoms":0
    },
                        "trigger_id":"",
                        "trigger_name":"",
                        "supports":[
    {
                                "BossEscortType":"followerBigPipe",
                                "BossEscortDifficult":[
                                    "normal, hard"
    ],
                                "BossEscortAmount_min":1,
                                "BossEscortAmount_max":1
    },
    {
                                "BossEscortType":"followerBirdEye",
                                "BossEscortDifficult":[
                                    "normal, hard"
    ],
                                "BossEscortAmount_min":1,
                                "BossEscortAmount_max":1
    }
    ],
                        "random_time_spawn": true
    }
    ],
                "wave_settings":{
                    "scav_waves":{
                        "wave_total":12,
                        "slot_min":1,
                        "slot_max":3,
                        "insta_spawn_waves":2,
                        "spawn_time_delay_after_insta_wave": 0,
                        "spawn_time_delay_for_each_min": 100,
                        "spawn_time_delay_for_each_max": 100,
                        "spawn_time_delay_accumulate_for_each_zone": false,
                        "spawn_location_type": "evenly",
                        "difficulty":{
                            "easy":2,
                            "normal":5,
                            "hard":2,
                            "impossible":1
    },
                        "spawn_locations":{
                            "ZoneBrige":0,
                            "ZoneCrossRoad":0,
                            "ZoneOldAZS":1,
                            "ZoneBlockPost":1,
                            "ZoneDormitory":0,
                            "ZoneGasStation":1,
                            "ZoneFactoryCenter":0,
                            "ZoneFactorySide":0,
                            "ZoneWade":0,
                            "ZoneScavBase":1,
                            "ZoneTankSquare":0,
                            "ZoneCustoms":0
    }
    },
                    "sniper_waves":{
                        "wave_total":3,
                        "slot_min":1,
                        "slot_max":1,
                        "insta_spawn_waves":1,
                        "spawn_time_delay_after_insta_wave": 180,
                        "spawn_time_delay_for_each_min": 100,
                        "spawn_time_delay_for_each_max": 100,
                        "spawn_time_delay_accumulate_for_each_zone": false,
                        "spawn_location_type": "evenly",
                        "difficulty":{
                            "easy":0,
                            "normal":1,
                            "hard":2,
                            "impossible":1
    },
                        "spawn_locations":{
                            "ZoneSnipeTower":1,
                            "ZoneSnipeFactory":1,
                            "ZoneSnipeBrige":1,
                            "ZoneBlockPostSniper":1,
                            "ZoneBlockPostSniper3":1
    }
    },
                    "raider_waves":{
                        "raider_default_role":"pmcBot",
                        "raider_high_role":true,
                        "raider_high_role_chance":22,
                        "raider_high_role_list":"followerBully, followerGluharAssault, followerGluharScout, followerGluharSecurity, followerGluharSnipe, followerKojaniy, followerSanitar",
                        "wave_total":3,
                        "slot_min":3,
                        "slot_max":4,
                        "insta_spawn_waves":1,
                        "spawn_time_delay_after_insta_wave": 100,
                        "spawn_time_delay_for_each_min": 100,
                        "spawn_time_delay_for_each_max": 100,
                        "spawn_time_delay_accumulate_for_each_zone": false,
                        "spawn_location_type": "evenly",
                        "difficulty":{
                            "easy":0,
                            "normal":6,
                            "hard":3,
                            "impossible":1
    },
                        "spawn_locations":{
                            "ZoneDormitory":0,
                            "ZoneGasStation":2,
                            "ZoneWade":0,
                            "ZoneScavBase":1,
                            "ZoneCrossRoad":0
    }
    },
                    "pmc_waves":{
                        "wave_total":5,
                        "slot_min":4,
                        "slot_max":6,
                        "insta_spawn_waves":0,
                        "spawn_scav_raider_location_chance": 0,
                        "spawn_time_delay_after_insta_wave": 600,
                        "spawn_time_delay_for_each_min": 400,
                        "spawn_time_delay_for_each_max": 400,
                        "spawn_time_delay_accumulate_for_each_zone": false,
                        "spawn_location_type": "together",
                        "difficulty":{
                            "easy":2,
                            "normal":6,
                            "hard":1,
                            "impossible":1
    },
                        "spawn_locations":{
                            "ZoneDormitory":3,
                            "ZoneGasStation":0,
                            "ZoneWade":1,
                            "ZoneScavBase":0,
                            "ZoneCrossRoad":1,
                            "ZoneCustoms":2
    }
    }
    }
    },

  • I am very confused with how the boss spawns are now, they are all set on all maps with 5% any advice is very much appreciated.

  • Lua added a new version:

    Lua
    Quote
    • Fixed "gifter" role for temporary until 3.2.1 hotfix releases
    • Fixed customs map "OpenZones" for missing "ZoneScavBase"
    • Lua-Default.json pattern update
      • All "gifter" chance to 5
      • All "random boss" chance to 10 from 5
    • Supported "akiVersion": 3.2.1
  • I,m trying to spawn rogues as rider spawns on Lighthouse but i feel like im getting only PMC as a result


    also what does those 2 lines do?

    "usec_type": "exUsec",

    "bear_type": "followerBigPipe",


    Definately getting only pmc bots instead of rogues.

    for tests i even modified factory:

  • To spawn raiders (here in customs) :

    "usec_type": "exUsec", ---> USEC PMCs will have the AI of rogues (same as live)

    "bear_type": "followerBigPipe", --> BEAR PMCs will have the AI of Big Pipe (same as live)


    For rogues, I'm not sure

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!