Rune Central http://runequake.com/forums/ |
|
respawn shooting or jumping http://runequake.com/forums/viewtopic.php?f=2&t=761 |
Page 1 of 1 |
Author: | sputnikutah [ Sun Jun 19, 2005 2:53 am ] |
Post subject: | respawn shooting or jumping |
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(); }; |
Author: | Slot Zero [ Sun Jun 19, 2005 2:25 pm ] |
Post subject: | |
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, |
Author: | Slot Zero [ Tue Jun 21, 2005 7:27 pm ] |
Post subject: | |
Done. Let me know if you notice a difference. Thanks, |
Page 1 of 1 | All times are UTC - 5 hours [ DST ] |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |