SWBFGamers

Modding for the Original SWBF1 and SWBF2 => SWBF1 Modding => Topic started by: Led on October 17, 2011, 06:00:54 PM

Title: More than 32 AI
Post by: Led on October 17, 2011, 06:00:54 PM
OK, here is one way (I can't count that fast, but I think there were more than 32  :P  )

mission mod for player and server, requires server side map with local team cps defined
( you can use this map for example:  http://www.swbfgamers.com/index.php?action=downloads;sa=view;down=363 )

here is a video
http://www.xfire.com/video/4f0ecd/



-- ++++++++++++++++++++++++++++++++++++++++++

--  Local Stats
    SetTeamName(3, "locals")
    AddUnitClass(3, "imp_inf_storm_trooper",11);
    AddUnitClass(3, "imp_inf_shock_trooper",3);
    AddUnitClass(3, "imp_inf_pilottie",4);
    AddUnitClass(3, "imp_inf_scout_trooper",4);
    AddUnitClass(3, "imp_inf_dark_trooper",3);
    SetUnitCount(3, 25)



--  Local Stats
   
   
    SetTeamName(4, "locals")
    AddUnitClass(4, "imp_inf_storm_trooper",11);
    AddUnitClass(4, "imp_inf_shock_trooper",3);
    AddUnitClass(4, "imp_inf_pilottie",4);
    AddUnitClass(4, "imp_inf_scout_trooper",4);
    AddUnitClass(4, "imp_inf_dark_trooper",3);
    SetUnitCount(4, 25)


-- ++++++++++++++++++++++++++++++++++++++++++




Note:  the teams will fight each other unless you have them allied.


Title: Re: More than 32 AI
Post by: jdee-barc on October 17, 2011, 06:02:30 PM
it might just be for sp, what i'm talking about here but i've managed up to 150 ai in singplayer. might not work in mp, but then again, i don't have any knowledge of multiplayer modding.
Title: Re: More than 32 AI
Post by: SleepKiller on October 17, 2011, 06:03:49 PM
And heres another, a simple LUA command to do it.


ScriptCB_SetNumBots(100);

That command will set the number of bots per team you would like but be warned going over board will cause a crash.
Title: Re: More than 32 AI
Post by: Led on October 17, 2011, 06:12:22 PM
Ah, nice command sleepkiller! TY   :cheers:
Title: Re: More than 32 AI
Post by: Phobos on October 17, 2011, 06:21:12 PM
Define "overboard", numerically please. Thanks for the code I will be testing it.
Title: Re: More than 32 AI
Post by: SleepKiller on October 17, 2011, 06:26:48 PM
I dunno know I tested it with 100 the client crashed but the server side went on and its reinforcments were droping at an unbelivable rateso that tells me 100 AI had spawned but the connection could not handle it.
Title: Re: More than 32 AI
Post by: Led on October 17, 2011, 06:29:04 PM
Quote from: Phobos Developer on October 17, 2011, 06:21:12 PM
Define "overboard", numerically please. Thanks for the code I will be testing it.

I think he means it depends on the map and memory usage.  It could vary by map.
Title: Re: More than 32 AI
Post by: Phobos on October 17, 2011, 06:30:14 PM
Increasing memory caps is something else I was wondering. Model memory, visual effects memory, other types of memory that aren't controlled by memorypool settings.
Title: Re: More than 32 AI
Post by: SleepKiller on October 17, 2011, 06:31:51 PM
 :slap: DUH! Stupid me. You'll need to increase the Aimer memory pool as wel. :slap:
EhPortal 1.34 © 2024, WebDev