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.

DarkBASIC Discussion / FPS: How can those enemybastards notice me?

Author
Message
bunghole
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Finland
Posted: 3rd Mar 2004 09:13
I have guns and bullets and moving and all that, but the enemy's are stupid and they can see me through the wall. How can I put limits for them, like that they can see just about what you can see when looking straight ahead?
And the bulletholes on the walls etc and blood stains are a problem for me too...
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 3rd Mar 2004 12:58
Use intersect object. Cast a ray from the enemy to where ever it's looking. If it intersects a wall before the ray reaches you, then it wont see you. This would limit its site quite a bit to a narrow line of sight. So to compensate for that, you could have the enemy pan its eyes back and forth a lot.

"eureka" - Archimedes
bunghole
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Finland
Posted: 3rd Mar 2004 13:18
Brainstuck.
Could you add snippet or somethin' so even I could understand them..
I can't right now focus on anything..
bunghole
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Finland
Posted: 3rd Mar 2004 14:06
I got it.

Login to post a reply

Server time is: 2025-05-23 08:46:23
Your offset time is: 2025-05-23 08:46:23