"+jump" "jump / swim"
"+crouch" "crouch / sink"
"+hook" "off-hand hook"
+"+jetpack" "jet pack"
"" ""
"" "Attacking"
"+fire" "primary fire"
"+jump" "springen / schwimmen"
"+crouch" "ducken / sinken"
"+hook" "Enterhaken"
+"+jetpack" "Jetpack"
"" ""
"" "Angriff"
"+fire" "1. Feuermodus"
"+jump" "saltar / nadar"
"+crouch" "agacharse / bajar"
"+hook" "gancho"
+"+jetpack" "jet pack"
"" ""
"" "Ataque"
"+fire" "ataque primario"
"+jump" "sauter / nager"
"+crouch" "s'accroupir / couler"
"+hook" "grappin"
+"+jetpack" "jet pack"
"" ""
"" "Attaque"
"+fire" "tir primaire"
"+jump" "ugrás / úszás"
"+crouch" "guggolás / süllyedés"
"+hook" "kézi kampó"
+"+jetpack" "rakéta puttony"
"" ""
"" "Tüzelés"
"+fire" "Elsődleges"
"+jump" "salta / risalire in acqua"
"+crouch" "abbassarsi / scendere in acqua"
"+hook" "off-hand hook"
+"+jetpack" "jet pack"
"" ""
"" "Attacco"
"+fire" "fuoco primario"
"+jump" "прыжок / плыть"
"+crouch" "пригнуться / погрузиться"
"+hook" "крюк"
+"+jetpack" "реактивный ранец"
"" ""
"" "Нападение"
"+fire" "основной огонь"
"+jump" "стрибок / плисти нагору"
"+crouch" "присідання / занурення"
"+hook" "гак"
+"+jetpack" "реактивний ранець"
"" ""
"" "Бій"
"+fire" "основний вогонь"
// Wazat's grappling hook
SetGrappleHookBindings();
+ // Jetpack binds
+ stuffcmd(self, "alias +jetpack +button10\n");
+ stuffcmd(self, "alias -jetpack -button10\n");
+
// get version info from player
stuffcmd(self, "cmd clientversion $gameversion\n");
.float multijump_count;
void CheckPlayerJump()
{
- if (self.BUTTON_JUMP)
+ if (self.BUTTON_JUMP || self.BUTTON_JETPACK)
{
- if (!PlayerJump() || self.multijump_count > 0)
+ if (self.BUTTON_JUMP && (!PlayerJump() || self.multijump_count > 0) || self.BUTTON_JETPACK)
{
if (!self.jetpack_stopped && (!autocvar_g_jetpack_fuel || self.ammo_fuel > 0 || self.items & IT_UNLIMITED_WEAPON_AMMO) && !self.frozen)
{
}
else
{
- self.flags |= FL_JUMPRELEASED;
self.jetpack_stopped = FALSE;
self.items &= ~IT_USING_JETPACK;
}
+ if (!self.BUTTON_JUMP)
+ self.flags |= FL_JUMPRELEASED;
if (self.waterlevel == WATERLEVEL_SWIMMING)
CheckWaterJump ();
#define BUTTON_USE buttonuse
#define BUTTON_DRAG button8
#define BUTTON_ZOOMSCRIPT button9
+#define BUTTON_JETPACK button10
// Globals