Forum

getting up from crouching

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Postby Boss429 » Wed Dec 06, 2006 10:30 pm

Cool! it worked!
I put this right under ".string killtarget;" in defs.qc:
Code: Select all
.float      button5;

and this at the end of PlayerPreThink in Client.qc:
Code: Select all
   if (self.button5)
   {
      crouch_on ();
   }
   else
      crouch_off ();


(I left in the crouch.qc from the tutorial)
(Edit: and I entered in "bind ctrl +button5" in the console)
It works great it fixed the bug where you stand up at the end of the tunnel and the bug that stopped you from getting up when you hit crouch too fast.
Thanks again for all the help!
Boss429
 
Posts: 39
Joined: Sun Dec 03, 2006 7:29 pm

Postby Chris » Tue Dec 12, 2006 12:12 pm

I'll append this to the crouch tutorial
Chris
 
Posts: 79
Joined: Sat Aug 05, 2006 5:31 am

Previous

Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest