Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / "Melee + Hunt & Pace"-Script

Author
Message
Caedus
12
Years of Service
User Offline
Joined: 23rd Jun 2012
Location:
Posted: 23rd Jun 2012 18:36
Hey everyone,

I'm actually working on my first FPS-Game and so I'm not really good at scripting.
But I tried to combine 2 scripts I've found here and I couldn't find out where the problem is.

I want my Zombies to pace waypoints and if they detect me in a certain area they hunt me and hit me with the animation/frames of the "meleebite10.fpi".

First, the script:



Now my problems:

1. Is it possible to let my zombies for example run in circles? Right now they run from startpoint to endpoint and stop there.

2. The animation of the melee-attack stops before it is finished and so I get no damage. It seems that the animation starts at the beginning again and again. (its actually really funny to watch but not useful...)

Hope you guys can help me!
Akanto10
14
Years of Service
User Offline
Joined: 24th Apr 2010
Location: Earth
Posted: 23rd Jun 2012 20:12
1. I don't believe that they can run in circles, but they can definitely pace by replacing:

With this:


2. I believe that is happening because you are telling it to rotate to the player while trying to advance the animation. Therefore, removing:

And replacing it with:

Should fix it.

Happy to help,
Akanto

| Windows 7 Home Premium 64 - Bit | AMD Athlon II X4 630 @ 2.8GHz | Nvidia GeForce GTX 460 1GB | 6GB DDR3 RAM | 1TB HDD |
Caedus
12
Years of Service
User Offline
Joined: 23rd Jun 2012
Location:
Posted: 23rd Jun 2012 21:03
Hey Akanto,

thanks for your fast reply!!!
But your solution for my second problem doesn't work either...still the same strange behaviour.
And to your first tip: I tried "waypointreverse", too, but then my zombies permanently run on their waypoints, no matter if I walk in their detection area or not...they don't react.
Corno_1
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 24th Jun 2012 17:13
of course they can run circles! set the waypoints in a circle!
(picture)

try this script! i not often create npc scripts so i hope it is funktional! which zombie do you have? some zombies may have a animation who dont work with standart scripts



Yes, i´m a noob, but i like it
http://forum.thegamecreators.com/?m=forum_view&t=196656&b=24

Attachments

Login to view attachments
Caedus
12
Years of Service
User Offline
Joined: 23rd Jun 2012
Location:
Posted: 24th Jun 2012 18:03
Thanks for your reply, too!

But I'm afraid to say that your suggestions doesn't work either.
Now the zombie walk straight in my direction (without pacing the waypoints) but if I step beside they still walk in the same direction (which is now wrong because I changed my position...)

But maybe I just have to modify a little thing in this script or in Akanto's one...?
I'm so sorry that I don't have that much knowledge about scripting. Sometimes I think I understand those expressions...but then, even the simplest things won't work...
Corno_1
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 25th Jun 2012 15:44
ok i do it again a found my mistake! now everythings work correct with the standart character! hope for you too!

comment the script so you can change it! if you have more questions, write it and i will help you

so here is the script:


Yes, i´m a noob, but i like it
http://forum.thegamecreators.com/?m=forum_view&t=196656&b=24

Login to post a reply

Server time is: 2024-11-24 01:09:38
Your offset time is: 2024-11-24 01:09:38