Page 1 of 1

flying script

Posted: 2010-05-13, 19:15
by DarkStar
can i make my model(player) to fly around the map in
a 3rd person camera mode

if i can then can anyone give me a tutorial how to do it :mrgreen:

Re: flying script

Posted: 2010-05-14, 12:25
by Carsten
Hi DarkStar,
welcome to the Cafu forums! :welcome:

While I unfortunately don't have sufficient spare time to make a tutorial specific to your request, the files
Games/DeathMatch/Code/HumanPlayer.hpp and
Games/DeathMatch/Code/HumanPlayer.cpp
are what you're looking for. Overriding the physics and especially gravity should be reasonably straightforward.

Re: flying script

Posted: 2010-05-14, 13:03
by DarkStar
Thanks carsten

i have another ques
can i use blender 3d to make MAPS and then import them to caWE

Re: flying script

Posted: 2010-05-14, 15:05
by Carsten
DarkStar wrote:can i use blender 3d to make MAPS and then import them to caWE
Sorry, no, not directly.
Importing and using generic meshes for building whole maps (which have BSP trees, PVS sets and many other details precomputed) generally requires additional technical considerations that make the import somewhat non-trivial.

But you can use Blender to make detail elements for maps, such as the bridge shown here.

Re: flying script

Posted: 2010-05-14, 15:16
by DarkStar
OK
one more thing
where are the .cpp and .hpp files u mentioned
infact ther is no .cpp or .hpp files in the deathmatch folder
i go into the Games\DeathMatch\Code directory
there i got only this folder tree \build\win32\vc8\release
and in the release folder i got deathmatch.dll file only

Re: flying script

Posted: 2010-05-14, 20:32
by Carsten
Ah, sorry, you must of course get the Cafu source code either from the Subversion repository or the Downloads page.

Documentation is here: Getting Started with the Cafu Source Code