Rune Central

The Official Rune Quake Message Board
It is currently Thu Mar 28, 2024 5:17 pm

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: respawn shooting or jumping
PostPosted: Sun Jun 19, 2005 2:53 am 
Offline
quake.intertex.net
User avatar

Joined: Sat Nov 15, 2003 7:39 pm
Posts: 243
Location: Kansas City!
Slot, this is an old fix from way back.
I've notice while playing at port 26002 on shmack i am shooting when respawning.
here's the fix for holding firebutton while getting fragged
Code:
void() PlayerDeathThink =
{
   local float forward;

   if ((self.flags & FL_ONGROUND))
   {
      forward = vlen (self.velocity);
      forward = forward - 20;
      if (forward <= 0)
      self.velocity = '0 0 0';
      else
      self.velocity = forward * normalize(self.velocity);
   }

   // wait for all buttons released
   if (self.deadflag == DEAD_DEAD)
   {
      if (self.button2 || self.button1 || self.button0)
      return;
      self.deadflag = DEAD_RESPAWNABLE;
      return;
   }

   // wait for any button down
   if ((!self.button2 && !self.button1 && !self.button0))
   {
      return;
   }

   self.button0 = 0;
   self.button1 = 0;
   self.button2 = 0;
   respawn();
};


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Jun 19, 2005 2:25 pm 
Offline
Site Admin
User avatar

Joined: Fri Mar 07, 2003 7:41 pm
Posts: 1255
Location: New Jersey, USA
That is the original code from idsoftware and I'm already using it.

A very common problem, at least for me, is that I click the fire key repeatedly (rather than keep holding it down). This allows the code above to respawn you, making it appear as though you're respawning while you're firing. When you're playing on the 26000 server, you don't have to worry about this because I prevent you from firing for about a second. On the 26002 server though, the shields are off by default, so there is essentially no fix for the problem other than using jump to respawn. At the very least I should prevent you from firing on the very first click. In order to fire again you'll have to let go of the fire key and fire again. This will only help those who fire once to respawn, not those who fire repeatedly. I have another solution in mind for those players, but it involves keeping track of the rate of the clicks, etc. Might not even be worth the trouble, but I'll see how my first fix goes.

I'll reply here when I've made the change.

Thanks,

_________________
Slot Zero
Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Jun 21, 2005 7:27 pm 
Offline
Site Admin
User avatar

Joined: Fri Mar 07, 2003 7:41 pm
Posts: 1255
Location: New Jersey, USA
Done. Let me know if you notice a difference.

Thanks,

_________________
Slot Zero
Image


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 34 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group