set g_nades_tandem_fountain_lifetime 1 "Time period during which fountain is ejected"
set g_nades_tandem_fountain_delay 5 "Delay between emissions by the fountain"
set g_nades_tandem_item_lifetime 5 "Life time of the item"
-set g_nades_tandem_item_includespecial 0 "Include jetpack and powerups"
+set g_nades_tandem_includespecial 0 "Include weapons, monsters, vehicles and turrets"
+set g_nades_tandem_item_includespecial 0 "Include ammo, jetpack and powerups"
set g_nades_tandem_randomweapon_includespecial 0 "Include special and super weapons"
// Entrap (8)
case "ammo" :
{
itm = (random() > 0.5) ?
- ITEM_Shells : (random() > 0.5) ?
- ITEM_Bullets : (random() > 0.5) ?
- ITEM_Rockets : ITEM_Plasma;
+ ITEM_Shells : (random() > 0.5) ?
+ ITEM_Bullets : (random() > 0.5) ?
+ ITEM_Rockets : ITEM_Plasma;
break;
}
- case "jetpack" :
+ case "jetpack":
{
itm = (!autocvar_g_nades_tandem_item_includespecial) ?
- ITEM_JetpackFuel : (random() < 0.5) ?
- ITEM_JetpackFuel : ITEM_Jetpack;
+ ITEM_JetpackFuel : (random() < 0.5) ?
+ ITEM_JetpackFuel : ITEM_Jetpack;
break;
}
default: { itm = nade_tandem_randomitem(); break; }
{
switch (this.pokenade_type)
{
- case "weapon" : { nade_tandem_randomweapon(e, org); return; }
+ case "weapon" :
+ {
+ if (autocvar_g_nades_tandem_includespecial)
+ {
+ nade_tandem_randomweapon(e, org);
+ return;
+ }
+ }
case "health" :
case "armor" :
case "ammo" :
this.nade_item_spawncount = 0;
- switch (this.tandemnade_type)
+ int tandemnade_type_select = (autocvar_g_nades_tandem_includespecial) ?
+ this.tandemnade_type : 1;
+
+ switch (tandemnade_type_select)
{
case 1:
{
float autocvar_g_nades_veil_time = 8;
float autocvar_g_nades_veil_radius = 300;
float autocvar_g_nades_tandem_item_lifetime;
+bool autocvar_g_nades_tandem_includespecial;
bool autocvar_g_nades_tandem_randomweapon_includespecial = false;
bool autocvar_g_nades_tandem_item_includespecial;
float autocvar_g_nades_tandem_ball_item_spawncount = 1;