Scripts / Better aisoldier and aicover

Author
Message
Mouaa
User Banned
Posted: 10th Jan 2017 22:08 Edited at: 10th Jan 2017 23:24
I made few modifications to have better behaviour and faster reactions

1) Before you could fire down a character that doesn't have seen you or that is too far, he didn't move.
Now whatever the character can't see you or he is too far, if you fire at him, he will switch to combat mode
(this is a common issue with some other AI scripts).

2) for ai_soldier, some timer variables have been decreased, characters will be more reactive when they switch to combat mode


Those two files must be changed, because ai_cover calls ai_soldier script.

ai_soldier.lua



ai_cover.lua


This is a first version, i'll improve it as i do more tests.
I would like to expose to "properties" some timer or range variables that are hard coded, or i'll declare them as global in top of Lua file.

Login to post a reply

Server time is: 2024-05-21 16:38:45
Your offset time is: 2024-05-21 16:38:45