flying script

Get technical support about the C++ source code and about Lua scripts for maps, entities, GUIs, the console, materials, etc. Also covered are the Cafu libraries and APIs, as well as compiling, linking, and the build system.
Post Reply
DarkStar
Posts:11
Joined:2010-05-13, 18:50
flying script

Post by DarkStar » 2010-05-13, 19:15

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:
User avatar
Carsten
Site Admin
Posts:2170
Joined:2004-08-19, 13:46
Location:Germany
Contact:

Re: flying script

Post by Carsten » 2010-05-14, 12:25

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.
Best regards,
Carsten
DarkStar
Posts:11
Joined:2010-05-13, 18:50

Re: flying script

Post by DarkStar » 2010-05-14, 13:03

Thanks carsten

i have another ques
can i use blender 3d to make MAPS and then import them to caWE
User avatar
Carsten
Site Admin
Posts:2170
Joined:2004-08-19, 13:46
Location:Germany
Contact:

Re: flying script

Post by Carsten » 2010-05-14, 15:05

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.
Best regards,
Carsten
DarkStar
Posts:11
Joined:2010-05-13, 18:50

Re: flying script

Post by DarkStar » 2010-05-14, 15:16

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
User avatar
Carsten
Site Admin
Posts:2170
Joined:2004-08-19, 13:46
Location:Germany
Contact:

Re: flying script

Post by Carsten » 2010-05-14, 20:32

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
Best regards,
Carsten
Post Reply

Who is online

Users browsing this forum: No registered users and 28 guests