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.

Code Snippets / generic fps contols

Author
Message
mm0zct
21
Years of Service
User Offline
Joined: 18th Nov 2003
Location: scotland-uk
Posted: 5th Mar 2004 00:45 Edited at: 5th Mar 2004 01:16
i have made a generic control system for fps games, this relies entirely on there being a collision system which i why i used a bsp map: (it includes mouse look, forward, backward, strafe left/righ and "real" gravity and jump functions)


the camera tilts upwards slightly on all of the movements forwards, backwards, strafe left/righ to allow it to go up stairs or slopes, the gravity pulls the camera back to the ground in the same loop.

i will post fully remed code later if not in a few minutes

http://www.larinar.tk
AMD athlon thoroughbred 2200, 512Mb ram, 40Gb HD, ati saphire radeon 9600 atlantis w/128mb ddr ram, good creative-labs soundcard, cd-rw + dvd drives.
mm0zct
21
Years of Service
User Offline
Joined: 18th Nov 2003
Location: scotland-uk
Posted: 5th Mar 2004 01:21 Edited at: 5th Mar 2004 01:35
to control looking up and down (linited to 69o in both dirctions:


to control turning:




to move forwards (aims cmera up slightly from horizontal to allow for going up stairs/slopes then repositions to origional):


to move camera backwards (same idea as forwards):


to strafe left (also similar to forwards/backwards):


to strafe right (also same idea as aove):



gravity: (this is a bit trickier)


http://www.larinar.tk
AMD athlon thoroughbred 2200, 512Mb ram, 40Gb HD, ati saphire radeon 9600 atlantis w/128mb ddr ram, good creative-labs soundcard, cd-rw + dvd drives.
mm0zct
21
Years of Service
User Offline
Joined: 18th Nov 2003
Location: scotland-uk
Posted: 5th Mar 2004 01:36
i will rem it all tomorrow, please if you are a mod then can you fix the typo in the title of this thread

http://www.larinar.tk
AMD athlon thoroughbred 2200, 512Mb ram, 40Gb HD, ati saphire radeon 9600 atlantis w/128mb ddr ram, good creative-labs soundcard, cd-rw + dvd drives.
CdPirate
20
Years of Service
User Offline
Joined: 16th Mar 2004
Location:
Posted: 17th Mar 2004 14:57
Hey,

Is this for DBclassic or DBPro?

Thanks,
Kurt.

Pentium4 3.06Ghz 512MB ddr ram 120 GB hard drive...

And Winblows XP.

Login to post a reply

Server time is: 2024-11-23 21:32:30
Your offset time is: 2024-11-23 21:32:30