Jump to content
Sign in to follow this  
Victrix

Editing current ai squad formations

Recommended Posts

I hope this isnt a recent repost, sorry for the noobish question, but how do i go about editing OFP infantry squads: adding more men, assigning a defult formation, number of magazines etc.

Share this post


Link to post
Share on other sites

You can add new groups to the editor dialog like this:

-Make a folder ofp/addons/myGroups

-In it, make a text file config.cpp:

http://pastebin.com/f3838f322

-Pack the folder as myGroups.pbo with your favourite pbo packing tool

Now you can see the new preset groups in the editor. Missions won't require the mygroups addon. The skill setting is defined by the unit's rank unfortunately.

To edit the weapons and magazines, you need to make new soldier classes (like we created the new groups here) or edit the exsisting with a modified main config, this would require the players to have the "addon" soldiers or the modified config too. Default formation could be scripted to addon units with an init eventhandler for example.

Share this post


Link to post
Share on other sites

thanks for the quick reply, im still stuck with the default formations, could you maybe direct me to a tutorial or atleast tell me what files i should look in

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×