1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-10 15:17:57 -05:00

Origins: perk bottle dig spots change

This commit is contained in:
Jbleezy
2020-02-29 22:13:43 -08:00
parent b0193c5fb8
commit dc8c0aca59
2 changed files with 53 additions and 2 deletions

View File

@ -142,4 +142,6 @@
* Der Wunderfizz: all perks have an equal chance of being obtained
* Rituals of the Ancients: spend points challenge reward changed from Double Tap perk to a random perk that the player does not have (perk does not change if reward is reopened)
* Rituals of the Ancients: spend points challenge reward now gives a permament perk slot
* Soul boxes: decreased kill requirement from 30 to 20
* Soul boxes: decreased kill requirement from 30 to 20
* Perk bottle dig spots: visible and diggable without Zombie Blood
* Perk bottle dig spots: increased number of rounds for next dig spot to spawn from 1 to 4

View File

@ -109,6 +109,7 @@ post_all_players_spawned()
borough_move_speedcola_machine();
borough_move_staminup_machine();
tomb_remove_weighted_random_perks();
tomb_challenges_changes();
tomb_soul_box_changes();
@ -128,8 +129,8 @@ post_all_players_spawned()
level thread buried_deleteslothbarricades();
level thread buried_enable_fountain_transport();
level thread tomb_remove_weighted_random_perks();
level thread tomb_remove_shovels_from_map();
level thread tomb_zombie_blood_dig_changes();
//level.round_number = 115;
//level.zombie_move_speed = 105;
@ -2041,6 +2042,54 @@ bottle_reject_sink( player )
self delete();
}
tomb_zombie_blood_dig_changes()
{
if(!(is_classic() && level.scr_zm_map_start_location == "tomb"))
{
return;
}
while (1)
{
for (i = 0; i < level.a_zombie_blood_entities.size; i++)
{
ent = level.a_zombie_blood_entities[i];
if (IsDefined(ent.e_unique_player))
{
if (!isDefined(ent.e_unique_player.initial_zombie_blood_dig))
{
ent.e_unique_player.initial_zombie_blood_dig = 0;
}
ent.e_unique_player.initial_zombie_blood_dig++;
iprintln(ent.e_unique_player.initial_zombie_blood_dig);
if (ent.e_unique_player.initial_zombie_blood_dig <= 2)
{
ent setvisibletoplayer(ent.e_unique_player);
}
else
{
ent thread set_visible_after_rounds(ent.e_unique_player, 3);
}
arrayremovevalue(level.a_zombie_blood_entities, ent);
}
}
wait .5;
}
}
set_visible_after_rounds(player, num)
{
for (i = 0; i < num; i++)
{
level waittill( "end_of_round" );
}
self setvisibletoplayer(player);
}
tomb_soul_box_changes()
{
if(!(is_classic() && level.scr_zm_map_start_location == "tomb"))