//LegendGuard adds random weapon item spawn function for emerald nade 25-05-2021
void nade_emerald_randomweapons(entity e, vector org)
{
- bool randomweapons_includespecial = true;
-
if (random() > 0.5)
{
RandomSelection_Init();
- FOREACH(Weapons, it != WEP_Null && (!((it.spawnflags & WEP_FLAG_HIDDEN) || (it.spawnflags & WEP_FLAG_MUTATORBLOCKED)) || randomweapons_includespecial),
+ FOREACH(Weapons, it != WEP_Null && (!((it.spawnflags & WEP_FLAG_HIDDEN) || (it.spawnflags & WEP_FLAG_MUTATORBLOCKED)) || autocvar_g_nades_emerald_randomweapons_includespecial),
{
if((it.spawnflags & WEP_FLAG_HIDDEN) && (it.spawnflags & WEP_FLAG_MUTATORBLOCKED))
continue;
float autocvar_g_nades_veil_time = 8;
float autocvar_g_nades_veil_radius = 300;
float autocvar_g_nades_emerald_lifetime = 5; //LegendGuard adds new nade cvars 28-02-2021
+bool autocvar_g_nades_emerald_randomweapons_includespecial = false;
float autocvar_g_nades_emerald_spawncount = 1;
float autocvar_g_nades_emerald_ball_spread = 0.5;
float autocvar_g_nades_emerald_ball_lifetime = 1; //if much time, many items will spawn