From 27eeb11a97e2422dc170a8aa11e6e8d360dc46ec Mon Sep 17 00:00:00 2001 From: jenz Date: Sat, 16 Dec 2023 17:54:50 +0100 Subject: [PATCH] plugin for rotating maps thats are written inside the wtf.txt file, this is great for testing crashes related to mapchanges --- .../scripting/map_restart_spammer.sp | 62 +++ map_restart_spammer/wtf.txt | 429 ++++++++++++++++++ 2 files changed, 491 insertions(+) create mode 100644 map_restart_spammer/scripting/map_restart_spammer.sp create mode 100644 map_restart_spammer/wtf.txt diff --git a/map_restart_spammer/scripting/map_restart_spammer.sp b/map_restart_spammer/scripting/map_restart_spammer.sp new file mode 100644 index 00000000..a2ba0426 --- /dev/null +++ b/map_restart_spammer/scripting/map_restart_spammer.sp @@ -0,0 +1,62 @@ +#include +#include + +int map_switches_count = -1; +char g_cMaps[500][256]; + +//---------------------------------------------------------------------------------------------------- +// Purpose: +//---------------------------------------------------------------------------------------------------- +public Plugin myinfo = +{ + name = "spam map restarts and counting each time", + author = "jenz", + description = "spam map restarts", + version = "2.0.0", + url = "www.unloze.com" +}; + +//---------------------------------------------------------------------------------------------------- +// Purpose: +//---------------------------------------------------------------------------------------------------- +public void OnPluginStart() +{ + RegAdminCmd("sm_restartmaps_test", cmd_restart_the_map, ADMFLAG_GENERIC); + + new Handle:fileHandle = OpenFile("wtf.txt", "r" ); + char lineBuffer[256]; + int count = 0; + while( !IsEndOfFile( fileHandle ) && ReadFileLine( fileHandle, lineBuffer, sizeof( lineBuffer ) ) ) + { + TrimString( lineBuffer ); + Format(g_cMaps[count], sizeof(g_cMaps[]), lineBuffer); + count++; + } + CloseHandle( fileHandle ); + map_switches_count = -1; +} + +public Action cmd_restart_the_map(int client, int args) +{ + map_switches_count = 0; + OnMapStart(); + return Plugin_Handled; +} + +public void OnMapStart() +{ + if (map_switches_count != -1 && map_switches_count < 400) + { + CreateTimer(5.0, time_query_activity); + } +} + +public Action time_query_activity(Handle timer, any data) +{ + LogError("restart count reached: %i", map_switches_count); + int local = map_switches_count; + map_switches_count++; + ForceChangeLevel(g_cMaps[local], ""); + return Plugin_Handled; +} + diff --git a/map_restart_spammer/wtf.txt b/map_restart_spammer/wtf.txt new file mode 100644 index 00000000..21d39904 --- /dev/null +++ b/map_restart_spammer/wtf.txt @@ -0,0 +1,429 @@ +5v_2yawanur_potfoor_ez +lanif_epacseniart_ez +nif_rorrim_2xif_ximer_6epacsetaob_ez +ze_2012_b3b +ze_30_seconds__b21 +ze_666_crazy_escape_v2_css2f +ze_8bit_v5b +ze_abandoned_industry_va2s +ze_abandoned_project_v1_2 +ze_abfd_fix_labescape_vb6 +ze_acuticnotes_v1_2s +ze_aepp_nano_grid2_b2s +ze_aethership_v1b +ze_alien_vs_predator_v5 +ze_amkoescape_v1337 +ze_ancient_wrath_v1_fix2 +ze_ancient_wrath_v2_test27 +ze_antartika_b2 +ze_aperturescience_ob +ze_arctic_escape_c1_fix3 +ze_artika_base_v1_2s +ze_ashen_keep_v0_3 +ze_assassins_creed_v1 +ze_astral_s2 +ze_atix_apocalypse_v1a +ze_atix_extinction_b7 +ze_atix_helicopter_i3d_c1 +ze_atix_panic_b3t +ze_atix_panic_b3t_halloween_v1 +ze_avalanche_reboot_beta7 +ze_aztec_temple_v3c +ze_aztecorum_b3 +ze_a_e_s_t_h_e_t_i_c_v1_1s +ze_barrage_v1 +ze_bastion2_nav72 +ze_bathroom_v2_5s +ze_best_korea_css3 +ze_binary_z4_s1 +ze_biohazard_manor_v4a_004 +ze_biohazard_v2b_004 +ze_biohazard2_rpd_v4e_004 +ze_biohazard2_sewer_v4c +ze_biohazard3_nemesis_b5_2s +ze_bioluminescent_b2 +ze_bioshock_v7_1 +ze_blackmesa_escape_final +ze_blackmesa_remix_v3_6 +ze_boacceho_p4s +ze_boatescape6_remix_fix2 +ze_boredom_v543656 +ze_bowser_in_the_fire_sea_v1e +ze_breakable_v1_8 +ze_candy_star_a3 +ze_castlevania_64_v1_3_b2 +ze_castlevania_v1_3 +ze_ccc_floator_mislands_v2s +ze_chandrila_v025a +ze_chicken_lords_tower_b2mix5 +ze_chicken_ranch_v2_1s +ze_christmas_beta3f +ze_christmas_infection_v2_3 +ze_chroma_v0_4 +ze_chronus_a1s +ze_classic_mashups_v6_4 +ze_colorlicouspilar_fix +ze_colors_v1 +ze_corrup_r1 +ze_crashbandicoot_v1fix +ze_crazy_escape_css2 +ze_crypt_v1_4s +ze_crystal_of_will_v1f +ze_cursed_ruins_v2s +ze_cyberia_css1 +ze_dangerous_waters_v1a +ze_dark_souls_ptd_v0_4 +ze_dawnhold_v1 +ze_death_star_escape_v4_3 +ze_deadcore_s7 +ze_destruction_of_exorath_re3 +ze_derpescape_itstime +ze_descent_into_cerberon_s1 +ze_dev_r4a +ze_diablo_v4_1 +ze_djinn_v1 +ze_dods_elemental_fire_dragon_v6_1 +ze_doom3_v1 +ze_doom_v1_1 +ze_doorhug_and_solo_v6_2 +ze_dreamin_v2_3s +ze_dreamin_v3_1_css +ze_echo_boatescape_extended +ze_eden_a3s +ze_elevator_escape +ze_elevator_escape_jbg_final +ze_emerald_b4 +ze_ep2_plant_b1s +ze_epic_end_v4_3 +ze_error_a0 +ze_eruption_escape_fix +ze_escape_horizon_c1v2 +ze_escape_stroggos_b4 +ze_escape_the_eye_remix_finb +ze_escape_the_eye_v3 +ze_eschaton_a2_1 +ze_eternal_journey_css_v1_4t8 +ze_eternal_void_v3_5a +ze_evernight_a3_4_css2 +ze_exchange_innovation_v1bs +ze_fapescape_v1_2 +ze_fapescape_rote_v1_3f +ze_fast_escape_fix +ze_ffvii_cosmo_canyon_v5fix +3_b5v_rotcaer_okam_iivff_ez +ze_ffvii_mako_reactor_v5_3 +ze_ffvii_mako_reactor_v6_b08 +ze_ffvii_temple_ancient_v3_3 +ze_ffxii_feywood_b3_1 +ze_ffxii_paramina_rift_v1_4 +ze_ffxii_ridorana_cataract_t5_3 +ze_ffxii_salikawood_v1_8s +ze_ffxii_westersand_v7_2 +ze_ffxii_westersand_v8zeta1 +ze_ffxiv_pharos_sirius_css +ze_ffxiv_wanderers_palace_v4_5s +ze_ffxiv_wanderers_palace_v5_2f +ze_ffxiv_wanderers_palace_v6css +ze_fiendlordkeep_v4_2 +ze_firewall_laboratory_part1_3 +ze_firewall_laboratory_part2_3 +ze_flower_a1_s4 +ze_flying_world_v2 +ze_forestbunkers_v2_fix +ze_forgotten_facility +ze_frostdrake_tower_v1s +ze_frozentemple_b8_2 +ze_games_v2_2a +ze_gameshow_v1_2 +ze_gargantua_v2_0 +ze_genso_of_last_v2_2fix +ze_get_to_the_chopper_undead_6 +ze_gibletz_establishment_b6 +ze_gods_wrath_v3_8b +ze_got_the_north_b4 +ze_grand_boat_escape_day_v4_3 +ze_grand_boat_escape_v1_9 +ze_grau_s3_2 +ze_greencity_v1_1 +ze_grey_b2_4 +ze_gris_fyk +ze_halloween_house_b4s +ze_halo_poa +ze_halo_v1_3 +ze_hell_escape_rc1 +ze_hellz_rescuebase_v5_b1 +ze_hidden_fortress_v1_0 +ze_hidden_temple_v2_5d +ze_horizon_sky_escape_b1s +ze_hydroponic_garden_css1 +ze_hsc_a4_5 +ze_hypernova_v2fix +ze_iamlegend_b2 +ze_icecap_escape_act2_b3s_fix +ze_icecap_escape_v3 +ze_icecap_escape_v5 +ze_icecap_escape_act2_b3s_fix +ze_icecave_escape_v2 +ze_illya_b4 +ze_immortal_flame_v1_2 +ze_inboxed_v1_5 +ze_indiana_jones_iv_v2_4 +ze_indiana_jones_v4a_004 +ze_industrial_dejavu_v3_3_1 +ze_infected_sewers_v6_5 +ze_infected_tramway_v3_3 +ze_infested-industry_v2_b10 +ze_infiltration_final_v4l_004 +ze_insurrection_zi3 +ze_interception_b4 +ze_isla_nublar_v3 +ze_island_escape_sg_01 +ze_italy_town_v3 +ze_jump_king_b3 +ze_johnny_nukem_b8_3 +ze_journey_v1_2 +ze_jungle_escape_v1_2 +ze_jungleescape_b3_6 +ze_jurassic_park_story_v1 +ze_jurassicpark_c1v4 +ze_jurassicpark_escape_v1 +ze_jurassicpark_v2_10_ob +ze_kebab_immigrant_v3 +ze_kitchen_v2s +ze_knife_fun_winter_collab_v1 +ze_kraznov_poopata +ze_l0v0l_v1_4 +ze_laboratory_escape_v2_4b_final +ze_laserheaven_css2 +ze_legend_of_astrum_v1 +ze_lego_v1 +ze_legoland_crackheads_v2 +ze_licciana_escape_v2 +ze_light_retribution_v1s +ze_light_shadow_l1_4 +ze_lila_panic_escape_v3_1 +ze_liljimmy_v1 +ze_lilmeaty_v1_3 +ze_little_trip_v2 +ze_lolxd_final_s +ze_lotr_helms_deep_v5 +ze_lotr_isengard_v2_3 +ze_lotr_minas_tirith_v3_3 +ze_lotr_mines_of_moria_v6_3testfix +ze_lotr_mount_doom_v3 +ze_lotr_mount_doom_v4_2 +ze_luck_matters_v1ds +ze_luigismanison_fix2 +ze_lumiverse_a3 +ze_madara_temple_v1fix +ze_madness_v2_1 +ze_magala_castle_final_s +ze_magic_carpet_v1_0 +ze_mario_tower_v4 +ze_meatropolis_v1_1 +ze_mgden_y3_s2 +ze_mindtree_v1_6s +ze_minecraft_adventure_v1_2c +ze_minecraft_universe_v1_5s +ze_minecraft_v1_1a +ze_minimal_v4_1 +ze_mirrors_edge_reborn_v4_3 +ze_mist_v1_3 +ze_moltentemple_a5 +ze_moon_base_v1 +ze_motanuminc_ob +ze_mountain_escape_v5_zy +ze_mytex_escape_v3 +ze_naruto_v2_6e +ze_natural_css +ze_negative_legacy_xf4s +ze_nibui_a3_2 +ze_nightmares_madness_v1_2 +ze_no_title_v1_3s7 +ze_noir_b1 +ze_nostromo_v1_0f +ze_notredame_v1_3 +ze_ocean_base_escape_v4 +ze_omega_b3 +ze_opti_variety_missions_p1 +ze_otakuroom_v5_6fs +ze_outpost_escape_css +ze_palm_island_nav72 +ze_oot_shadowtemple_b10s +ze_paper_escaper_v7_1 +ze_paradise_v1 +ze_paranoid_rezurrection_v11_9 +ze_parkers_pit_b8 +ze_parking_v3_1 +ze_parkour_fix +ze_participant_v2 +ze_pidaras_city_a4 +ze_pidaras_v1_4fix3 +ze_pirates_port_royal_v3_6 +ze_pirates_port_royal_v5_4s2 +ze_pizzatime_v4s +ze_pkmn_adventure_v8_6s_fix2 +ze_planeshifter_a3 +ze_pokemon_adventure_v1_1s +ze_ponchermonkey_shooter_v3_5 +ze_poppy_playtime_origin_v666 +ze_portal_story_v3_2 +ze_potc_v3_4fix +ze_predator_ultimate_v3 +ze_project_alcaria_v1_5s +ze_prototype_v2 +ze_purgatorium_b1fix +ze_puta +ze_quiver_v2a +ze_raccoon_facility_v6b +ze_radiance_v1_1 +ze_ramp_a1_1s +ze_random_escape_b7_3 +ze_random_v9 +ze_random_v10_fix +ze_randomizer_c1s4 +ze_ratescape_v5_4css2 +ze_ravenholm_v05fix +ze_rawnscape_b2 +ze_re4_castle_a3 +ze_regular_rooftoprunaway2_v2 +ze_reservoir_1a +ze_resonance_cascade_v3 +ze_rev_s2 +ze_river_escape_v3_fix +ze_rizomata_s2_1 +ze_rocket_escape_r1 +ze_rollermine_factory_2010 +ze_rooftop_autism_runaway_v1_1 +ze_rooftop_rogue_v1_3 +ze_rooftop_runaway1_v4 +ze_rooftop_runaway2_v5 +ze_rtcw_ominous_rumors_v1 +ze_runaway_roofside1_v4_final +ze_rush_b_s1 +ze_s_a_m_a40_css3 +ze_sagreen_v1fix +ze_sanctuary_v1_2_port2 +ze_sandstorm_css_v1_5x3 +ze_santassination_css2 +ze_saw_final +ze_sc_turtles_v5fix +ze_scourge_v1 +ze_sdp_30_seconds_remake_v1_2 +ze_sele_s2 +ze_serious_sam_tfe_v1_4s +ze_serpentis_temple_v2a +ze_sewer_escape_2012_b1 +ze_sg1_missions_v2_1 +ze_shaun_of_the_dead_b3 +ze_shaurma_v3_b06 +ze_showdown_v7_dfix +ze_shroomforest_v4_5 +ze_shroomforest2_v1 +ze_shroomforest3_b6_2 +ze_siberia_1990_v1_2c +ze_silent_hill_2_illusion_kn1 +ze_sit_caelum_paradisus_b7s +ze_skill_escape_v09s +ze_sky_athletic_adv_v9_12s +ze_sky_athletic_v5_final +ze_slender_b7 +ze_slender_escape_b4 +ze_snowcrash_escape_vfixed1 +ze_solstice_redux_b1 +ze_something_ordinary_v4rf2 +ze_sorrento_arknights_a5 +ze_sorrento_escape_v5 +ze_sorrento_night_v3 +ze_sorrento_xmas_v4 +ze_sorrtento_resonate_v1 +ze_source_ware_b1_8 +ze_space_flight_v1_1 +ze_space_stationob_fix +ze_squidzer_final_v3_a +ze_sst_b2_1 +ze_sst_v2_b2 +ze_stalker_ultimate_v2_3 +ze_stalker_ultimate_v3 +ze_stalkermonolit_v7css1fix +ze_standart_map_final_fix3 +ze_stargate_escape_v8 +ze_starwars_v2fix +ze_stilshrine_of_miriam_v7_2s +ze_stone_pit_v2_b5 +ze_strange_escape_b3 +ze_sunkentemple_v3_1s +ze_sunlight_v2_0 +ze_super_mario_64_v2_b9 +ze_surf_bona_s2 +ze_surf_cherry_blossom_v4_1 +ze_surf_daybreak_v1_1 +ze_surf_facility_v2_3 +ze_surf_facility_v3_pre2 +ze_surf_froyo_css3 +ze_surf_gypt_v1_3s +ze_surf_happy_b7s2 +ze_surf_outside_s3 +ze_surf_sahok_t5_9 +ze_surf_shonyudo_v1_1s +ze_surf_shonyudo_v5_2s +ze_surf_vortex_v1_9s +ze_surface_a1 +ze_survivors_b5 +ze_swamp_crypt_v1_7f +ze_taboo_carnation_v2 +ze_tempel_der_nichtexistenz_v1 +ze_temple_raider_b4 +ze_temple_v2_1 +ze_ten_keys_b2fix +ze_terraria_v3_2 +ze_tesv_skyrim_v4fix +ze_the_ball_final +ze_the_last_chapter_v1_5_css +ze_the_last_winter_v2_1 +ze_the_parish_c5m1 +ze_thelostworld_redux_101jj +ze_thousand_steps_b7c +ze_tilex_ultimate_v2_14s +ze_timesplitters_v1_2 +ze_titanic_cqd_v2_fixed +ze_titanic_escape_v2_3 +ze_tkara_v1 +ze_tloz_celestia_a4 +ze_tloz_stone_tower_temple_v1 +ze_toaster_v1_2 +ze_totemo_roka_b5s +ze_traak_b1 +ze_trainescape_final +ze_trainstation_tunnels_a1 +ze_treecolada_v1_3 +ze_trend_machine_2_v1_25 +ze_tropico_escape_gs1 +ze_tv_station_v2 +ze_trials_v1fs +ze_tyranny_v5fix +ze_tyranny2_v1fix +ze_uchiha_legacy_v1_3f +ze_underground_escape__final +ze_undersea_temple_s2 +ze_undertale_g_v1_2s2 +ze_ut2004_convoy_v2_2_1 +ze_v0u0v_b2 +ze_vaultofglass_beta +ze_venice_escape_b2 +ze_verdant_v1 +ze_vile_sewers_a3 +ze_visualizer_css2 +ze_volcano_escape_v4 +ze_voodoo_islands_v4_007 +ze_voodoo_islands_v8_5 +ze_winter_bash_v3_b2 +ze_wuhan_v4 +ze_xiii_winslow_bank_v2_2fix +ze_yuki_base_v3 +ze_zombie_factory_v1 +ze_zombierig_v4_3 +ze_ztastic_v2 +zm_4way_tunnel_v2 +zm_cbble_b3 +cs_office