Scripts / Undercover Operaton Script

Author
Message
reyandekcire
8
Years of Service
User Offline
Joined: 18th Feb 2016
Location:
Posted: 11th Feb 2018 16:10 Edited at: 11th Feb 2018 16:53
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...)

Attachments

Login to view attachments
PM
JPH-GAMES
3D Media Maker
9
Years of Service
User Offline
Joined: 13th Feb 2015
Location: Belgique
Posted: 17th Feb 2018 19:37
Very nice contribution, thank you

Login to post a reply

Server time is: 2024-04-18 22:22:32
Your offset time is: 2024-04-18 22:22:32