alias asay_drop "say_team (%l) dropped %w ; impulse 17"\r
\r
// other aliases\r
-alias +grabber +button6\r
-alias -grabber -button6\r
+alias +jetpack +button6\r
+alias -jetpack -button6\r
alias ready "cmd ready"\r
alias lockteams "sv_cmd lockteams"\r
alias unlockteams "sv_cmd unlockteams"\r
\r
alias clearmap "disconnect"\r
\r
-set g_grappling_hook 0 "let players spawn with the grappling hook which allows them to pull themselves up"\r
-\r
set leadlimit 0\r
\r
// this means that timelimit can be overidden globally and fraglimit can be overidden for each game mode: DM/TDM, Domination, CTF.\r
bind f +use\r
\r
// misc\r
-bind r +grabber\r
+bind r +jetpack\r
bind ` toggleconsole\r
bind ~ toggleconsole\r
bind TAB +showscores\r
registercmd("-button3");\r
registercmd("+button4");\r
registercmd("-button4");\r
+ registercmd("+button6");\r
+ registercmd("-button6");\r
registercmd("+showaccuracy");registercmd("-showaccuracy");\r
\r
#ifndef CAMERATEST\r
} else if(strCmd == "-button3") { // secondary\r
button_attack2 = 0;\r
return false;\r
+ } else if(strCmd == "+button6") { // secondary\r
+ button_jetpack = 1;\r
+ return false;\r
+ } else if(strCmd == "-button6") { // secondary\r
+ button_jetpack = 0;\r
+ return false;\r
} else if(strCmd == "+showscores") {\r
sb_showscores = true;\r
return true;\r
{\r
switch(i)\r
{\r
- case 1: return STAT_FUEL;\r
+ case 0: return STAT_FUEL;\r
default: return -1;\r
}\r
}\r
{\r
switch(i)\r
{\r
- case 1: return IT_FUEL;\r
+ case 0: return IT_FUEL;\r
default: return -1;\r
}\r
}\r
{\r
switch(i)\r
{\r
- case 1: return "gfx/hud/sb_fuel";\r
+ case 0: return "gfx/hud/sb_fuel";\r
default: return "";\r
}\r
}\r
if(x < 10) health_pos_x -= 11; // always center\r
Sbar_DrawXNum_Colored(health_pos, x, 22, sbar_alpha_fg);\r
\r
- // fuel ammo\r
- a = getstati(GetAmmoStat(1)); // how much fuel do we have?\r
+ // ammo\r
+ pos_x = bottom_x + 140;\r
+ pos_y = bottom_y - 20;\r
\r
- if (a > 0) { // if we have fuel, draw the amount\r
- float invincibility_time, dt;\r
- invincibility_time = getstatf(STAT_INVINCIBLE_FINISHED);\r
- dt = invincibility_time - time;\r
- pos_x = bottom_x + 140;\r
- pos_y = bottom_y - 20;\r
- drawpic(pos - '98 18 0', GetAmmoPicture(1), '20 20 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
+ // if we are using the jetpack, show fuel ammo. Otherwise show the ammo of our weapon\r
+ if(stat_items & IT_JETPACK && button_jetpack)\r
+ {\r
+ a = getstati(GetAmmoStat(0)); // how much fuel do we have?\r
+ drawpic(pos - '98 18 0', GetAmmoPicture(0), '20 20 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
Sbar_DrawXNum(pos - '144 16 0', a, 3, 0, 16, '1 1 1', 0, 0, sbar_alpha_fg, DRAWFLAG_NORMAL);\r
}\r
+ else\r
+ {\r
+ float i;\r
+ for (i = 0; i < 1; ++i)\r
+ {\r
+ if (stat_items & GetAmmoItemCode(i))\r
+ {\r
+ a = getstati(GetAmmoStat(i)); // how much ammo do we have of type i?\r
+ drawpic(pos - '98 18 0', GetAmmoPicture(i), '20 20 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
+ Sbar_DrawXNum(pos - '144 16 0', a, 3, 0, 16, '1 1 1', 0, 0, sbar_alpha_fg, DRAWFLAG_NORMAL);\r
+ }\r
+ }\r
+ }\r
\r
// weapon icon\r
entity e;\r