Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
higps committed Mar 17, 2024
1 parent 7311ddb commit a2b6f5c
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 14 deletions.
8 changes: 5 additions & 3 deletions berobot_dmg_handler.sp
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public Action TF2_OnTakeDamage(int victim, int &attacker, int &inflictor, float
// PrintToChatAll("PLASMA");
if (TF2_GetPlayerClass(attacker) == TFClass_Heavy || TF2_GetPlayerClass(attacker) == TFClass_Medic){
// PrintToChatAll("For heavy or medic TF_CUSTOM_PLASMA dmg was %f", damage);
damage = 1.0;
damage = 0.0;

// PrintToChatAll("%f", GetEntPropFloat(attacker, Prop_Send, "m_flRageMeter"));
return Plugin_Changed;
Expand Down Expand Up @@ -962,7 +962,7 @@ public Action TF2_OnTakeDamageModifyRules(int victim, int &attacker, int &inflic

SetHealingDebuff(victim, g_HealDebuff, g_ElectricStunDuration, attacker);

if (TF2_GetPlayerClass(victim) == TFClass_Heavy || TF2_GetPlayerClass(victim) == TFClass_Medic)
if (TF2_GetPlayerClass(victim) == TFClass_Heavy || TF2_GetPlayerClass(victim) == TFClass_Medic || TF2_GetPlayerClass(victim) == TFClass_Soldier)
{
// PrintToChatAll("WAS HEAVY OR MEDIC");
if (HasEntProp(victim, Prop_Send, "m_flRageMeter"))
Expand Down Expand Up @@ -1792,6 +1792,8 @@ public Action Event_post_inventory_application(Event event, const char[] name, b
if (IsEnforcer(Weapon1))
{
TF2Attrib_SetByName(Weapon1, "projectile penetration", 1.0);
TF2Attrib_SetByName(Weapon1, "keep disguise on attack", 1.0);
// TF2Attrib_SetByName(Weapon1, "last shot crits", 1.0);
TF2CustAttr_SetString(Weapon1, "dmg-bonus-vs-sapped-buildings", "damage=3.0");
Format(chat_display, sizeof(chat_display), "%s\n{teamcolor}Gun: {orange}Projectile penetration {teamcolor}bonus & {orange}200%%%% Damage bonus {teamcolor}vs sapped buildings",chat_display);
}
Expand Down Expand Up @@ -1863,7 +1865,7 @@ public Action Event_post_inventory_application(Event event, const char[] name, b

if (IsElectric(Weapon1) || IsElectric(Weapon2))
{
Format(chat_display, sizeof(chat_display), "%s\n{teamcolor}Your electric weapons {orange}reduce robot heal rate{teamcolor} for %0.1f seconds on hit. Shortens Enemy MvM shield duration",chat_display, g_ElectricStunDuration);
Format(chat_display, sizeof(chat_display), "%s\n{teamcolor}Electric weapons {orange}reduce robot heal rate{teamcolor} for %0.1f seconds on hit. Shortens Enemy MvM shield duration",chat_display, g_ElectricStunDuration);
}
if (IsReserveShooter(Weapon2))
{
Expand Down
2 changes: 1 addition & 1 deletion berobot_handler.sp
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ public Action Event_teamplay_round_start(Event event, char[] name, bool dontBroa
if(g_cv_bDebugMode) PrintToChatAll("Teamswitch detected!");

ResetCoins();
PrintToChatAll("attempting reset");
// PrintToChatAll("attempting reset");
//Logic to handle resetting you if you are a paid robot, uses a copied function from berobot_teamcomptips.sp, should be optimized later
for(int i = 0; i <= MaxClients; i++)
{
Expand Down
6 changes: 4 additions & 2 deletions cfg/robots/free_damage_grenades_demoman_dreysidel.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,16 @@
"attributes"
{
"Projectile speed increased" "1.25"
"Blast radius increased" "1.50"
"Blast radius increased" "1.15"
"fire rate bonus" "0.50"
"clip size bonus" "1.5"
"faster reload rate" "3.75"
"sticky arm time penalty" "0.5"
"sticky arm time penalty" "0.6"
"max pipebombs increased" "16.0"
"dmg penalty vs buildings" "0.6"
"killstreak tier" "1.0"
"rocket jump damage reduction" "2.0"
"stickies detonate stickies" "0.0"
}
"custom_attributes_weapon"
{
Expand Down
5 changes: 3 additions & 2 deletions cfg/robots/free_damage_melee_sniper_fatmagic.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

"player_attributes"
{
"move speed penalty" "0.9"
"move speed penalty" "1.15"
"damage force reduction" "1.0"
"airblast vulnerability multiplier" "0.6"
"cancel falling damage" "1.0"
Expand All @@ -35,7 +35,8 @@
}
"custom_attributes_player"
{
"OnCondAdd-addcond" "oncond=24 duration=3.0 addcond=32"
"OnCondAdd-addcond" "oncond=24 duration=8.0 addcond=86"
// "OnCondAdd-addcond" "oncond=24 duration=10.0 addcond=32"
}
"remove_weapon_slots"
{
Expand Down
4 changes: 2 additions & 2 deletions cfg/robots/free_sniper_CarbineCassidy.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"scale" "1.65"
"player_attributes"
{
"move speed penalty" "0.7"
"move speed penalty" "0.6"
"damage force reduction" "1.0"
"airblast vulnerability multiplier" "1.0"
"cancel falling damage" "1.0"
Expand Down Expand Up @@ -49,7 +49,7 @@
"attributes"
{
"killstreak tier" "1.0"
"fire rate bonus" "0.65"
"fire rate bonus" "0.85"
"clip size bonus" "0.3"
"lunchbox adds minicrits" "1.0"
"hidden secondary max ammo penalty" "2.0"
Expand Down
2 changes: 1 addition & 1 deletion cfg/robots/paid_damage_grenades_demoman_phasebomber.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"health" "3500"
"health_bonus_per_player" "100"
"difficulty" "3"
"rc_cost" "20.0"
"rc_cost" "17.0"
"sounds"
{
"death" "mvm/sentrybuster/mvm_sentrybuster_explode.wav"
Expand Down
2 changes: 1 addition & 1 deletion cfg/robots/paid_damage_hitscan_heavy_rageheavy.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"health" "4920"
"health_bonus_per_player" "60"
"difficulty" "2"
"rc_cost" "30.0"
"rc_cost" "35.0"
"sounds"
{
"death" "mvm/sentrybuster/mvm_sentrybuster_explode.wav"
Expand Down
5 changes: 3 additions & 2 deletions free_damage_hitscan_heavy_Samwiz1.sp
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,9 @@ MakeGHeavy(client)
}
CreateTimer(0.0, Timer_Switch, client);
SetModel(client, GDEFLECTORH);
int iHealth = 5000;
RoboSetHealth(client, TFClass_Heavy, iHealth);
int iHealth = 3920;
int bonus_hp = 60 * GetCurrentHumanCount();
RoboSetHealth(client, TFClass_Heavy, iHealth+bonus_hp);

SetEntPropFloat(client, Prop_Send, "m_flModelScale", 1.75);
SetEntProp(client, Prop_Send, "m_bIsMiniBoss", _:true);
Expand Down

0 comments on commit a2b6f5c

Please sign in to comment.