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 / Need helt with a zombiescript and an DarkAI Command!

Author
Message
Omegamer
15
Years of Service
User Offline
Joined: 25th Feb 2009
Location: There
Posted: 23rd Oct 2011 16:47
Hey guys,

I'm currently working on a fangame of Call of Duty Zombies with FPSC but with my own ideas and things, too.
The problem with the AI of the Zombies is I dont want to use the common rotatetoplr and the movefore=2 or something like this cause I want my zombies not to walk into walls if I'm behind them.

So I tried using the command aifollowplr=1 from DarkAI to let it follow me with more intelligence since my map will be more complex than only a squary room.
But if I use this command to let the zombie follow me it doesn't move at all.
I tried aisettarget and then aimovetotarget too, but the sometimes the zombie was even running away from me.

Here is the script:


Do you find any mistakes why aifollowplr isn't working?

Please respond this is important
Thx for taking your time, after all have a

angusm3
15
Years of Service
User Offline
Joined: 6th Mar 2009
Location: Right behind you...
Posted: 24th Oct 2011 06:26
Have you tried lines without states?
Ie:

:plrdistfurther=50:aifollowplr
Instead of using states will make the command work whenever and not just when that state is active
I used this in the hud script for the last 10 hp while regenerating

I appear to have burst into flames...
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 24th Oct 2011 07:39
You can only use the DAI commands if you set the character up to be controlled by DAI. Setting up characters for DAI is slightly more complicated than non-DAI, but is still doable if you take it step by step.

Have a look at the DAI scripts that come with FPSC and maybe use them as a basis for what you want.

If you don't want to use DAI, you could always use the raycast condition. The raycast condition checks to see if anything is in front of the entity.

Omegamer
15
Years of Service
User Offline
Joined: 25th Feb 2009
Location: There
Posted: 24th Oct 2011 12:07
Quote: "Have you tried lines without states?"


Well if I wouldnt use states the zombie would even move into my direction if he's attacking me.

Quote: "You can only use the DAI commands if you set the character up to be controlled by DAI. Setting up characters for DAI is slightly more complicated than non-DAI, but is still doable if you take it step by step."


I know how to setup DarkAI controlled entitys the problem is that the command aifollowplr=1 isnt working.
Maybe it has something to do with WaspMod which I'm using?
Anyways thx for your responds

Login to post a reply

Server time is: 2024-11-24 04:47:39
Your offset time is: 2024-11-24 04:47:39