Skip to content

Commit

Permalink
remove set health duplicates as this is in a main file
Browse files Browse the repository at this point in the history
  • Loading branch information
higps committed Oct 4, 2023
1 parent 04f0e0f commit 44603ec
Show file tree
Hide file tree
Showing 107 changed files with 126 additions and 746 deletions.
8 changes: 1 addition & 7 deletions boss_demoman_demopan.sp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ MakeSolar(client)
SetModel(client, GDEKNIGHT);

float scale = 1.75;
RoboSetHealth(client, TFClass_, 7500, 1.5);
RoboSetHealth(client,TFClass_DemoMan, 7500, 1.5);


// PrintToChatAll("MaxHealth %i", MaxHealth);
Expand Down Expand Up @@ -149,12 +149,6 @@ MakeSolar(client)
//SetBossHealth(client);
}

stock TF2_SetHealth(client, NewHealth)
{
SetEntProp(client, Prop_Send, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iMaxHealth", NewHealth, 1);
}

public Action:Timer_Switch(Handle:timer, any:client)
{
Expand Down
8 changes: 1 addition & 7 deletions boss_demoman_nuker.sp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ MakeSolar(client)
SetModel(client, GDEKNIGHT);

float scale = 1.85;
RoboSetHealth(client, TFClass_, 5000, 1.5);
RoboSetHealth(client,TFClass_DemoMan, 5000, 1.5);


// PrintToChatAll("MaxHealth %i", MaxHealth);
Expand Down Expand Up @@ -159,12 +159,6 @@ TF2Attrib_SetByName(client, "cannot pick up intelligence", 1.0);

}

stock TF2_SetHealth(client, NewHealth)
{
SetEntProp(client, Prop_Send, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iMaxHealth", NewHealth, 1);
}

public Action:Timer_Switch(Handle:timer, any:client)
{
Expand Down
8 changes: 1 addition & 7 deletions boss_heavy_kommisarkrit.sp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ MakeBigBigJoey(client)
}
CreateTimer(0.0, Timer_Switch, client);
SetModel(client, GDEFLECTORH);
RoboSetHealth(client, TFClass_, 7500, 1.5);
RoboSetHealth(client,TFClass_Heavy, 7500, 1.5);


// PrintToChatAll("MaxHealth %i", MaxHealth);
Expand Down Expand Up @@ -198,12 +198,6 @@ TF2Attrib_SetByName(client, "cannot pick up intelligence", 1.0);
// }
}

stock TF2_SetHealth(client, NewHealth)
{
SetEntProp(client, Prop_Send, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iMaxHealth", NewHealth, 1);
}

public Action:Timer_Switch(Handle:timer, any:client)
{
Expand Down
8 changes: 1 addition & 7 deletions boss_pyro_skilltron.sp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ MakeGiantPyro(client)
CreateTimer(0.0, Timer_Switch, client);
SetModel(client, GPYRO);

RoboSetHealth(client, TFClass_, 5000, 1.5);
RoboSetHealth(client,TFClass_Pyro, 5000, 1.5);

//PrintToChatAll("MaxHealth %i", MaxHealth);

Expand Down Expand Up @@ -175,12 +175,6 @@ TF2Attrib_SetByName(client, "cannot pick up intelligence", 1.0);

}

stock TF2_SetHealth(client, NewHealth)
{
SetEntProp(client, Prop_Send, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iMaxHealth", NewHealth, 1);
}

public Action:Timer_Switch(Handle:timer, any:client)
{
Expand Down
6 changes: 0 additions & 6 deletions boss_saxtron_h4l3.sp
Original file line number Diff line number Diff line change
Expand Up @@ -450,12 +450,6 @@ MakeGiantSoldier(client)
PlaySpawnClip(client);
}

stock TF2_SetHealth(client, NewHealth)
{
SetEntProp(client, Prop_Send, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iMaxHealth", NewHealth, 1);
}

public Action:Timer_Switch(Handle:timer, any:client)
{
Expand Down
8 changes: 1 addition & 7 deletions boss_soldier_General_Crits.sp
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ MakeGiantSoldier(client)
CreateTimer(0.0, Timer_Switch, client);
SetModel(client, GSOLDIER);

RoboSetHealth(client, TFClass_, 5800, 1.5);
RoboSetHealth(client,TFClass_Soldier, 5800, 1.5);


SetEntPropFloat(client, Prop_Send, "m_flModelScale", scale);
Expand Down Expand Up @@ -215,12 +215,6 @@ MakeGiantSoldier(client)
//SetBossHealth(client);
}

stock TF2_SetHealth(client, NewHealth)
{
SetEntProp(client, Prop_Send, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iMaxHealth", NewHealth, 1);
}

public Action:Timer_Switch(Handle:timer, any:client)
{
Expand Down
8 changes: 1 addition & 7 deletions free_damage_flames_pyro_agro.sp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ MakeGiantPyro(client)
CreateTimer(0.0, Timer_Switch, client);
SetModel(client, GPYRO);

RoboSetHealth(client, TFClass_Pyro, 3000, 1.5);
RoboSetHealth(client,TFClass_PyroPyro, 3000, 1.5);

// PrintToChatAll("iHealth %i", iHealth);

Expand Down Expand Up @@ -162,12 +162,6 @@ MakeGiantPyro(client)

}

stock TF2_SetHealth(client, NewHealth)
{
SetEntProp(client, Prop_Send, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iMaxHealth", NewHealth, 1);
}

public Action:Timer_Switch(Handle:timer, any:client)
{
Expand Down
8 changes: 1 addition & 7 deletions free_damage_flames_pyro_lister.sp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ MakeGiantPyro(client)
CreateTimer(0.0, Timer_Switch, client);
SetModel(client, GPYRO);

RoboSetHealth(client, TFClass_, 3000, 1.5);
RoboSetHealth(client,TFClass_Pyro, 3000, 1.5);

//PrintToChatAll("MaxHealth %i", MaxHealth);

Expand Down Expand Up @@ -161,12 +161,6 @@ MakeGiantPyro(client)

}

stock TF2_SetHealth(client, NewHealth)
{
SetEntProp(client, Prop_Send, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iMaxHealth", NewHealth, 1);
}

public Action:Timer_Switch(Handle:timer, any:client)
{
Expand Down
8 changes: 1 addition & 7 deletions free_damage_flames_pyro_rocketman.sp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ MakeGiantPyro(client)
CreateTimer(0.0, Timer_Switch, client);
SetModel(client, GPYRO);

RoboSetHealth(client, TFClass_, 3500, 1.5);
RoboSetHealth(client,TFClass_Pyro, 3500, 1.5);

//PrintToChatAll("MaxHealth %i", MaxHealth);

Expand Down Expand Up @@ -159,12 +159,6 @@ MakeGiantPyro(client)

}

stock TF2_SetHealth(client, NewHealth)
{
SetEntProp(client, Prop_Send, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iMaxHealth", NewHealth, 1);
}

public Action:Timer_Switch(Handle:timer, any:client)
{
Expand Down
8 changes: 1 addition & 7 deletions free_damage_flames_pyro_spitfire.sp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ MakeGiantPyro(client)
CreateTimer(0.0, Timer_Switch, client);
SetModel(client, GPYRO);

RoboSetHealth(client, TFClass_, 2500, 1.5);
RoboSetHealth(client,TFClass_Pyro, 2500, 1.5);

//PrintToChatAll("MaxHealth %i", MaxHealth);

Expand Down Expand Up @@ -163,12 +163,6 @@ MakeGiantPyro(client)

}

stock TF2_SetHealth(client, NewHealth)
{
SetEntProp(client, Prop_Send, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iMaxHealth", NewHealth, 1);
}

public Action:Timer_Switch(Handle:timer, any:client)
{
Expand Down
8 changes: 1 addition & 7 deletions free_damage_flames_pyro_wamo.sp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ MakeGiantPyro(client)
CreateTimer(0.0, Timer_Switch, client);
SetModel(client, GPYRO);

RoboSetHealth(client, TFClass_, 3000, 1.5);
RoboSetHealth(client,TFClass_Pyro, 3000, 1.5);

//PrintToChatAll("MaxHealth %i", MaxHealth);

Expand Down Expand Up @@ -166,12 +166,6 @@ MakeGiantPyro(client)

}

stock TF2_SetHealth(client, NewHealth)
{
SetEntProp(client, Prop_Send, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iMaxHealth", NewHealth, 1);
}

public Action:Timer_Switch(Handle:timer, any:client)
{
Expand Down
8 changes: 1 addition & 7 deletions free_damage_flames_wizard_pyro_fire_wizard.sp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ MakeGiantPyro(client)
CreateTimer(0.0, Timer_Switch, client);
SetModel(client, GPYRO);

RoboSetHealth(client, TFClass_, 2750, 1.5);
RoboSetHealth(client,TFClass_Pyro, 2750, 1.5);

//PrintToChatAll("MaxHealth %i", MaxHealth);

Expand Down Expand Up @@ -139,12 +139,6 @@ MakeGiantPyro(client)

}

stock TF2_SetHealth(client, NewHealth)
{
SetEntProp(client, Prop_Send, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iMaxHealth", NewHealth, 1);
}

public Action:Timer_Switch(Handle:timer, any:client)
{
Expand Down
8 changes: 1 addition & 7 deletions free_damage_grenades_demoman_LED.sp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ MakeSolar(client)
CreateTimer(0.0, Timer_Switch, client);
SetModel(client, GDEKNIGHT);

RoboSetHealth(client, TFClass_, 3000, 1.5);
RoboSetHealth(client,TFClass_DemoMan, 3000, 1.5);



Expand All @@ -114,12 +114,6 @@ MakeSolar(client)
PrintHintText(client , ROBOT_TIPS);
}

stock TF2_SetHealth(client, NewHealth)
{
SetEntProp(client, Prop_Send, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iMaxHealth", NewHealth, 1);
}

public Action:Timer_Switch(Handle:timer, any:client)
{
Expand Down
6 changes: 0 additions & 6 deletions free_damage_grenades_demoman_carpetomber.sp
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,6 @@ MakeDemoKnight(client)

}

stock TF2_SetHealth(client, NewHealth)
{
SetEntProp(client, Prop_Send, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iMaxHealth", NewHealth, 1);
}

public Action:Timer_Switch(Handle:timer, any:client)
{
Expand Down
8 changes: 1 addition & 7 deletions free_damage_grenades_demoman_dreysidel.sp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ MakeToofty(client)
CreateTimer(0.0, Timer_Switch, client);
SetModel(client, GDEKNIGHT);

RoboSetHealth(client, TFClass_, 3000, 1.5);
RoboSetHealth(client,TFClass_DemoMan, 3000, 1.5);



Expand All @@ -132,12 +132,6 @@ MakeToofty(client)
PrintHintText(client, ROBOT_TIPS);
}

stock TF2_SetHealth(client, NewHealth)
{
SetEntProp(client, Prop_Send, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iMaxHealth", NewHealth, 1);
}

public Action:Timer_Switch(Handle:timer, any:client)
{
Expand Down
8 changes: 1 addition & 7 deletions free_damage_grenades_demoman_mortarmack.sp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ MakeSolar(client)
CreateTimer(0.0, Timer_Switch, client);
SetModel(client, GDEKNIGHT);

RoboSetHealth(client, TFClass_, 3000, 1.5);
RoboSetHealth(client,TFClass_DemoMan, 3000, 1.5);



Expand All @@ -122,12 +122,6 @@ MakeSolar(client)
PrintHintText(client , ROBOT_TIPS);
}

stock TF2_SetHealth(client, NewHealth)
{
SetEntProp(client, Prop_Send, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iMaxHealth", NewHealth, 1);
}

public Action:Timer_Switch(Handle:timer, any:client)
{
Expand Down
8 changes: 1 addition & 7 deletions free_damage_grenades_demoman_raid.sp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ MakeSolar(client)
CreateTimer(0.0, Timer_Switch, client);
SetModel(client, GDEKNIGHT);

RoboSetHealth(client, TFClass_, 4500, 1.5);
RoboSetHealth(client,TFClass_DemoMan, 4500, 1.5);


float OverHealRate = 1.5;
Expand Down Expand Up @@ -171,12 +171,6 @@ MakeSolar(client)

}

stock TF2_SetHealth(client, NewHealth)
{
SetEntProp(client, Prop_Send, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iMaxHealth", NewHealth, 1);
}

public Action:Timer_Switch(Handle:timer, any:client)
{
Expand Down
8 changes: 1 addition & 7 deletions free_damage_grenades_demoman_solarlight.sp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ MakeSolar(client)
CreateTimer(0.0, Timer_Switch, client);
SetModel(client, GDEKNIGHT);

RoboSetHealth(client, TFClass_, 2000, 1.5);
RoboSetHealth(client,TFClass_DemoMan, 2000, 1.5);

float OverHealRate = 1.5;

Expand Down Expand Up @@ -117,12 +117,6 @@ MakeSolar(client)

}

stock TF2_SetHealth(client, NewHealth)
{
SetEntProp(client, Prop_Send, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iMaxHealth", NewHealth, 1);
}

public Action:Timer_Switch(Handle:timer, any:client)
{
Expand Down
8 changes: 1 addition & 7 deletions free_damage_hitscan_heavy_HiGPS.sp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ MakeGDeflectorH(client)
}
CreateTimer(0.0, Timer_Switch, client);
SetModel(client, GDEFLECTORH);
RoboSetHealth(client, TFClass_, 5000, 1.5);
RoboSetHealth(client,TFClass_Heavy, 5000, 1.5);


float OverHealRate = 1.5;
Expand All @@ -136,12 +136,6 @@ MakeGDeflectorH(client)

}

stock TF2_SetHealth(client, NewHealth)
{
SetEntProp(client, Prop_Send, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iHealth", NewHealth, 1);
SetEntProp(client, Prop_Data, "m_iMaxHealth", NewHealth, 1);
}

public Action:Timer_Switch(Handle:timer, any:client)
{
Expand Down
Loading

0 comments on commit 44603ec

Please sign in to comment.