Scripts / Ai damage

Author
Message
PCS
7
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 7th Apr 2020 19:56
HI all. i have tried to look for the specific place were this happens but i can not find it.
Were in the ai scripts can i find the place that they are getting damage from a players shot. i have looked but could not find it.
what i want to do is to just have a prompt or indication sound every time i hit an ai .

Thank you for your time.

Pcs
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 16GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 7th Apr 2020 22:00
Please tell us which script you are using...?
PM
PCS
7
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 7th Apr 2020 22:07 Edited at: 7th Apr 2020 22:12
i am looking for the ai get damage part it has to be some were in one of the ai scripts in the ai script folder , that is what i am talking about, one of those scripts must contain the part were the ai get damage, i am looking for it.
i have looked in all these scripts but could not find were it is.
module_combatcore
module_combateffects
module_combatmelee
module_combatshoot
module_core
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 16GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 7th Apr 2020 22:13
module_combatcore.hurt
Been there, done that, got all the T-Shirts!
PM
PCS
7
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 7th Apr 2020 22:20
AmenMoses its this part that you are talking about.

i have tried to put my indication , PromptLocal( e, g_Entity[ e ].health ) in this part of the script on some places
but with out success. ,mabye i put in in the incorrect places. lol

Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 16GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 7th Apr 2020 22:31
Put it first before the if statement.

It might not get called all the time though, or at all depending on the AI type.

Check where it is called from to find that out.
Been there, done that, got all the T-Shirts!
PM
PCS
7
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 7th Apr 2020 22:32 Edited at: 7th Apr 2020 22:36
Ok I have found the line were i have to insert my Hurt indication.
if it is the only place or the correct place i am not sure but it work for me.
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 16GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
PCS
7
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 7th Apr 2020 22:33 Edited at: 7th Apr 2020 23:28


Ok so by adding this PromptLocal( e, g_Entity[ e ].health ) in i get a one or two second display of the ai health every time i shoot it. ( this is what i was looking for )
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 16GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 7th Apr 2020 22:59
Put it before the if statement, i.e. before line 1 in that snippet.
Been there, done that, got all the T-Shirts!
PM
PCS
7
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 7th Apr 2020 23:08
If i put it before the if statement then it prompt continuously, and i only want it to prompt when the ai got shot every time, not continuously
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 16GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11

Login to post a reply

Server time is: 2024-04-27 01:37:52
Your offset time is: 2024-04-27 01:37:52