Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. MW3 Modding Support & Discussion
  3. Need help with coding bot killstreaks.

Need help with coding bot killstreaks.

Scheduled Pinned Locked Moved MW3 Modding Support & Discussion
1 Posts 1 Posters 117 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • TheOreoSlayerundefined Offline
    TheOreoSlayerundefined Offline
    TheOreoSlayer
    wrote on last edited by
    #1

    If anyone could be of help with modding bots having custom killstreaks id greatly appreciate it. Ive gotten close but ran into a wall, or some kind of limitation.
    Im using the bot warfare mod. Heres where im at so far trying to get bots with specific names to have specific killstreaks. And every test ive done so far (testing each bot 1 by 1) works until I do like 6v6. Any dms or help would really be a awesome. Might even pay someone to fix it.

    // Initialize ksType with a default value
    killstreaks = ["uav_support", "deployable_vest", "stealth_airstrike"];
    ksType = "streaktype_support";

    // Sample killstreak assignments
    if (self.name == "Oreo")
    {                    
        // Randomly choose between 2 sets of killstreaks for lower level bots.
        randomChoice = randomInt(2); // Randomly returns 0 or 1
        if (randomChoice == 0)
        {
            // Assign a specific set of killstreaks for these bots
            killstreaks = ["predator_missile", "helicopter", "helicopter_flares"];
            ksType = "streaktype_assault"; // Set this to the appropriate type
        }
        else if (randomChoice == 1)
        {
            killstreaks = ["uav_support", "sam_turret", "triple_uav"];
            ksType = "streaktype_support"; // Set this to the appropriate type
        }
    }else if (self.name == "Ironbird") 
    {
        killstreaks = ["triple_uav", "stealth_airstrike", "escort_airdrop"];
        ksType = "streaktype_support";
    }        
    else if (self.name == "Slurp" || self.name == "LionHeardt" || self.name == "Death" || self.name == "Vampire Slayer")
    {
        // Assign a specific set of killstreaks for these bots
        killstreaks = ["uav_support", "counter_uav", "sam_turret"];
        ksType = "streaktype_support"; // Set this to the appropriate type
    
    1 Reply Last reply
    0

    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Donate