View unanswered posts | View active topics It is currently Sat Oct 20, 2018 2:22 pm



Reply to topic  [ 5 posts ] 
 Restrict or Force A.I. purchases? 
Author Message

Joined: Tue May 06, 2014 9:11 pm
Posts: 16
Reply with quote
Post Restrict or Force A.I. purchases?
Hello, if there's any method to control this, I'd love to apply it to a few mods. Anyone know of a method?

Thanks a lot! o7


Thu Mar 29, 2018 4:39 am
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 10327
Location: Here
Reply with quote
Post Re: Restrict or Force A.I. purchases?
A little more detail on what you're specifically trying to accomplish would help. Without any additional information, all I can say is that AI purchases are more or less controlled by the mission script or the metagame campaign code.


Sun Apr 01, 2018 4:34 am
Profile

Joined: Tue May 06, 2014 9:11 pm
Posts: 16
Reply with quote
Post Re: Restrict or Force A.I. purchases?
CaveCricket48 wrote:
A little more detail on what you're specifically trying to accomplish would help. Without any additional information, all I can say is that AI purchases are more or less controlled by the mission script or the metagame campaign code.


Thank you. Basically I want to stop custom units in different factions from buying default weapons, they keep loading up on useless "smg" or "scatterguns"


Thu Sep 20, 2018 10:36 pm
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 10327
Location: Here
Reply with quote
Post Re: Restrict or Force A.I. purchases?
It depends on the mission. The activity script is what controls spawning and AI loadout, so you'll have to muck with that to get the result you want.

For example, in Base.rte/Activities/SkirmishDefense.lua , you have the functions like SkirmishDefense:CreateEngineer, SkirmishDefense:CreateBreachInfantry, SkirmishDefense:CreateScoutInfantry, etc. that specify how the AI spawns are given weapons. Some activities might be different from others, especially modded ones.


Fri Sep 21, 2018 3:36 am
Profile

Joined: Fri Sep 10, 2010 1:48 am
Posts: 657
Location: Halifax, Canada
Reply with quote
Post Re: Restrict or Force A.I. purchases?
Aren't weapon choices based on faction for base activities anyway? So the only way they'll buy default weapons is if their faction has nothing that fits in the category they're supposed to buy from (e.g. assault rifles)? Or am I remembering incorrectly?


Fri Sep 21, 2018 4:02 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.015s | 13 Queries | GZIP : Off ]