Forum

Air Control/bouncy corpses?

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Air Control/bouncy corpses?

Postby Skippy » Fri Sep 14, 2007 3:43 am

Hi, finally got fed up enough trying to do this to actually post a question.

I'm trying to get a player to have full air control, much like a spectator camera in a modern game, meaning you move in the direction you are facing. If possible, I'd like to get all the other controls to work from that frame of referance, meaning that the jump key/move up would instead of moving you straight up the Z axis as it would now, move you straight up from your point of view (perpendicular to the camera angle.) I've been trying to get this effect using movetype_fly, but not only does it lose all control when in the air, it doesn't seem to handle very well.

One other question: is it possible to stop objects such as bodies and debris from adhering to the floor? I've been trying rather hard to get them to bounce off, since it looks kind of strange in a zero gravity enviroment when a corpse suddenly stops dead on the floor.

Thanks.
Skippy
 
Posts: 4
Joined: Fri Sep 14, 2007 3:36 am

Postby MauveBib » Fri Sep 14, 2007 7:22 am

Make corpses MOVETYPE_BOUNCE and give them a velocity, and they'll boing around the place.

As for the air control, that sort of thing is relatively easy in darkplaces with the qc player physics, but much harder in stock quake.
Apathy Now!
User avatar
MauveBib
 
Posts: 634
Joined: Thu Nov 04, 2004 1:22 am


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest