From 04f0e0f227054f64069910d9f73a080e1829a31a Mon Sep 17 00:00:00 2001 From: higps <59850204+higps@users.noreply.github.com> Date: Wed, 4 Oct 2023 21:43:55 +0200 Subject: [PATCH] transform in to blank TFCLass_ --- boss_demoman_demopan.sp | 2 +- boss_demoman_nuker.sp | 2 +- boss_heavy_kommisarkrit.sp | 2 +- boss_pyro_skilltron.sp | 2 +- boss_soldier_General_Crits.sp | 2 +- free_damage_flames_pyro_lister.sp | 2 +- free_damage_flames_pyro_rocketman.sp | 2 +- free_damage_flames_pyro_spitfire.sp | 2 +- free_damage_flames_pyro_wamo.sp | 2 +- free_damage_flames_wizard_pyro_fire_wizard.sp | 2 +- free_damage_grenades_demoman_LED.sp | 2 +- free_damage_grenades_demoman_dreysidel.sp | 2 +- free_damage_grenades_demoman_mortarmack.sp | 2 +- free_damage_grenades_demoman_raid.sp | 2 +- free_damage_grenades_demoman_solarlight.sp | 2 +- free_damage_hitscan_heavy_HiGPS.sp | 2 +- free_damage_hitscan_heavy_bigjoey.sp | 2 +- free_damage_hitscan_heavy_riotcop.sp | 2 +- free_damage_hitscan_scout_b4nny.sp | 2 +- free_damage_hitscan_scout_funke.sp | 2 +- free_damage_hitscan_scout_mechaface.sp | 2 +- free_damage_melee_demoman_roboknight.sp | 2 +- free_damage_melee_pyro_centurion.sp | 2 +- free_damage_melee_pyro_volcanyro.sp | 2 +- free_damage_melee_sniper_fatmagic.sp | 2 +- free_damage_rockets_soldier_bazookajoe.sp | 2 +- free_damage_rockets_soldier_dewill.sp | 2 +- free_damage_rockets_soldier_drgrordbot.sp | 2 +- free_damage_rockets_soldier_icebear.sp | 2 +- free_disruptor_demoman_SAM.sp | 2 +- free_disruptor_demoman_toofty.sp | 2 +- free_disruptor_heavy_hoovy.sp | 2 +- free_disruptor_pyro_kristianma.sp | 2 +- free_disruptor_soldier_elmaxo.sp | 2 +- free_disruptor_soldier_tonetech.sp | 2 +- free_engineer_barricade.sp | 2 +- free_engineer_dane.sp | 2 +- free_engineer_wranglerbill.sp | 2 +- free_engineer_zonical.sp | 2 +- free_healer_medic_arrayseven.sp | 2 +- free_healer_medic_beskymin.sp | 2 +- free_healer_medic_sentro.sp | 2 +- free_healer_medic_theory-y.sp | 2 +- free_sniper_CarbineCassidy.sp | 2 +- free_sniper_huntsbot.sp | 2 +- free_sniper_jbird.sp | 2 +- free_sniper_skeeter.sp | 2 +- free_sniper_spaceguyonline.sp | 2 +- free_tank_demoman_executer.sp | 2 +- free_tank_heavy_gotham_protector.sp | 2 +- free_tank_heavy_mega_ton.sp | 2 +- import os2.py | 54 +++++++------------ paid_damage_flames_pyro_firelord.sp | 2 +- paid_damage_grenades_demoman_explodin.sp | 2 +- paid_damage_grenades_demoman_quickler.sp | 2 +- paid_damage_grenades_demoman_zerog.sp | 2 +- paid_damage_hitscan_heavy_deflector.sp | 2 +- paid_damage_hitscan_heavy_firewall.sp | 2 +- paid_damage_hitscan_heavy_rageheavy.sp | 2 +- paid_damage_hitscan_heavy_shredder.sp | 2 +- paid_damage_hitscan_scout_backscatter.sp | 2 +- paid_damage_hitscan_scout_hammerhead.sp | 2 +- paid_damage_melee_demoman_sultan.sp | 2 +- paid_damage_melee_soldier_equalizor.sp | 2 +- paid_damage_rockets_soldier_artillery.sp | 2 +- paid_damage_rockets_soldier_backup.sp | 2 +- paid_damage_rockets_soldier_buffbott.sp | 2 +- paid_damage_rockets_soldier_captainconcho.sp | 2 +- paid_damage_rockets_soldier_cloaker.sp | 2 +- paid_damage_rockets_soldier_kappy.sp | 2 +- paid_disruptor_pyro_astrobot.sp | 2 +- paid_disruptor_scout_bonkscout.sp | 2 +- paid_disruptor_scout_fanscout.sp | 2 +- paid_disruptor_scout_hypescout.sp | 2 +- paid_disruptor_soldier_blastinator.sp | 2 +- paid_disruptor_soldier_lazy_purple.sp | 2 +- paid_engineer_gnome.sp | 2 +- paid_engineer_nofungineer.sp | 2 +- paid_healer_medic_quick-shielder.sp | 2 +- paid_healer_medic_ubermachine.sp | 2 +- paid_melee_demoman_archibolt.sp | 2 +- paid_sentry_buster_jetpack_pyro.sp | 2 +- paid_sentry_buster_mvm.sp | 2 +- paid_sentry_buster_rockets_soldier_bursty.sp | 2 +- paid_sentrybuster_demoman_larry.sp | 2 +- paid_spy_blackshiv.sp | 2 +- paid_spy_mrpaladin.sp | 2 +- paid_spy_stabbystabby.sp | 2 +- paid_tank_demoman_hacked_slasher.sp | 2 +- paid_tank_heavy_pancop.sp | 2 +- 90 files changed, 107 insertions(+), 125 deletions(-) diff --git a/boss_demoman_demopan.sp b/boss_demoman_demopan.sp index 6877eb83..bc83bd21 100644 --- a/boss_demoman_demopan.sp +++ b/boss_demoman_demopan.sp @@ -108,7 +108,7 @@ MakeSolar(client) SetModel(client, GDEKNIGHT); float scale = 1.75; - int iHealth = 7500; + RoboSetHealth(client, TFClass_, 7500, 1.5); // PrintToChatAll("MaxHealth %i", MaxHealth); diff --git a/boss_demoman_nuker.sp b/boss_demoman_nuker.sp index 1dcc992d..bdf20485 100644 --- a/boss_demoman_nuker.sp +++ b/boss_demoman_nuker.sp @@ -114,7 +114,7 @@ MakeSolar(client) SetModel(client, GDEKNIGHT); float scale = 1.85; - int iHealth = 5000; + RoboSetHealth(client, TFClass_, 5000, 1.5); // PrintToChatAll("MaxHealth %i", MaxHealth); diff --git a/boss_heavy_kommisarkrit.sp b/boss_heavy_kommisarkrit.sp index 3aed98ab..5f54478b 100644 --- a/boss_heavy_kommisarkrit.sp +++ b/boss_heavy_kommisarkrit.sp @@ -142,7 +142,7 @@ MakeBigBigJoey(client) } CreateTimer(0.0, Timer_Switch, client); SetModel(client, GDEFLECTORH); - int iHealth = 7500; + RoboSetHealth(client, TFClass_, 7500, 1.5); // PrintToChatAll("MaxHealth %i", MaxHealth); diff --git a/boss_pyro_skilltron.sp b/boss_pyro_skilltron.sp index 0473e0bc..54e8b2c4 100644 --- a/boss_pyro_skilltron.sp +++ b/boss_pyro_skilltron.sp @@ -137,7 +137,7 @@ MakeGiantPyro(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GPYRO); - int iHealth = 5000; + RoboSetHealth(client, TFClass_, 5000, 1.5); //PrintToChatAll("MaxHealth %i", MaxHealth); diff --git a/boss_soldier_General_Crits.sp b/boss_soldier_General_Crits.sp index 56419e04..c4afbb42 100644 --- a/boss_soldier_General_Crits.sp +++ b/boss_soldier_General_Crits.sp @@ -186,7 +186,7 @@ MakeGiantSoldier(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GSOLDIER); - int iHealth = 5800; + RoboSetHealth(client, TFClass_, 5800, 1.5); SetEntPropFloat(client, Prop_Send, "m_flModelScale", scale); diff --git a/free_damage_flames_pyro_lister.sp b/free_damage_flames_pyro_lister.sp index ea3c3f67..10e7a208 100644 --- a/free_damage_flames_pyro_lister.sp +++ b/free_damage_flames_pyro_lister.sp @@ -123,7 +123,7 @@ MakeGiantPyro(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GPYRO); - int iHealth = 3000; + RoboSetHealth(client, TFClass_, 3000, 1.5); //PrintToChatAll("MaxHealth %i", MaxHealth); diff --git a/free_damage_flames_pyro_rocketman.sp b/free_damage_flames_pyro_rocketman.sp index 73a971c7..b800b5b9 100644 --- a/free_damage_flames_pyro_rocketman.sp +++ b/free_damage_flames_pyro_rocketman.sp @@ -124,7 +124,7 @@ MakeGiantPyro(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GPYRO); - int iHealth = 3500; + RoboSetHealth(client, TFClass_, 3500, 1.5); //PrintToChatAll("MaxHealth %i", MaxHealth); diff --git a/free_damage_flames_pyro_spitfire.sp b/free_damage_flames_pyro_spitfire.sp index d23d626a..012d87bd 100644 --- a/free_damage_flames_pyro_spitfire.sp +++ b/free_damage_flames_pyro_spitfire.sp @@ -125,7 +125,7 @@ MakeGiantPyro(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GPYRO); - int iHealth = 2500; + RoboSetHealth(client, TFClass_, 2500, 1.5); //PrintToChatAll("MaxHealth %i", MaxHealth); diff --git a/free_damage_flames_pyro_wamo.sp b/free_damage_flames_pyro_wamo.sp index 0ed1a35e..20d90137 100644 --- a/free_damage_flames_pyro_wamo.sp +++ b/free_damage_flames_pyro_wamo.sp @@ -136,7 +136,7 @@ MakeGiantPyro(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GPYRO); - int iHealth = 3000; + RoboSetHealth(client, TFClass_, 3000, 1.5); //PrintToChatAll("MaxHealth %i", MaxHealth); diff --git a/free_damage_flames_wizard_pyro_fire_wizard.sp b/free_damage_flames_wizard_pyro_fire_wizard.sp index 18e7106c..3f83f4a0 100644 --- a/free_damage_flames_wizard_pyro_fire_wizard.sp +++ b/free_damage_flames_wizard_pyro_fire_wizard.sp @@ -108,7 +108,7 @@ MakeGiantPyro(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GPYRO); - int iHealth = 2750; + RoboSetHealth(client, TFClass_, 2750, 1.5); //PrintToChatAll("MaxHealth %i", MaxHealth); diff --git a/free_damage_grenades_demoman_LED.sp b/free_damage_grenades_demoman_LED.sp index d4020cd9..67d4c049 100644 --- a/free_damage_grenades_demoman_LED.sp +++ b/free_damage_grenades_demoman_LED.sp @@ -91,7 +91,7 @@ MakeSolar(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GDEKNIGHT); - int iHealth = 3000; + RoboSetHealth(client, TFClass_, 3000, 1.5); diff --git a/free_damage_grenades_demoman_dreysidel.sp b/free_damage_grenades_demoman_dreysidel.sp index ffc064a5..bed60761 100644 --- a/free_damage_grenades_demoman_dreysidel.sp +++ b/free_damage_grenades_demoman_dreysidel.sp @@ -106,7 +106,7 @@ MakeToofty(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GDEKNIGHT); - int iHealth = 3000; + RoboSetHealth(client, TFClass_, 3000, 1.5); diff --git a/free_damage_grenades_demoman_mortarmack.sp b/free_damage_grenades_demoman_mortarmack.sp index f09d3459..883c9d3e 100644 --- a/free_damage_grenades_demoman_mortarmack.sp +++ b/free_damage_grenades_demoman_mortarmack.sp @@ -100,7 +100,7 @@ MakeSolar(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GDEKNIGHT); - int iHealth = 3000; + RoboSetHealth(client, TFClass_, 3000, 1.5); diff --git a/free_damage_grenades_demoman_raid.sp b/free_damage_grenades_demoman_raid.sp index a30d6595..e07c0730 100644 --- a/free_damage_grenades_demoman_raid.sp +++ b/free_damage_grenades_demoman_raid.sp @@ -136,7 +136,7 @@ MakeSolar(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GDEKNIGHT); - int iHealth = 4500; + RoboSetHealth(client, TFClass_, 4500, 1.5); float OverHealRate = 1.5; diff --git a/free_damage_grenades_demoman_solarlight.sp b/free_damage_grenades_demoman_solarlight.sp index 1abc6827..8b07f11e 100644 --- a/free_damage_grenades_demoman_solarlight.sp +++ b/free_damage_grenades_demoman_solarlight.sp @@ -86,7 +86,7 @@ MakeSolar(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GDEKNIGHT); - int iHealth = 2000; + RoboSetHealth(client, TFClass_, 2000, 1.5); float OverHealRate = 1.5; diff --git a/free_damage_hitscan_heavy_HiGPS.sp b/free_damage_hitscan_heavy_HiGPS.sp index f9bd57ee..c416ed89 100644 --- a/free_damage_hitscan_heavy_HiGPS.sp +++ b/free_damage_hitscan_heavy_HiGPS.sp @@ -109,7 +109,7 @@ MakeGDeflectorH(client) } CreateTimer(0.0, Timer_Switch, client); SetModel(client, GDEFLECTORH); - int iHealth = 5000; + RoboSetHealth(client, TFClass_, 5000, 1.5); float OverHealRate = 1.5; diff --git a/free_damage_hitscan_heavy_bigjoey.sp b/free_damage_hitscan_heavy_bigjoey.sp index 6c31d5f7..6c9fd7d0 100644 --- a/free_damage_hitscan_heavy_bigjoey.sp +++ b/free_damage_hitscan_heavy_bigjoey.sp @@ -132,7 +132,7 @@ MakeGDeflectorH(client) } CreateTimer(0.0, Timer_Switch, client); SetModel(client, GDEFLECTORH); - int iHealth = 5000; + RoboSetHealth(client, TFClass_, 5000, 1.5); // PrintToChatAll("MaxHealth %i", MaxHealth); diff --git a/free_damage_hitscan_heavy_riotcop.sp b/free_damage_hitscan_heavy_riotcop.sp index a462402c..c3c3bbc5 100644 --- a/free_damage_hitscan_heavy_riotcop.sp +++ b/free_damage_hitscan_heavy_riotcop.sp @@ -93,7 +93,7 @@ MakeRiotcop(client) } CreateTimer(0.0, Timer_Switch, client); SetModel(client, GDEFLECTORH); - int iHealth = 5000; + RoboSetHealth(client, TFClass_, 5000, 1.5); SetEntPropFloat(client, Prop_Send, "m_flModelScale", 1.75); diff --git a/free_damage_hitscan_scout_b4nny.sp b/free_damage_hitscan_scout_b4nny.sp index f43e6d21..b59f7e53 100644 --- a/free_damage_hitscan_scout_b4nny.sp +++ b/free_damage_hitscan_scout_b4nny.sp @@ -103,7 +103,7 @@ MakeGiantscout(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GSCOUT); - int iHealth = 1250; + RoboSetHealth(client, TFClass_, 1250, 1.5); diff --git a/free_damage_hitscan_scout_funke.sp b/free_damage_hitscan_scout_funke.sp index 9c0f837f..28566e8a 100644 --- a/free_damage_hitscan_scout_funke.sp +++ b/free_damage_hitscan_scout_funke.sp @@ -105,7 +105,7 @@ MakeGiantscout(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GSCOUT); - int iHealth = 1250; + RoboSetHealth(client, TFClass_, 1250, 1.5); SetEntPropFloat(client, Prop_Send, "m_flModelScale", 1.75); diff --git a/free_damage_hitscan_scout_mechaface.sp b/free_damage_hitscan_scout_mechaface.sp index 10015eb6..6e0abe40 100644 --- a/free_damage_hitscan_scout_mechaface.sp +++ b/free_damage_hitscan_scout_mechaface.sp @@ -103,7 +103,7 @@ MakeGiantscout(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GSCOUT); - int iHealth = 1250; + RoboSetHealth(client, TFClass_, 1250, 1.5); diff --git a/free_damage_melee_demoman_roboknight.sp b/free_damage_melee_demoman_roboknight.sp index c08e50f2..e8e684a9 100644 --- a/free_damage_melee_demoman_roboknight.sp +++ b/free_damage_melee_demoman_roboknight.sp @@ -86,7 +86,7 @@ MakeDemoKnight(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GDEKNIGHT); - int iHealth = 2500; + RoboSetHealth(client, TFClass_, 2500, 1.5); float OverHealRate = 1.5; diff --git a/free_damage_melee_pyro_centurion.sp b/free_damage_melee_pyro_centurion.sp index 2e3d1a36..466d5b75 100644 --- a/free_damage_melee_pyro_centurion.sp +++ b/free_damage_melee_pyro_centurion.sp @@ -100,7 +100,7 @@ MakeGiantPyro(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GPYRO); - int iHealth = 3250; + RoboSetHealth(client, TFClass_, 3250, 1.5); SetEntPropFloat(client, Prop_Send, "m_flModelScale", 1.75); diff --git a/free_damage_melee_pyro_volcanyro.sp b/free_damage_melee_pyro_volcanyro.sp index 5bd6a66d..a81fa29f 100644 --- a/free_damage_melee_pyro_volcanyro.sp +++ b/free_damage_melee_pyro_volcanyro.sp @@ -106,7 +106,7 @@ MakeGiantPyro(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GPYRO); - int iHealth = 2750; + RoboSetHealth(client, TFClass_, 2750, 1.5); SetEntPropFloat(client, Prop_Send, "m_flModelScale", 1.75); diff --git a/free_damage_melee_sniper_fatmagic.sp b/free_damage_melee_sniper_fatmagic.sp index 1a3d38f0..cb156887 100644 --- a/free_damage_melee_sniper_fatmagic.sp +++ b/free_damage_melee_sniper_fatmagic.sp @@ -100,7 +100,7 @@ MakeSniper(client) SetModel(client, ChangeDane); - int iHealth = 2250; + RoboSetHealth(client, TFClass_, 2250, 1.5); SetEntPropFloat(client, Prop_Send, "m_flModelScale", 1.65); diff --git a/free_damage_rockets_soldier_bazookajoe.sp b/free_damage_rockets_soldier_bazookajoe.sp index d1daae97..686ed442 100644 --- a/free_damage_rockets_soldier_bazookajoe.sp +++ b/free_damage_rockets_soldier_bazookajoe.sp @@ -102,7 +102,7 @@ MakeGiantSoldier(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GSOLDIER); - int iHealth = 3800; + RoboSetHealth(client, TFClass_, 3800, 1.5); diff --git a/free_damage_rockets_soldier_dewill.sp b/free_damage_rockets_soldier_dewill.sp index 2a0e1a43..a13640c5 100644 --- a/free_damage_rockets_soldier_dewill.sp +++ b/free_damage_rockets_soldier_dewill.sp @@ -109,7 +109,7 @@ MakeGiantSoldier(client) } CreateTimer(0.0, Timer_Switch, client); SetModel(client, GSOLDIER); - int iHealth = 3800; + RoboSetHealth(client, TFClass_, 3800, 1.5); float OverHealRate = 1.5; diff --git a/free_damage_rockets_soldier_drgrordbot.sp b/free_damage_rockets_soldier_drgrordbot.sp index bd55f4f0..7f7e82b7 100644 --- a/free_damage_rockets_soldier_drgrordbot.sp +++ b/free_damage_rockets_soldier_drgrordbot.sp @@ -101,7 +101,7 @@ MakeGiantSoldier(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GSOLDIER); - int iHealth = 3800; + RoboSetHealth(client, TFClass_, 3800, 1.5); float OverHealRate = 1.5; diff --git a/free_damage_rockets_soldier_icebear.sp b/free_damage_rockets_soldier_icebear.sp index b4f79a74..dc437ec4 100644 --- a/free_damage_rockets_soldier_icebear.sp +++ b/free_damage_rockets_soldier_icebear.sp @@ -107,7 +107,7 @@ MakeGiantSoldier(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GSOLDIER); - int iHealth = 3800; + RoboSetHealth(client, TFClass_, 3800, 1.5); float OverHealRate = 1.5; diff --git a/free_disruptor_demoman_SAM.sp b/free_disruptor_demoman_SAM.sp index 4b829009..1ac06c1f 100644 --- a/free_disruptor_demoman_SAM.sp +++ b/free_disruptor_demoman_SAM.sp @@ -89,7 +89,7 @@ MakeDemoKnight(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GDEKNIGHT); - int iHealth = 2175; + RoboSetHealth(client, TFClass_, 2175, 1.5); float OverHealRate = 1.5; diff --git a/free_disruptor_demoman_toofty.sp b/free_disruptor_demoman_toofty.sp index a1782fb1..677e07b1 100644 --- a/free_disruptor_demoman_toofty.sp +++ b/free_disruptor_demoman_toofty.sp @@ -90,7 +90,7 @@ MakeToofty(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GDEKNIGHT); - int iHealth = 1750; + RoboSetHealth(client, TFClass_, 1750, 1.5); diff --git a/free_disruptor_heavy_hoovy.sp b/free_disruptor_heavy_hoovy.sp index d49d3624..fbaa0776 100644 --- a/free_disruptor_heavy_hoovy.sp +++ b/free_disruptor_heavy_hoovy.sp @@ -123,7 +123,7 @@ MakeGDeflectorH(client) } CreateTimer(0.0, Timer_Switch, client); SetModel(client, GDEFLECTORH); - int iHealth = 3000; + RoboSetHealth(client, TFClass_, 3000, 1.5); float OverHealRate = 1.5; diff --git a/free_disruptor_pyro_kristianma.sp b/free_disruptor_pyro_kristianma.sp index 7322b2fc..8ae54e5d 100644 --- a/free_disruptor_pyro_kristianma.sp +++ b/free_disruptor_pyro_kristianma.sp @@ -101,7 +101,7 @@ MakeGiantPyro(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GPYRO); - int iHealth = 1750; + RoboSetHealth(client, TFClass_, 1750, 1.5); float scale = 1.65; diff --git a/free_disruptor_soldier_elmaxo.sp b/free_disruptor_soldier_elmaxo.sp index e04578a5..198a2f64 100644 --- a/free_disruptor_soldier_elmaxo.sp +++ b/free_disruptor_soldier_elmaxo.sp @@ -143,7 +143,7 @@ MakeGiantSoldier(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GSOLDIER); - int iHealth = 2000; + RoboSetHealth(client, TFClass_, 2000, 1.5); //PrintToChatAll("MaxHealth %i", MaxHealth); diff --git a/free_disruptor_soldier_tonetech.sp b/free_disruptor_soldier_tonetech.sp index d4ded4c3..7bf7ff17 100644 --- a/free_disruptor_soldier_tonetech.sp +++ b/free_disruptor_soldier_tonetech.sp @@ -117,7 +117,7 @@ MakeGiantSoldier(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GSOLDIER); - int iHealth = 2000; + RoboSetHealth(client, TFClass_, 2000, 1.5); //PrintToChatAll("MaxHealth %i", MaxHealth); diff --git a/free_engineer_barricade.sp b/free_engineer_barricade.sp index 33baf5fd..ebd19d80 100644 --- a/free_engineer_barricade.sp +++ b/free_engineer_barricade.sp @@ -99,7 +99,7 @@ MakeUncleDane(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, ChangeDane); - int iHealth = 1250; + RoboSetHealth(client, TFClass_, 1250, 1.5); float OverHealRate = 1.5; float scale = 1.65; diff --git a/free_engineer_dane.sp b/free_engineer_dane.sp index 59e4e43c..601be1f6 100644 --- a/free_engineer_dane.sp +++ b/free_engineer_dane.sp @@ -165,7 +165,7 @@ MakeUncleDane(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, ChangeDane); - int iHealth = 1250; + RoboSetHealth(client, TFClass_, 1250, 1.5); float OverHealRate = 1.5; float scale = 1.65; diff --git a/free_engineer_wranglerbill.sp b/free_engineer_wranglerbill.sp index 34a77ca8..c95159ac 100644 --- a/free_engineer_wranglerbill.sp +++ b/free_engineer_wranglerbill.sp @@ -102,7 +102,7 @@ MakeBotSlinger(client) SetModel(client, ChangeDane); - int iHealth = 1250; + RoboSetHealth(client, TFClass_, 1250, 1.5); SetEntPropFloat(client, Prop_Send, "m_flModelScale", 1.65); diff --git a/free_engineer_zonical.sp b/free_engineer_zonical.sp index 99dcfc52..27d1d409 100644 --- a/free_engineer_zonical.sp +++ b/free_engineer_zonical.sp @@ -158,7 +158,7 @@ MakeUncleDane(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, ChangeDane); - int iHealth = 1250; + RoboSetHealth(client, TFClass_, 1250, 1.5); float OverHealRate = 1.5; float scale = 1.65; diff --git a/free_healer_medic_arrayseven.sp b/free_healer_medic_arrayseven.sp index 382e2bbd..610b500b 100644 --- a/free_healer_medic_arrayseven.sp +++ b/free_healer_medic_arrayseven.sp @@ -92,7 +92,7 @@ MakeGiantMedic(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GMEDIC); - int iHealth = 1500; + RoboSetHealth(client, TFClass_, 1500, 1.5); SetEntPropFloat(client, Prop_Send, "m_flModelScale", 1.75); diff --git a/free_healer_medic_beskymin.sp b/free_healer_medic_beskymin.sp index 01a02558..33e6b851 100644 --- a/free_healer_medic_beskymin.sp +++ b/free_healer_medic_beskymin.sp @@ -99,7 +99,7 @@ MakeGiantMedic(client) SetModel(client, GMEDIC); - int iHealth = 1500; + RoboSetHealth(client, TFClass_, 1500, 1.5); diff --git a/free_healer_medic_sentro.sp b/free_healer_medic_sentro.sp index c0f14b64..fe92aa3e 100644 --- a/free_healer_medic_sentro.sp +++ b/free_healer_medic_sentro.sp @@ -107,7 +107,7 @@ MakeGiantMedic(client) SetModel(client, GMEDIC); - int iHealth = 1500; + RoboSetHealth(client, TFClass_, 1500, 1.5); SetEntPropFloat(client, Prop_Send, "m_flModelScale", 1.75); diff --git a/free_healer_medic_theory-y.sp b/free_healer_medic_theory-y.sp index 95630c33..116df5f1 100644 --- a/free_healer_medic_theory-y.sp +++ b/free_healer_medic_theory-y.sp @@ -97,7 +97,7 @@ MakeGiantMedic(client) SetModel(client, GMEDIC); - int iHealth = 1500; + RoboSetHealth(client, TFClass_, 1500, 1.5); diff --git a/free_sniper_CarbineCassidy.sp b/free_sniper_CarbineCassidy.sp index 29641b85..4f214d34 100644 --- a/free_sniper_CarbineCassidy.sp +++ b/free_sniper_CarbineCassidy.sp @@ -95,7 +95,7 @@ MakeSniper(client) SetModel(client, ChangeDane); - int iHealth = 1500; + RoboSetHealth(client, TFClass_, 1500, 1.5); SetEntPropFloat(client, Prop_Send, "m_flModelScale", 1.65); diff --git a/free_sniper_huntsbot.sp b/free_sniper_huntsbot.sp index 026006d4..04885482 100644 --- a/free_sniper_huntsbot.sp +++ b/free_sniper_huntsbot.sp @@ -102,7 +102,7 @@ MakeSniper(client) SetModel(client, ChangeDane); - int iHealth = 1500; + RoboSetHealth(client, TFClass_, 1500, 1.5); float scale = 1.5; diff --git a/free_sniper_jbird.sp b/free_sniper_jbird.sp index 01bb91c1..28560e9c 100644 --- a/free_sniper_jbird.sp +++ b/free_sniper_jbird.sp @@ -102,7 +102,7 @@ MakeSniper(client) SetModel(client, ChangeDane); - int iHealth = 1500; + RoboSetHealth(client, TFClass_, 1500, 1.5); SetEntPropFloat(client, Prop_Send, "m_flModelScale", 1.65); diff --git a/free_sniper_skeeter.sp b/free_sniper_skeeter.sp index 884916af..09ab9337 100644 --- a/free_sniper_skeeter.sp +++ b/free_sniper_skeeter.sp @@ -94,7 +94,7 @@ MakeSniper(client) SetModel(client, ChangeDane); - int iHealth = 1500; + RoboSetHealth(client, TFClass_, 1500, 1.5); SetEntPropFloat(client, Prop_Send, "m_flModelScale", 1.65); diff --git a/free_sniper_spaceguyonline.sp b/free_sniper_spaceguyonline.sp index c8a0aacc..2aba1028 100644 --- a/free_sniper_spaceguyonline.sp +++ b/free_sniper_spaceguyonline.sp @@ -92,7 +92,7 @@ MakeSniper(client) SetModel(client, ChangeDane); - int iHealth = 1500; + RoboSetHealth(client, TFClass_, 1500, 1.5); SetEntPropFloat(client, Prop_Send, "m_flModelScale", 1.65); diff --git a/free_tank_demoman_executer.sp b/free_tank_demoman_executer.sp index 02cd973c..ecb47c29 100644 --- a/free_tank_demoman_executer.sp +++ b/free_tank_demoman_executer.sp @@ -97,7 +97,7 @@ MakeDemoKnight(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GDEKNIGHT); - int iHealth = 9000; + RoboSetHealth(client, TFClass_, 9000, 1.5); float OverHealRate = 1.5; diff --git a/free_tank_heavy_gotham_protector.sp b/free_tank_heavy_gotham_protector.sp index d38a90d5..e771b96a 100644 --- a/free_tank_heavy_gotham_protector.sp +++ b/free_tank_heavy_gotham_protector.sp @@ -141,7 +141,7 @@ MakePanCop(client) } CreateTimer(0.0, Timer_Switch, client); SetModel(client, GDEFLECTORH); - int iHealth = 6000; + RoboSetHealth(client, TFClass_, 6000, 1.5); diff --git a/free_tank_heavy_mega_ton.sp b/free_tank_heavy_mega_ton.sp index 7707d860..0df268f5 100644 --- a/free_tank_heavy_mega_ton.sp +++ b/free_tank_heavy_mega_ton.sp @@ -99,7 +99,7 @@ MakeGDeflectorH(client) } CreateTimer(0.0, Timer_Switch, client); SetModel(client, GDEFLECTORH); - int iHealth = 9000; + RoboSetHealth(client, TFClass_, 9000, 1.5); float OverHealRate = 1.5; diff --git a/import os2.py b/import os2.py index 7b3550c6..8b45f162 100644 --- a/import os2.py +++ b/import os2.py @@ -5,44 +5,26 @@ directory = 'D:/Github/robogithub' +# Define a regular expression pattern to match the desired string +# Define regular expression patterns to match and capture TFClass_ values +set_class_pattern = r'TF2_SetPlayerClass\(client, (TFClass_[^),]+)\);' +set_health_pattern = r'RoboSetHealth\(client, TFClass_,' -# Define a regular expression pattern to match TFClass lines -tf_class_pattern = r'TFClass_(\w+);' - -# Iterate through files in the directory +# Loop through the files in the directory for filename in os.listdir(directory): - # Check if the filename starts with the specified prefixes - if filename.startswith(('boss_', 'free_', 'paid_')): + if filename.startswith(("boss_", "free_", "paid_")) and filename.endswith(".sp"): file_path = os.path.join(directory, filename) - - # Initialize a list to store modified lines - modified_lines = [] - + + # Read the file content with open(file_path, 'r') as file: - lines = file.readlines() - - for line in lines: - # Check for lines containing TFClass and iHealth - if 'TFClass_' in line and 'int iHealth =' in line: - # Extract TFClass and iHealth values - tf_class_match = re.search(tf_class_pattern, line) - if tf_class_match: - tf_class = tf_class_match.group(1) - i_health_match = re.search(r'int iHealth = (\d+);', line) - if i_health_match: - i_health = i_health_match.group(1) - # Replace the line with the modified line - modified_line = f'RoboSetHealth(client, TFClass_{tf_class}, iHealth, 1.5);\n' - modified_lines.append(modified_line) - print(f'Original Line: {line.strip()}') - print(f'Modified Line: {modified_line.strip()}') - else: - modified_lines.append(line) - else: - modified_lines.append(line) - else: - modified_lines.append(line) - - # Write the modified lines back to the file + file_content = file.read() + + # Search for and capture TFClass_ values in TF2_SetPlayerClass calls + class_matches = re.findall(set_class_pattern, file_content) + + # Replace TFClass_ values in RoboSetHealth calls + transformed_content = re.sub(set_health_pattern + r'\s*TFClass_,', lambda match: f'{set_health_pattern}{match.group(1)},', file_content) + + # Write the modified content back to the file with open(file_path, 'w') as file: - file.writelines(modified_lines) \ No newline at end of file + file.write(transformed_content) \ No newline at end of file diff --git a/paid_damage_flames_pyro_firelord.sp b/paid_damage_flames_pyro_firelord.sp index 557982ef..b1a4359b 100644 --- a/paid_damage_flames_pyro_firelord.sp +++ b/paid_damage_flames_pyro_firelord.sp @@ -114,7 +114,7 @@ MakeGiantPyro(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GPYRO); - int iHealth = 5000; + RoboSetHealth(client, TFClass_, 5000, 1.5); //PrintToChatAll("MaxHealth %i", MaxHealth); diff --git a/paid_damage_grenades_demoman_explodin.sp b/paid_damage_grenades_demoman_explodin.sp index e0e79963..88318459 100644 --- a/paid_damage_grenades_demoman_explodin.sp +++ b/paid_damage_grenades_demoman_explodin.sp @@ -97,7 +97,7 @@ MakeSolar(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GDEKNIGHT); - int iHealth = 4000; + RoboSetHealth(client, TFClass_, 4000, 1.5); diff --git a/paid_damage_grenades_demoman_quickler.sp b/paid_damage_grenades_demoman_quickler.sp index 3ce3e93d..d209b040 100644 --- a/paid_damage_grenades_demoman_quickler.sp +++ b/paid_damage_grenades_demoman_quickler.sp @@ -117,7 +117,7 @@ MakeSolar(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GDEKNIGHT); - int iHealth = 3500; + RoboSetHealth(client, TFClass_, 3500, 1.5); diff --git a/paid_damage_grenades_demoman_zerog.sp b/paid_damage_grenades_demoman_zerog.sp index ecb865d2..d0dcda01 100644 --- a/paid_damage_grenades_demoman_zerog.sp +++ b/paid_damage_grenades_demoman_zerog.sp @@ -100,7 +100,7 @@ MakeSolar(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GDEKNIGHT); - int iHealth = 3500; + RoboSetHealth(client, TFClass_, 3500, 1.5); diff --git a/paid_damage_hitscan_heavy_deflector.sp b/paid_damage_hitscan_heavy_deflector.sp index 17d3e207..5336aaa0 100644 --- a/paid_damage_hitscan_heavy_deflector.sp +++ b/paid_damage_hitscan_heavy_deflector.sp @@ -110,7 +110,7 @@ MakeGRageH(client) } CreateTimer(0.0, Timer_Switch, client); SetModel(client, GRageH); - int iHealth = 6000; + RoboSetHealth(client, TFClass_, 6000, 1.5); SetEntPropFloat(client, Prop_Send, "m_flModelScale", scale); diff --git a/paid_damage_hitscan_heavy_firewall.sp b/paid_damage_hitscan_heavy_firewall.sp index 41f1e2b5..e592eda3 100644 --- a/paid_damage_hitscan_heavy_firewall.sp +++ b/paid_damage_hitscan_heavy_firewall.sp @@ -98,7 +98,7 @@ MakeGRageH(client) } CreateTimer(0.0, Timer_Switch, client); SetModel(client, GRageH); - int iHealth = 6000; + RoboSetHealth(client, TFClass_, 6000, 1.5); diff --git a/paid_damage_hitscan_heavy_rageheavy.sp b/paid_damage_hitscan_heavy_rageheavy.sp index 93014392..eff3619a 100644 --- a/paid_damage_hitscan_heavy_rageheavy.sp +++ b/paid_damage_hitscan_heavy_rageheavy.sp @@ -102,7 +102,7 @@ MakeGRageH(client) } CreateTimer(0.0, Timer_Switch, client); SetModel(client, GRageH); - int iHealth = 6000; + RoboSetHealth(client, TFClass_, 6000, 1.5); diff --git a/paid_damage_hitscan_heavy_shredder.sp b/paid_damage_hitscan_heavy_shredder.sp index f6297cb6..0ad10808 100644 --- a/paid_damage_hitscan_heavy_shredder.sp +++ b/paid_damage_hitscan_heavy_shredder.sp @@ -96,7 +96,7 @@ MakeGRageH(client) } CreateTimer(0.0, Timer_Switch, client); SetModel(client, GRageH); - int iHealth = 6000; + RoboSetHealth(client, TFClass_, 6000, 1.5); diff --git a/paid_damage_hitscan_scout_backscatter.sp b/paid_damage_hitscan_scout_backscatter.sp index 0d45f763..4e78671b 100644 --- a/paid_damage_hitscan_scout_backscatter.sp +++ b/paid_damage_hitscan_scout_backscatter.sp @@ -105,7 +105,7 @@ MakeGiantscout(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GSCOUT); - int iHealth = 2000; + RoboSetHealth(client, TFClass_, 2000, 1.5); SetEntPropFloat(client, Prop_Send, "m_flModelScale", 1.75); diff --git a/paid_damage_hitscan_scout_hammerhead.sp b/paid_damage_hitscan_scout_hammerhead.sp index 10faaef9..a68f3a6c 100644 --- a/paid_damage_hitscan_scout_hammerhead.sp +++ b/paid_damage_hitscan_scout_hammerhead.sp @@ -121,7 +121,7 @@ MakeGiantscout(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GSCOUT); - int iHealth = 2000; + RoboSetHealth(client, TFClass_, 2000, 1.5); //PrintToChatAll("MaxHealth %i", MaxHealth); diff --git a/paid_damage_melee_demoman_sultan.sp b/paid_damage_melee_demoman_sultan.sp index 30d43cbb..9ef751c7 100644 --- a/paid_damage_melee_demoman_sultan.sp +++ b/paid_damage_melee_demoman_sultan.sp @@ -97,7 +97,7 @@ MakeDemoKnight(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GDEKNIGHT); - int iHealth = 4000; + RoboSetHealth(client, TFClass_, 4000, 1.5); float OverHealRate = 1.5; diff --git a/paid_damage_melee_soldier_equalizor.sp b/paid_damage_melee_soldier_equalizor.sp index 6aa1cd08..fe54304a 100644 --- a/paid_damage_melee_soldier_equalizor.sp +++ b/paid_damage_melee_soldier_equalizor.sp @@ -119,7 +119,7 @@ MakeGiantSoldier(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GSOLDIER); - int iHealth = 3500; + RoboSetHealth(client, TFClass_, 3500, 1.5); float OverHealRate = 1.5; diff --git a/paid_damage_rockets_soldier_artillery.sp b/paid_damage_rockets_soldier_artillery.sp index 7c32f1b1..b50a548c 100644 --- a/paid_damage_rockets_soldier_artillery.sp +++ b/paid_damage_rockets_soldier_artillery.sp @@ -180,7 +180,7 @@ MakeGiantSoldier(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GSOLDIER); - int iHealth = 3800; + RoboSetHealth(client, TFClass_, 3800, 1.5); //PrintToChatAll("MaxHealth %i", MaxHealth); diff --git a/paid_damage_rockets_soldier_backup.sp b/paid_damage_rockets_soldier_backup.sp index e33a70cb..3e38978d 100644 --- a/paid_damage_rockets_soldier_backup.sp +++ b/paid_damage_rockets_soldier_backup.sp @@ -116,7 +116,7 @@ MakeGiantSoldier(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GSOLDIER); - int iHealth = 3800; + RoboSetHealth(client, TFClass_, 3800, 1.5); SetEntPropFloat(client, Prop_Send, "m_flModelScale", 1.75); diff --git a/paid_damage_rockets_soldier_buffbott.sp b/paid_damage_rockets_soldier_buffbott.sp index 79805d1c..1033b6a1 100644 --- a/paid_damage_rockets_soldier_buffbott.sp +++ b/paid_damage_rockets_soldier_buffbott.sp @@ -124,7 +124,7 @@ MakeGiantSoldier(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GSOLDIER); - int iHealth = 3800; + RoboSetHealth(client, TFClass_, 3800, 1.5); diff --git a/paid_damage_rockets_soldier_captainconcho.sp b/paid_damage_rockets_soldier_captainconcho.sp index 34628769..b5dc9f3a 100644 --- a/paid_damage_rockets_soldier_captainconcho.sp +++ b/paid_damage_rockets_soldier_captainconcho.sp @@ -116,7 +116,7 @@ MakeGiantSoldier(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GSOLDIER); - int iHealth = 3800; + RoboSetHealth(client, TFClass_, 3800, 1.5); diff --git a/paid_damage_rockets_soldier_cloaker.sp b/paid_damage_rockets_soldier_cloaker.sp index 9e6280cc..bee7965f 100644 --- a/paid_damage_rockets_soldier_cloaker.sp +++ b/paid_damage_rockets_soldier_cloaker.sp @@ -103,7 +103,7 @@ MakeGiantSoldier(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GSOLDIER); - int iHealth = 3800; + RoboSetHealth(client, TFClass_, 3800, 1.5); float OverHealRate = 1.5; diff --git a/paid_damage_rockets_soldier_kappy.sp b/paid_damage_rockets_soldier_kappy.sp index d76afd14..e786875c 100644 --- a/paid_damage_rockets_soldier_kappy.sp +++ b/paid_damage_rockets_soldier_kappy.sp @@ -108,7 +108,7 @@ MakeGiantSoldier(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GSOLDIER); - int iHealth = 2000; + RoboSetHealth(client, TFClass_, 2000, 1.5); SetEntPropFloat(client, Prop_Send, "m_flModelScale", 1.75); diff --git a/paid_disruptor_pyro_astrobot.sp b/paid_disruptor_pyro_astrobot.sp index 7f9b0e52..a705bdf1 100644 --- a/paid_disruptor_pyro_astrobot.sp +++ b/paid_disruptor_pyro_astrobot.sp @@ -107,7 +107,7 @@ MakeGiantPyro(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GPYRO); - int iHealth = 3000; + RoboSetHealth(client, TFClass_, 3000, 1.5); SetEntPropFloat(client, Prop_Send, "m_flModelScale", 1.75); diff --git a/paid_disruptor_scout_bonkscout.sp b/paid_disruptor_scout_bonkscout.sp index 0355251c..79714c75 100644 --- a/paid_disruptor_scout_bonkscout.sp +++ b/paid_disruptor_scout_bonkscout.sp @@ -108,7 +108,7 @@ MakeGiantscout(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GSCOUT); - int iHealth = 1250; + RoboSetHealth(client, TFClass_, 1250, 1.5); SetEntPropFloat(client, Prop_Send, "m_flModelScale", 1.75); diff --git a/paid_disruptor_scout_fanscout.sp b/paid_disruptor_scout_fanscout.sp index 8b7c0e9d..25eb2b87 100644 --- a/paid_disruptor_scout_fanscout.sp +++ b/paid_disruptor_scout_fanscout.sp @@ -103,7 +103,7 @@ MakeGiantscout(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GSCOUT); - int iHealth = 2150; + RoboSetHealth(client, TFClass_, 2150, 1.5); SetEntPropFloat(client, Prop_Send, "m_flModelScale", 1.75); diff --git a/paid_disruptor_scout_hypescout.sp b/paid_disruptor_scout_hypescout.sp index a4fafc61..aaaf6717 100644 --- a/paid_disruptor_scout_hypescout.sp +++ b/paid_disruptor_scout_hypescout.sp @@ -105,7 +105,7 @@ MakeGiantscout(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GSCOUT); - int iHealth = 2150; + RoboSetHealth(client, TFClass_, 2150, 1.5); //PrintToChatAll("MaxHealth %i", MaxHealth); diff --git a/paid_disruptor_soldier_blastinator.sp b/paid_disruptor_soldier_blastinator.sp index b013ecc8..c185b5b3 100644 --- a/paid_disruptor_soldier_blastinator.sp +++ b/paid_disruptor_soldier_blastinator.sp @@ -112,7 +112,7 @@ MakeGiantSoldier(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GSOLDIER); - int iHealth = 4200; + RoboSetHealth(client, TFClass_, 4200, 1.5); //PrintToChatAll("MaxHealth %i", MaxHealth); diff --git a/paid_disruptor_soldier_lazy_purple.sp b/paid_disruptor_soldier_lazy_purple.sp index 4a87fd97..c656036b 100644 --- a/paid_disruptor_soldier_lazy_purple.sp +++ b/paid_disruptor_soldier_lazy_purple.sp @@ -125,7 +125,7 @@ MakeGiantSoldier(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GSOLDIER); - int iHealth = 2500; + RoboSetHealth(client, TFClass_, 2500, 1.5); //PrintToChatAll("MaxHealth %i", MaxHealth); diff --git a/paid_engineer_gnome.sp b/paid_engineer_gnome.sp index f21cac72..b3087d85 100644 --- a/paid_engineer_gnome.sp +++ b/paid_engineer_gnome.sp @@ -104,7 +104,7 @@ MakeUncleDane(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, ChangeDane); - int iHealth = 2000; + RoboSetHealth(client, TFClass_, 2000, 1.5); float OverHealRate = 1.5; float scale = 1.65; diff --git a/paid_engineer_nofungineer.sp b/paid_engineer_nofungineer.sp index d3f09fcd..6412292d 100644 --- a/paid_engineer_nofungineer.sp +++ b/paid_engineer_nofungineer.sp @@ -106,7 +106,7 @@ MakeUncleDane(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, ChangeDane); - int iHealth = 2000; + RoboSetHealth(client, TFClass_, 2000, 1.5); float OverHealRate = 1.5; float scale = 1.65; diff --git a/paid_healer_medic_quick-shielder.sp b/paid_healer_medic_quick-shielder.sp index c7890ace..652c46a5 100644 --- a/paid_healer_medic_quick-shielder.sp +++ b/paid_healer_medic_quick-shielder.sp @@ -103,7 +103,7 @@ MakeGiantMedic(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GMEDIC); - int iHealth = 1500; + RoboSetHealth(client, TFClass_, 1500, 1.5); SetEntPropFloat(client, Prop_Send, "m_flModelScale", 1.75); diff --git a/paid_healer_medic_ubermachine.sp b/paid_healer_medic_ubermachine.sp index 0995633b..1eac3095 100644 --- a/paid_healer_medic_ubermachine.sp +++ b/paid_healer_medic_ubermachine.sp @@ -119,7 +119,7 @@ MakeGiantMedic(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GMEDIC); - int iHealth = 1500; + RoboSetHealth(client, TFClass_, 1500, 1.5); SetEntPropFloat(client, Prop_Send, "m_flModelScale", 1.75); diff --git a/paid_melee_demoman_archibolt.sp b/paid_melee_demoman_archibolt.sp index 1b895dc5..148e1e8e 100644 --- a/paid_melee_demoman_archibolt.sp +++ b/paid_melee_demoman_archibolt.sp @@ -104,7 +104,7 @@ MakeDemoKnight(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GDEKNIGHT); - int iHealth = 3500; + RoboSetHealth(client, TFClass_, 3500, 1.5); float OverHealRate = 1.5; diff --git a/paid_sentry_buster_jetpack_pyro.sp b/paid_sentry_buster_jetpack_pyro.sp index 955f75d7..ea666196 100644 --- a/paid_sentry_buster_jetpack_pyro.sp +++ b/paid_sentry_buster_jetpack_pyro.sp @@ -123,7 +123,7 @@ MakeGiantPyro(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GPYRO); - int iHealth = 3000; + RoboSetHealth(client, TFClass_, 3000, 1.5); diff --git a/paid_sentry_buster_mvm.sp b/paid_sentry_buster_mvm.sp index 7a7e09f6..905930d6 100644 --- a/paid_sentry_buster_mvm.sp +++ b/paid_sentry_buster_mvm.sp @@ -124,7 +124,7 @@ void MakeBuster(client) } RequestFrame(ClientSwitch, client); SetModel(client, GBUSTER); - int iHealth = 2500; + RoboSetHealth(client, TFClass_, 2500, 1.5); TF2CustAttr_SetString(client, "faster-respawn", "respawn=4.0"); diff --git a/paid_sentry_buster_rockets_soldier_bursty.sp b/paid_sentry_buster_rockets_soldier_bursty.sp index accd59b5..fac56105 100644 --- a/paid_sentry_buster_rockets_soldier_bursty.sp +++ b/paid_sentry_buster_rockets_soldier_bursty.sp @@ -114,7 +114,7 @@ MakeGiantSoldier(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GSOLDIER); - int iHealth = 3800; + RoboSetHealth(client, TFClass_, 3800, 1.5); SetEntPropFloat(client, Prop_Send, "m_flModelScale", 1.75); SetEntProp(client, Prop_Send, "m_bIsMiniBoss", true); diff --git a/paid_sentrybuster_demoman_larry.sp b/paid_sentrybuster_demoman_larry.sp index 5a526329..a6da1a0f 100644 --- a/paid_sentrybuster_demoman_larry.sp +++ b/paid_sentrybuster_demoman_larry.sp @@ -99,7 +99,7 @@ MakeSolar(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GDEKNIGHT); - int iHealth = 3000; + RoboSetHealth(client, TFClass_, 3000, 1.5); diff --git a/paid_spy_blackshiv.sp b/paid_spy_blackshiv.sp index c7815fed..7b6e3b05 100644 --- a/paid_spy_blackshiv.sp +++ b/paid_spy_blackshiv.sp @@ -122,7 +122,7 @@ MakeSpy(client) SetModel(client, MODEL); - int iHealth = 2250; + RoboSetHealth(client, TFClass_, 2250, 1.5); float scale = 1.5; SetEntPropFloat(client, Prop_Send, "m_flModelScale", scale); diff --git a/paid_spy_mrpaladin.sp b/paid_spy_mrpaladin.sp index f5e6ad09..763a3b62 100644 --- a/paid_spy_mrpaladin.sp +++ b/paid_spy_mrpaladin.sp @@ -122,7 +122,7 @@ MakeSpy(client) SetModel(client, MODEL); - int iHealth = 1200; + RoboSetHealth(client, TFClass_, 1200, 1.5); float scale = 1.5; SetEntPropFloat(client, Prop_Send, "m_flModelScale", scale); diff --git a/paid_spy_stabbystabby.sp b/paid_spy_stabbystabby.sp index 542e8e14..8e53272f 100644 --- a/paid_spy_stabbystabby.sp +++ b/paid_spy_stabbystabby.sp @@ -116,7 +116,7 @@ MakeSpy(client) SetModel(client, MODEL); - int iHealth = 1200; + RoboSetHealth(client, TFClass_, 1200, 1.5); SetEntPropFloat(client, Prop_Send, "m_flModelScale", 1.65); diff --git a/paid_tank_demoman_hacked_slasher.sp b/paid_tank_demoman_hacked_slasher.sp index 7b41c98d..093fb0a1 100644 --- a/paid_tank_demoman_hacked_slasher.sp +++ b/paid_tank_demoman_hacked_slasher.sp @@ -99,7 +99,7 @@ MakeDemoKnight(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GDEKNIGHT); - int iHealth = 10000; + RoboSetHealth(client, TFClass_, 10000, 1.5); float OverHealRate = 1.5; diff --git a/paid_tank_heavy_pancop.sp b/paid_tank_heavy_pancop.sp index 95a6374a..69c88137 100644 --- a/paid_tank_heavy_pancop.sp +++ b/paid_tank_heavy_pancop.sp @@ -102,7 +102,7 @@ MakePanCop(client) } CreateTimer(0.0, Timer_Switch, client); SetModel(client, GDEFLECTORH); - int iHealth = 10450; + RoboSetHealth(client, TFClass_, 10450, 1.5); // PrintToChatAll("MaxHealth %i", MaxHealth);