Scripts / Classic zombie dead animation repetition

Author
Message
Vpze
4
Years of Service
User Offline
Joined: 17th Feb 2020
Location:
Posted: 19th Sep 2020 10:50 Edited at: 19th Sep 2020 11:12
[video=youtube]https://www.youtube.com/watch?v=ZRGrHvv4w7Q[/video]


2nd Video: https://www.youtube.com/watch?v=ZRGrHvv4w7Q
These zombies dead animation repeated itself. I assume it's because of the script. Any ideas?
Thanks in advance!

Attachments

Login to view attachments
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 19th Sep 2020 13:22 Edited at: 19th Sep 2020 16:30
The problem with the old style AI scripts is that GG changed such that when an entities health goes below 0 the scripts _main function no longer gets executed, you either need to change them to use to newer AI scripts (not sure if they will be compatible though) or change the existing scripts to set the initial health to some large value and trigger death when it goes below that value instead of on 0.

For example if you set the initial health to 1000 + the entities health and change the triggering of death as when health < 1000.
Been there, done that, got all the T-Shirts!

Attachments

Login to view attachments
PM
Vpze
4
Years of Service
User Offline
Joined: 17th Feb 2020
Location:
Posted: 19th Sep 2020 15:32
Okay, thanks AmenMoses, I will give it a try
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 19th Sep 2020 16:31 Edited at: 19th Sep 2020 16:35
I just added a new script to my previous post. Try that out and see if it's better.

I had to set the health to 100000!
Been there, done that, got all the T-Shirts!
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 19th Sep 2020 19:15
Btw I just did some experimenting and the advanced weapons hand grenade, when right next to an entity when it explodes, does over 40,000 health points of damage!

I'd call that a bit of overkill.
Been there, done that, got all the T-Shirts!
PM
Teabone
Forum Support
17
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 20th Sep 2020 00:01
Wow that might explain why I was having some issues with enemies of which I was intentionally making their health 10,000 so that when they "due" they don't right away ragdoll till I want them to. Guess i need to up that to 100,000 too due to that 40,000 explosion damage lol
Store Assets - Store Link
Free Assets - Resource Link

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GTX 960
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 20th Sep 2020 03:38
Yeah I had a lot of scripts setting initial health to 1000, that used to work fine. Now I'm using 1,000,000 just to be on the safe side.

Funny thing is exploding barrels no longer give any damage!

Why oh why do they keep breaking things that worked fine?
Been there, done that, got all the T-Shirts!
PM
Vpze
4
Years of Service
User Offline
Joined: 17th Feb 2020
Location:
Posted: 20th Sep 2020 11:26 Edited at: 20th Sep 2020 11:28
Quote: "Try that out and see if it's better."

I have tried it, it does not always happen anymore, but this problem still occurs

Attachments

Login to view attachments
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 20th Sep 2020 13:06 Edited at: 20th Sep 2020 13:14
Interesting, they don't do that for me!


Been there, done that, got all the T-Shirts!
PM
Vpze
4
Years of Service
User Offline
Joined: 17th Feb 2020
Location:
Posted: 20th Sep 2020 16:55 Edited at: 20th Sep 2020 16:55
Hmm, that's weird, I will have a look again
PM

Login to post a reply

Server time is: 2024-05-08 01:34:21
Your offset time is: 2024-05-08 01:34:21