SWBFGamers

Modding for the Original SWBF1 and SWBF2 => SWBF1 Modding Tutorials => Topic started by: wsa30h on December 14, 2019, 12:49:15 PM

Title: tutorial on how to give locals an invisible reinforcements counter.
Post by: wsa30h on December 14, 2019, 12:49:15 PM
simply add this under your locals lets say you have tusken raiders like in the tatooine dune sea it normally looks like this -  Local Stats
    SetTeamName(3, "locals")
    AddUnitClass(3, "tat_inf_tuskenraider", 5);
    AddUnitClass(3, "tat_inf_tuskenhunter", 2);
    SetUnitCount(3, 14) 
   
but we add this line  under set unit count SetReinforcementCount(3, 250)  3 being the team and the second number how much reinforcements you want to have

    SetTeamName(3, "locals")
    AddUnitClass(3, "tat_inf_tuskenraider", 5);
    AddUnitClass(3, "tat_inf_tuskenhunter", 2);
    SetUnitCount(3, 14)
    SetReinforcementCount(3, 250)
Title: Re: tutorial on how to give locals an invisible reinforcements counter.
Post by: Dark_Phantom on December 14, 2019, 06:59:26 PM
Other than it's missing a comma, good job.
I can see in memory where it is running correctly, which I didn't expect, and it follows the same rules as reinforcements of other teams.
Title: Re: tutorial on how to give locals an invisible reinforcements counter.
Post by: Giftheck on December 14, 2019, 11:50:17 PM
Nice find!
Title: Re: tutorial on how to give locals an invisible reinforcements counter.
Post by: wsa30h on December 15, 2019, 03:21:40 AM
thanks guys i just though i wish there was a way to give locals a reinforcements counter then i thought what if i try this probably wont work, to my surprise it works perfectly. fixed the missing comma.
Title: Re: tutorial on how to give locals an invisible reinforcements counter.
Post by: Dark_Phantom on December 15, 2019, 10:29:43 AM
Yeah I can see it in memory but it probably would require some type of source modification to show it
Title: Re: tutorial on how to give locals an invisible reinforcements counter.
Post by: wsa30h on December 15, 2019, 10:51:05 AM
most likely it cant be shown without a source modification also found a way to give team 4 vehicles fr rumble conquest the only downside is that i cant turn them white like in bf2 so there will be 2 red teams.
Title: Re: tutorial on how to give locals an invisible reinforcements counter.
Post by: Ascertes on December 16, 2019, 09:52:53 PM
That's...actually really useful! Great job! This is especially useful for me since I love having local teams on my maps  :cheer:
Title: Re: tutorial on how to give locals an invisible reinforcements counter.
Post by: wsa30h on December 17, 2019, 03:00:32 AM
glad you found it useful it is useful  for me because my maps are rumble conquest style so now i can limit team 3 and 4s reinforcements.  :)
EhPortal 1.34 © 2024, WebDev