nade_emerald_dropitem(e, org, ((random() > 0.5) ? ITEM_Shield : ITEM_Strength));
else
{
- if(!g_ca || !g_freezetag)
+ if(IS_GAMETYPE(FREEZETAG) || IS_GAMETYPE(LMS))
nade_emerald_dropitem(e, org, ((random() > 0.5) ? ITEM_ArmorSmall : ITEM_HealthSmall));
else
nade_emerald_randomweapons(e, org);
nade_emerald_dropitem(e, org, ((random() > 0.5) ? ITEM_Shells : ITEM_Rockets));
else
{
- if(!g_ca || !g_freezetag)
+ if(IS_GAMETYPE(FREEZETAG) || IS_GAMETYPE(LMS))
nade_emerald_dropitem(e, org, ((random() > 0.5) ? ITEM_ArmorSmall : ITEM_HealthSmall));
else
nade_emerald_randomweapons(e, org);
{
entity e = spawn();
e.spawnfunc_checked = true;
- //int cvar which manages the ONLY dropping per each type of item 14-03-2021
- switch (autocvar_g_nades_emerald_dropitemselect)
+ if(!IS_GAMETYPE(CA))
{
- case 0: nade_emerald_randomitem(e, org); return;
- case 1: nade_emerald_dropitem(e, org, ITEM_HealthSmall); return;
- case 2: nade_emerald_dropitem(e, org, ITEM_ArmorSmall); return;
- case 3: nade_emerald_allammoitemdrop(e, org); return;
- case 4: nade_emerald_dropitem(e, org, ITEM_Shells); return;
- case 5: nade_emerald_dropitem(e, org, ITEM_Bullets); return;
- case 6: nade_emerald_dropitem(e, org, ITEM_Rockets); return;
- case 7: nade_emerald_dropitem(e, org, ITEM_Cells); return;
- case 8: nade_emerald_dropitem(e, org, ITEM_Jetpack); return;
- case 9: nade_emerald_dropitem(e, org, ITEM_JetpackFuel); return;
- case 10: nade_emerald_dropitem(e, org, ITEM_Shield); return;
- case 11: nade_emerald_dropitem(e, org, ITEM_Strength); return;
- case 12: nade_emerald_randomweapons(e, org); return;
- default: nade_emerald_randomitem(e, org); return;
+ //int cvar which manages the ONLY dropping per each type of item 14-03-2021
+ switch (autocvar_g_nades_emerald_dropitemselect)
+ {
+ case 0: nade_emerald_randomitem(e, org); return;
+ case 1: nade_emerald_dropitem(e, org, ITEM_HealthSmall); return;
+ case 2: nade_emerald_dropitem(e, org, ITEM_ArmorSmall); return;
+ case 3: nade_emerald_allammoitemdrop(e, org); return;
+ case 4: nade_emerald_dropitem(e, org, ITEM_Shells); return;
+ case 5: nade_emerald_dropitem(e, org, ITEM_Bullets); return;
+ case 6: nade_emerald_dropitem(e, org, ITEM_Rockets); return;
+ case 7: nade_emerald_dropitem(e, org, ITEM_Cells); return;
+ case 8: nade_emerald_dropitem(e, org, ITEM_Jetpack); return;
+ case 9: nade_emerald_dropitem(e, org, ITEM_JetpackFuel); return;
+ case 10: nade_emerald_dropitem(e, org, ITEM_Shield); return;
+ case 11: nade_emerald_dropitem(e, org, ITEM_Strength); return;
+ case 12: nade_emerald_randomweapons(e, org); return;
+ default: nade_emerald_randomitem(e, org); return;
+ }
}
}
}
+++ /dev/null
-REGISTER_MUTATOR(mutator_mod, true);
-
-MUTATOR_HOOKFUNCTION(mutator_mod, BuildMutatorsString) {
- M_ARGV(0, string) = strcat(M_ARGV(0, string), ":mod");
-}
-
-// we now show a proper message in the about page
-//MUTATOR_HOOKFUNCTION(mutator_mod, BuildMutatorsPrettyString) {
-// M_ARGV(0, string) = strcat(M_ARGV(0, string), ", Mod");
-//}
-
-MUTATOR_HOOKFUNCTION(mutator_mod, BuildGameplayTipsString, CBC_ORDER_LAST)
-{
- M_ARGV(0, string) = strcat(M_ARGV(0, string), "\n\n ^7Running ^5Cyber^7 mod \n^3https://gitlab.com/xonotic/xonotic-data.pk3dir/-/tree/LegendaryGuard/cyber/");
-}
\ No newline at end of file