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 / zombie surgeon follow waypoint script

Author
Message
shadowfire
15
Years of Service
User Offline
Joined: 24th Mar 2009
Location: England
Posted: 18th May 2009 21:11
hi all, i recently edited the pace.fpi script to let the zombie surgeon use it. it's perfect for COD5 style zombie games.

basically, the zombie follows the normal waypoint script, but when it sees you, instead of glithicng up and bzzzing (it's the only way i can describe it) (cringe) it follows the normal zombie script and attacks you when you are within a range of 3000 so it doesn't stop.

the only problem i have found with it so far is that when the zombie is off the waypoint, when you shoot it it returns and starts following the waypoint again.

any help on that would be greatly appreciated.

here is the script.
;Artificial Intelligence Script

;Header

desc = Hunt And Pace Waypoints

;Triggers

:waypointstate=0:animate=2,waypointstart
:waypointstate=3:animate=2,waypointnext
:waypointstate=4:animate=2,waypointrandom
:waypointstate=5:animate=2,waypointreverse
:nearactivatable=0:settarget,activatetarget=2,animate=1,state=0

:state=0:state=1
:state=1,plrcanbeseen:settarget,state=2
:state=1,random=20:rotateheadrandom=65
:state=1,noiseheard=5:rotateheadrandom=85

:state=2:waypointstop,state=5

:state=5,plrdistwithin=3000:state=6
:state=6,plrdistfurther=40:rotatetoplr,movefore=2,animate=2
:state=6,plrdistfurther=3000:animate=1,state=5
:state=6,plrdistwithin=40,rateoffire:rotateplr,animate=92,plraddhealth=-20
;End of Script

my motto: if it looks awesome, it probbably is awesome.

shallowness is fun!
shadowfire
15
Years of Service
User Offline
Joined: 24th Mar 2009
Location: England
Posted: 18th May 2009 23:42
why does nobody ever reply to my threads? (sniffs) it's as if people don't like me! (cue sad violin music)

can someone at least try it out and see what they think? i mean come on! this is my first script attempt and this forum is always helping people script, so why not me??

I adress this to all of you. no one is safe.
Tim is watching.
he wants your cake.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 19th May 2009 05:42
Seriously, give people at least a day before you askt hem why they haven't tried it. People aren't ALWAYS staring at this board waiting for someone to post.


The only time your script will stop following a waypoint is if it sees the player. You'll need to change it so that when it gets shot, it'll target the player and stop following the waypoint.


The one and only,


shadowfire
15
Years of Service
User Offline
Joined: 24th Mar 2009
Location: England
Posted: 19th May 2009 18:06
they DONT???!!!!
god i never knew...
sorry.

anyway, thanks, i'll give it a try

I adress this to all of you. no one is safe.
Tim is watching.
he wants your cake.
shadowfire
15
Years of Service
User Offline
Joined: 24th Mar 2009
Location: England
Posted: 19th May 2009 19:13
yeah, plystire? i installed the new version of ply's mod as well, and now whenever i shoot the zombie, and, whenever it sees me, it starts jumping around and teleporting (like a glitch). and doesn't stop until i somehow manage to shoot it. why?

I adress this to all of you. no one is safe.
Tim is watching.
he wants your cake.
shadowfire
15
Years of Service
User Offline
Joined: 24th Mar 2009
Location: England
Posted: 19th May 2009 19:21 Edited at: 19th May 2009 19:22
yeah, i've double checked it, and using this script, when before ply's mod there were no problems. now when i shoot the zombie it starts jumping around and glitching.

please tell me how i can fix this because ply's mod is the only way i can have airmod 6 without downgrading and losing my custom media!

I adress this to all of you. no one is safe.
Tim is watching.
he wants your cake.
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 19th May 2009 19:25
Quote: "when i shoot the zombie it starts jumping around and glitching. why."


Have you ever been shot?

Brian.

shadowfire
15
Years of Service
User Offline
Joined: 24th Mar 2009
Location: England
Posted: 19th May 2009 19:27
!

what?

i don't mean "it staggers back and dies"

when i say jumps around and glitches i mean JUMPS AROUND EVERYWHERE BOUNCES OF THE WALLS AND CEILINGS AND GOES THROUGH THE WALL!

can someone PLEASE help me!!!

I adress this to all of you. no one is safe.
Tim is watching.
he wants your cake.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 20th May 2009 22:56
You are aware that a distance of "3000" is the equivalent of 30 segment blocks away... right?

Wish I could test this for you and tell you what's wrong, but I can't right now. When I find time I'll drop by again and see what I can find.


The one and only,


shadowfire
15
Years of Service
User Offline
Joined: 24th Mar 2009
Location: England
Posted: 20th May 2009 22:59
thanks, and yes, i do know the distance is 3000.
what i want to do is make a zombie survival-esque style game, where the zombie can see you no matter where you are.
also, ply's mod works fine with the script, that was just me being stupid.

i've changed it now, so when the zombie is shot it jumps back to the end of the waypoint and attacks you again. i'm guessing there's a command i need to write.

I adress this to all of you. no one is safe.
Tim is watching.
he wants your cake.
shadowfire
15
Years of Service
User Offline
Joined: 24th Mar 2009
Location: England
Posted: 20th May 2009 23:03
good news everyone! i've done it!

turns out i needed to put a waypointstate=999 command in.

i'll put the script up soon so everyone can use it, free!

I adress this to all of you. no one is safe.
Tim is watching.
he wants your cake.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 20th May 2009 23:37
Glad you got it worked out.


The one and only,


Nomad Soul
Moderator
17
Years of Service
User Offline
Joined: 9th Jan 2007
Location: United Kingdom
Posted: 21st May 2009 01:51
Quote: "turns out i needed to put a waypointstate=999 command in."


Wow. what does waypointstate=999 mean?

Well done getting the script to work and looking forward to trying it out once uploaded.
Pride
16
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Eastern USA
Posted: 21st May 2009 02:02
Here is code I use for my zombies.

What it does is when the zombie is created, it snaps it to the nearest waypoint. After that it follows the waypoints until the end and then at the end of the waypoint cycle it goes to state=1. In this case, I tell it to run a basic melee .fpi.




"Tempo non é só unha teoría, senón unha forza"
Try and figure it out
shadowfire
15
Years of Service
User Offline
Joined: 24th Mar 2009
Location: England
Posted: 21st May 2009 18:22
cool, here is the finished script.



by the way waypointste=999 means that the entity has stopped following a waypoint and want's to know what to do next.
you need to use it if you want to break the waypoint cycle.

I adress this to all of you. no one is safe.
Tim is watching.
he wants your cake.

Login to post a reply

Server time is: 2024-11-25 02:11:06
Your offset time is: 2024-11-25 02:11:06