Inside3D!
     

getting up from crouching
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming
View previous topic :: View next topic  
Author Message
Boss429



Joined: 03 Dec 2006
Posts: 22

PostPosted: Wed Dec 06, 2006 10:30 pm    Post subject: Reply with quote

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

and this at the end of PlayerPreThink in Client.qc:
Code:
   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!
Back to top
View user's profile Send private message Visit poster's website
Chris



Joined: 05 Aug 2006
Posts: 78

PostPosted: Tue Dec 12, 2006 12:12 pm    Post subject: Reply with quote

I'll append this to the crouch tutorial
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group