Hi all,
Time has come for me to pay back for all that I received from this Community.
So here is my first and very modest contribution :
I have modified the combatcore module so that ennemies won't shoot at you if you are not holding a weapon.
The script is also modified so that patrolling soldier is no more aiming at an invisible target when walking ( thanks to Lee's video tutorial)
This script works will AI based on Uber soldier model (ie defauft characters, characters made with GG Character Creator and WW2 soldiers converted by BSP).
How to use :
1) make a back up of default module_combatcore.lua file
2) change the Animation section in the entity's FPE you want to attach the script to as follows :
;anim
animmax = 7
playanimineditor = 1
anim0 = 100,205 ;idle
anim1 = 685,707 ;move
anim2 = 5511,5553 ;kick
anim3 = 4812,4850 ;hurt
anim4 = 515,605 ;reload
anim5 = 1290,1319 ;relaxedmove
anim6 = 3110,3420 ;conversation[video=youtube]
anim7 = 3744,3828 ;inchair
3) attached the script below to the ennemy entity
Hopefully it may be usefull to some of you ( I apologize for the low quality of the video, my computer's spec date back to neolithic...)