Forged Alliance Forever Forged Alliance Forever Forums 2019-09-09T22:05:02+02:00 /feed.php?f=40&t=18091 2019-09-09T22:05:02+02:00 2019-09-09T22:05:02+02:00 /viewtopic.php?t=18091&p=178062#p178062 <![CDATA[Re: Any mods that will make AI not to shoot at wall ?]]>
Uveso wrote:
I don't think that anyone will make a mod for this.
You need to hook into every AI attack function for GPG, Sorian and all other AIs to make this work.

You need to patch these (34) functions:

File Platoon.lua:
HuntAI
GuardMarker
GuardBase
PatrolBaseVectorsAI
GunshipHuntAI
InterceptorAI
StrikeForceAI
CarrierAI
NavalForceAI
AttackForceAI
GhettoAI
AirHuntAI
FighterHuntAI
GuardBaseSorian
NavalForceAISorian
NavalHuntAI
HuntAISorian
CDRHuntAISorian
GhettoAISorian
AttackForceAISorian
StrikeForceAISorian


File AIBehaviors.lua:
CDROverCharge
FatBoyBehavior
CzarBehavior
AhwassaBehavior
TickBehavior
BehemothBehavior
CDRRunAwaySorian
FatBoyBehaviorSorian
CzarBehaviorSorian
AhwassaBehaviorSorian
TickBehaviorSorian
ScathisBehaviorSorian
BehemothBehaviorSorian




wow ... I didn't know this required so much work.

Statistics: Posted by GamerDreams2019ns — 09 Sep 2019, 22:05


]]>
2019-09-08T18:30:49+02:00 2019-09-08T18:30:49+02:00 /viewtopic.php?t=18091&p=178005#p178005 <![CDATA[Re: Any mods that will make AI not to shoot at wall ?]]> You need to hook into every AI attack function for GPG, Sorian and all other AIs to make this work.

You need to patch these (34) functions:

File Platoon.lua:
HuntAI
GuardMarker
GuardBase
PatrolBaseVectorsAI
GunshipHuntAI
InterceptorAI
StrikeForceAI
CarrierAI
NavalForceAI
AttackForceAI
GhettoAI
AirHuntAI
FighterHuntAI
GuardBaseSorian
NavalForceAISorian
NavalHuntAI
HuntAISorian
CDRHuntAISorian
GhettoAISorian
AttackForceAISorian
StrikeForceAISorian


File AIBehaviors.lua:
CDROverCharge
FatBoyBehavior
CzarBehavior
AhwassaBehavior
TickBehavior
BehemothBehavior
CDRRunAwaySorian
FatBoyBehaviorSorian
CzarBehaviorSorian
AhwassaBehaviorSorian
TickBehaviorSorian
ScathisBehaviorSorian
BehemothBehaviorSorian

Statistics: Posted by Uveso — 08 Sep 2019, 18:30


]]>
2019-09-08T18:10:59+02:00 2019-09-08T18:10:59+02:00 /viewtopic.php?t=18091&p=178003#p178003 <![CDATA[Re: Any mods that will make AI not to shoot at wall ?]]>
GamerDreams2019ns wrote:
Now I understand why most of the maps do NOT have wall or hill. Mostly are open area.

This has nothing to do with AI. Just lazy mappers :)
In fact there are only 2-3 guys who cares about the AI while making maps.
(i mean making terrain for AI, there are more mappers who add waypoints etc.)


GamerDreams2019ns wrote:
How about making a mod that will make AI always on the move - even it is shooting. So this will not make the AI stay at one spot shooting at the wall.

First you move the platoon with the command "UNIT:MoveToLocation(Position)"
If you reach the target you attack with the command "UNIT:AttackTarget(ENEMYUNIT)"

After that the c-engine is controlling the unit and we can do almost nothig from LUA side here.

I know the problem and if i find a solution i will add this to my AI. I promise :)
But as i said, if you have many (800) waypoints, then this will happen not often.

Statistics: Posted by Uveso — 08 Sep 2019, 18:10


]]>
2019-09-08T16:07:38+02:00 2019-09-08T16:07:38+02:00 /viewtopic.php?t=18091&p=178000#p178000 <![CDATA[Re: Any mods that will make AI not to shoot at wall ?]]>
Will this work ?

Statistics: Posted by GamerDreams2019ns — 08 Sep 2019, 16:07


]]>
2019-09-08T16:04:38+02:00 2019-09-08T16:04:38+02:00 /viewtopic.php?t=18091&p=177999#p177999 <![CDATA[Re: Any mods that will make AI not to shoot at wall ?]]>

Now I understand why most of the maps do NOT have wall or hill. Mostly are open area.

Statistics: Posted by GamerDreams2019ns — 08 Sep 2019, 16:04


]]>
2019-09-07T21:43:08+02:00 2019-09-07T21:43:08+02:00 /viewtopic.php?t=18091&p=177952#p177952 <![CDATA[Re: Any mods that will make AI not to shoot at wall ?]]>
GamerDreams2019ns wrote:
Any mods that will make AI move closer to my units to shoot or move while shooting ??


No.

The AI does not know that a unit is hitting a wall or terrain instead of the enemy.
There is no c-command or script in LUA to detect this.

I tried to compare the damageoutput with the healtdrain of the enemy but this is awesome slow and does not work in all cases (multiple units).
So this is one of the gaps the AI will have forever ^^

Statistics: Posted by Uveso — 07 Sep 2019, 21:43


]]>
2019-09-07T15:41:07+02:00 2019-09-07T15:41:07+02:00 /viewtopic.php?t=18091&p=177920#p177920 <![CDATA[Any mods that will make AI not to shoot at wall ?]]>
Enemy AI will just stop there and keep on shooting !

Any mods that will make AI move closer to my units to shoot or move while shooting ??

Thanks

Statistics: Posted by GamerDreams2019ns — 07 Sep 2019, 15:41


]]>