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 / L4D Style Spawn - Will this work?

Author
Message
Ikey
14
Years of Service
User Offline
Joined: 17th Apr 2010
Location: Look in the back seat of your car
Posted: 13th Jan 2011 22:56 Edited at: 15th Jan 2011 22:37
PROJECT BLUE ONLY

I'm working on a L4D Style spawn script, and I think I may have it - other than the fact they might spawn in a place you can see them. Would this work so far? (To spawn them within a certain distance, with max and amout at once, etc. Obviously, 40 will be increased.)

In FPI script (start script)



Then, in the entity's FPE, put


Or whatever fits to this:



Obviously, the settings on this may be changed, for a longer or shorter gap, more of them at once, etc etc.

Something along these lines?

I've only just begun this, because I'm semi-new to FPSC Scripting, but y'know. I've been told before that there would be nothing to ensure that the entity is within a distnce of the entity, but there it is, having been there since the beginning of FPSC O_o

The Storyteller 01
15
Years of Service
User Offline
Joined: 11th May 2009
Location: On a silent hill in dead space
Posted: 14th Jan 2011 02:02
Have you tested the script yet? And what's wrong/not working as intended?

In case you find my grammar and spelling weird ---> native German speaker ^^
Ikey
14
Years of Service
User Offline
Joined: 17th Apr 2010
Location: Look in the back seat of your car
Posted: 14th Jan 2011 18:49 Edited at: 14th Jan 2011 18:56
It instantly spawns, but does not ATTACK until you're within that distance. (Currently set to right next to, for meele weapon - fastest kill to test the respawn.
Ikey
14
Years of Service
User Offline
Joined: 17th Apr 2010
Location: Look in the back seat of your car
Posted: 14th Jan 2011 19:55 Edited at: 14th Jan 2011 19:56
Codes updated.

EDIT: Same problem... :/
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 15th Jan 2011 21:53
Is it a problem with the zombie's main script?


The one and only,


Only those who sow the seeds of their desires will reap their benefits later.
However, I have seeds of my own to tend to. I don't have time to be someone else's watering can.
Ikey
14
Years of Service
User Offline
Joined: 17th Apr 2010
Location: Look in the back seat of your car
Posted: 15th Jan 2011 22:09 Edited at: 15th Jan 2011 22:50
The new script seems to be less functional than the last.
Now, they never attack.
They just stand there, and no matter how close you are, or how long for, they never attack.

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 17th Jan 2011 02:39
Can you post their Main AI script? It could be a problem with that.

What sort of behavior do they show? Can yout ell if they're using any part of the main script at all?


The one and only,


Only those who sow the seeds of their desires will reap their benefits later.
However, I have seeds of my own to tend to. I don't have time to be someone else's watering can.
Ikey
14
Years of Service
User Offline
Joined: 17th Apr 2010
Location: Look in the back seat of your car
Posted: 17th Jan 2011 04:51
It's bond1's Mob Zombies, so I'm not sure I'm allowed, you know, with the specialised animations and stuff.

They DO occasionally do one of the idle animations.


Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 17th Jan 2011 07:58
Okay, then I'll have to try and help you "in the dark".

Since you're using PB, there are some script debug commands that you can use to flesh out what's going on scriptside. In your main AI script, tack this line onto the bottom:



Now,w hen the game is running, you SHOULD see "MAINAI" printed in the top left corner. If it is, then that means your zombies are using their main AI script.

If it shows up, then something's wrong with their main AI script or their general setup.

If it doesn't show up, then the zombies are never getting into the main AI, thus aren't using the main AI script. This means there's probably a problem with the appear script.


Hope that helps to narrow things down a bit.


The one and only,


Only those who sow the seeds of their desires will reap their benefits later.
However, I have seeds of my own to tend to. I don't have time to be someone else's watering can.
Ikey
14
Years of Service
User Offline
Joined: 17th Apr 2010
Location: Look in the back seat of your car
Posted: 17th Jan 2011 19:18
Hey, man, anything is appreciated. As soon as I get 1.17 working again, I'll be finishing this script fast.


Login to post a reply

Server time is: 2024-11-24 14:05:30
Your offset time is: 2024-11-24 14:05:30