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 / weird problem with an AI script

Author
Message
Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 28th Sep 2009 00:40
Hey,

plz take a look at this very simple AI script

as it shows it (should) follow waypoints.. well it doesn't, and the weird part is when I remove this line

it works just fine.. I thought the problem is in (plrcanbeseen) condition but if so wouldn't the enemy shoot even when it doesn't see me?
I have no idea wut could be the problem.. anyhelp?

Thank You..

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 28th Sep 2009 01:05
Is your enemy seeing you from across the level? You should put a "plrdistwithin" condition with the "plrcanbeseen" condition to make sure it's not seeing the player from far away.

Also, make sure your entity's view cone isn't obscenely high.


The one and only,


Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 28th Sep 2009 01:24
but IF it's a (plrcanbeseen) condition problem wouldn't it suppose to shoot me wherever am I due to this line?



also it's not all the way through the level, it's only about 8 squares away.. also to make sure that he doesn't see me I use wireframe to see where it is..

PS: I have viewcone set to 50

Thank You..

Black Profductions
16
Years of Service
User Offline
Joined: 15th Sep 2008
Location: Argentina
Posted: 28th Sep 2009 01:35
bibo4pc, you are great making scripts, i am the creator of .calibre, do you want to help me with scripts in my game?
By the way heres the thread if you want to see it:

If you want to get in contact with me:

GOOD LUCK!

Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 28th Sep 2009 03:06
well apparently not that good or I'd be able to solve this :S I've been on this for hours and I don't have a clue wut could be the problem..

anyway I'd love to help with ur game, my mail is in my profile if u need anything just tell me..

@Plystire: forgot to say that I can't use plrdistwithin cause say if am right next to the enemy but there's a wall between us, it would return true so with the plrcanbeseen condition not working it's useless..

I've made a much more simpler script just to tell me when am I being seen by the enemy by showing a hud when plrcanbeseen is true.. it's all messed up and the hud shows when am no where near the enemy

here's the script


Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 28th Sep 2009 05:26 Edited at: 28th Sep 2009 05:27
UPDATE: I think the problem is in the source code for the latest update, I've tried re-installing FPSC and running it without any updates it worked just fine, when I updated to 1.15 it didn't work anymore..

anyone plz try it and confirm this...

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 28th Sep 2009 07:49
If that is the case, you may want to try out the new v116 beta and see if it's fixed or still broken. We don't want this bug to remain unfixed in the new update, and if it's still there, you should definitely make a mention of it in the beta thread or directly to Lee via email.


The one and only,


Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 28th Sep 2009 15:08 Edited at: 28th Sep 2009 15:10
ok it works fine with 116 but when I replace FPSC-Game.exe with PB mod the problem appears again

this is a major crysis.. can anyone plz say if he's also having this problem?
TY

Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 28th Sep 2009 20:12
take a look at this



when I use this script it works really fine, but once I change it to



it doesn't work and way points are not followed

any idea why?
Thank You..

Flatlander
FPSC Tool Maker
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 28th Sep 2009 22:44
PB mod is a modification of v115. Therefore it won't work until Lee gives us the source code for v116 and PB is updated.

Glad to see it works in v116.

-----------------------------------------------
OliveTreeGames
Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 29th Sep 2009 00:36
I know PB mod isn't for v116 but it's not about that.. plz see my previous post..

Login to post a reply

Server time is: 2024-11-25 07:39:08
Your offset time is: 2024-11-25 07:39:08