08-10-2012, 10:09 AM
Hey BlaXpirit, this is one of the most helpful posts on the forum imho (along with halogene's and fisume's guides)! 
Two remarks: Your post is missing the if_not_eq function, which is called in bx_invprev later on. It was not that hard to implement it myself from what you wrote (copy over if_eq and exchange 0 and 1 in the second part), but I think it's better to include that as well. Apart from that, I'm really impressed how good these two binds work (laserswitch + improved lastweapon).
The other thing is that I wondered if the laserswitch function is broken because it didn't switch back to the last weapon like I expected it, but to the second-last one instead. After spending some thoughts on how to solve this, it became clear to me that it makes more sense this way since you can always use the lastweapon bind to go back. Now it's even possible to switch from wpn A to wpn B to laser, then back to wpn A and repeat, without touching one of the direct weapon keys. Just plain awesome!

Two remarks: Your post is missing the if_not_eq function, which is called in bx_invprev later on. It was not that hard to implement it myself from what you wrote (copy over if_eq and exchange 0 and 1 in the second part), but I think it's better to include that as well. Apart from that, I'm really impressed how good these two binds work (laserswitch + improved lastweapon).
The other thing is that I wondered if the laserswitch function is broken because it didn't switch back to the last weapon like I expected it, but to the second-last one instead. After spending some thoughts on how to solve this, it became clear to me that it makes more sense this way since you can always use the lastweapon bind to go back. Now it's even possible to switch from wpn A to wpn B to laser, then back to wpn A and repeat, without touching one of the direct weapon keys. Just plain awesome!
![]() |
Web: YouTube • SoundCloud • Flickr • zykure.de • [unconnected] IRC: #uc.xonotic #xonotic #xonotic.de #xonotic.pickup |