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 holes in the wall

Author
Message
Dark Serpent
21
Years of Service
User Offline
Joined: 24th Feb 2004
Location: U.S.A.
Posted: 28th Feb 2004 00:45
Does any one know how to make a bullet leave a black mark or hole in th wall when you shoot at it?

$$$Serpant$$$
Emperor Baal
21
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 28th Feb 2004 00:53
create a textured plain and place it on the wall


Quote: "
Amd 2500+ | 1024mb pc2700 | A7N8X-X | Geforce4 ti 4200 128mb
"
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 29th Feb 2004 10:05
You're gonna want to do one of two things to find the position of the bullet hit...

You can either Ray Cast, or just move an object forward until it collides with the wall.

For the Ray Casting, I wouldn't have a clue how to do it in DBC... but, on Underwear Design's site, there are good snippets for that stuff.

For the moving of the object, simply move an object from the shooting postion forward untill it collides with the wall, when it does, use the object's 3D position to place the texture/plain.

Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy

Login to post a reply

Server time is: 2025-05-22 16:36:56
Your offset time is: 2025-05-22 16:36:56