Forum

How to keep z position?

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

How to keep z position?

Postby daemonicky » Tue Apr 26, 2011 8:33 pm

I want player not to fall, just keep z position, how to do it?

How to temporariliy disable gravity?

How to create solid brush which moves with player, so he can stand on it ? This brush could penetrate geometry and other entities ...

Thanks. :)
User avatar
daemonicky
 
Posts: 185
Joined: Wed Apr 13, 2011 1:34 pm

Re: How to keep z position?

Postby daemonicky » Tue Apr 26, 2011 9:30 pm

daemonicky wrote:I want player not to fall, just keep z position, how to do it?


Solved.

I made state machine by global variable. And remembered origin_z. Maybe there is better solution, but so far it is fine ...
User avatar
daemonicky
 
Posts: 185
Joined: Wed Apr 13, 2011 1:34 pm

Re: How to keep z position?

Postby Nahuel » Tue Apr 26, 2011 9:52 pm

daemonicky wrote:I want player not to fall, just keep z position, how to do it?

How to temporariliy disable gravity?

How to create solid brush which moves with player, so he can stand on it ? This brush could penetrate geometry and other entities ...

Thanks. :)

you can chage the gravity with the stuffcdm sv_gravity 0
hi, I am nahuel, I love quake and qc.
User avatar
Nahuel
 
Posts: 492
Joined: Wed Jan 12, 2011 8:42 pm
Location: mar del plata

Postby mankrip » Wed Apr 27, 2011 12:57 am

Change their .movetype to MOVETYPE_FLY.
Ph'nglui mglw'nafh mankrip Hell's end wgah'nagl fhtagn.
==-=-=-=-=-=-=-=-=-=-==
Dev blog / Twitter / YouTube
User avatar
mankrip
 
Posts: 915
Joined: Fri Jul 04, 2008 3:02 am


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest