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 / Enemy AI Question

Author
Message
q_zero_z
18
Years of Service
User Offline
Joined: 27th Nov 2005
Location:
Posted: 29th Nov 2005 06:05
how would I change the range of fire for an enemy?
Les Horribres
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 30th Nov 2005 22:08
I thought that was in the edit feild... you like right clicky the enemy.
q_zero_z
18
Years of Service
User Offline
Joined: 27th Nov 2005
Location:
Posted: 1st Dec 2005 08:01
No your thinking of "rate of Fire" . I need to control the distance an enemy can not only see a player, but fire at them. The defualt AI seems to have to get right up on you to fire.
Nue B
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: Indy
Posted: 2nd Dec 2005 04:19
Change the AI's "View Cone Angle" it's set at 50 by default. go up to about 180.

Nue B. or not Nue B. That is the question.
smoked
19
Years of Service
User Offline
Joined: 2nd Oct 2005
Location: USA - california
Posted: 2nd Dec 2005 06:44 Edited at: 2nd Dec 2005 06:48
hope this helps, in the first script i have the enemy come within 301 units and then start shooting, and semi randomly strafes around... i would use this type of AI in a small room




now in this next bit of code the enemy will try to get within the default range of 101 and then do some kinda random strafes and stuff

q_zero_z
18
Years of Service
User Offline
Joined: 27th Nov 2005
Location:
Posted: 6th Dec 2005 09:44
Thanks, I got the enemy where he will spot me from a long distance by trigger ie sniper. but all he does is look at me.. hes only about 15 feet away and just looks at me until i shoot him. how can i make it so that as soon as he spots me he fires?
Mabuggi
18
Years of Service
User Offline
Joined: 11th Dec 2005
Location: UK - Universal Kingdom
Posted: 23rd Dec 2005 12:25
Modify or use the snipe shoot fpi.

It works a treat for me.

I modified mine so that they are ultra-evil (and they bl**dy well are!!)

Let me know if you still have probs - I dig em out for ya.

DAB Studios
Mabuggi
18
Years of Service
User Offline
Joined: 11th Dec 2005
Location: UK - Universal Kingdom
Posted: 23rd Dec 2005 15:01 Edited at: 23rd Dec 2005 15:03
Try changing the rate of fire to 1 or 0 too.
And Nue B is right too - changing the field of view helps as well. The rate of fire and view cone can be configured to give your player little chance to evade enemies once in sight.

DAB Studios

Login to post a reply

Server time is: 2024-11-24 03:17:10
Your offset time is: 2024-11-24 03:17:10