Skip to content

Commit

Permalink
updated dewill
Browse files Browse the repository at this point in the history
  • Loading branch information
higps committed Mar 10, 2024
1 parent 5fe2e42 commit 7bf5e07
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
13 changes: 9 additions & 4 deletions berobot_dmg_handler.sp
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,8 @@ public Action TF2_OnTakeDamage(int victim, int &attacker, int &inflictor, float

}



}

if (iClassAttacker == TFClass_Heavy)
Expand Down Expand Up @@ -1196,8 +1198,11 @@ public Action Event_post_inventory_application(Event event, const char[] name, b

if (IsJetpack(Weapon2))
{
TF2Attrib_SetByName(Weapon2, "falling_impact_radius_pushback", 0.0);
Format(chat_display, sizeof(chat_display), "%s\n{teamcolor}Jetpack: {orange}Deals no knockback{teamcolor} when landing",chat_display);
stat1 = 0.0;
stat2 = 1.0;
TF2Attrib_SetByName(Weapon2, "falling_impact_radius_pushback", stat1);
TF2Attrib_SetByName(Weapon2, "thermal_thruster_air_launch", stat2);
Format(chat_display, sizeof(chat_display), "%s\n{teamcolor}Jetpack: {orange}Able to re-launch while already in-flight. {teamcolor}Deals no knockback when landing",chat_display);
}

if (IsBackScratcher(Weapon3))
Expand Down Expand Up @@ -1694,8 +1699,8 @@ public Action Event_post_inventory_application(Event event, const char[] name, b
{
stat1 = 0.4;
TF2Attrib_SetByName(Weapon3, "dmg from melee increased", stat1);
TF2CustAttr_SetString(Weapon3, "heal-teammate", "heal=40 uber-gain=0.015 crit-heal-cooldown=10 allow-overheal=0 addcond=97 cond-duration=1.0");
Format(chat_display, sizeof(chat_display), "%s\n{teamcolor}Vita-Saw: {orange}While Active: {orange}+%0.0f%%%% Melee resistance \n{teamcolor}Vita Saw: On Teammate hit: Apply {orange}Agility Rune for 1 seconds",chat_display, LessIsMore(stat1));
TF2CustAttr_SetString(Weapon3, "heal-teammate", "heal=40 uber-gain=0.015 crit-heal-cooldown=10 allow-overheal=0 addcond=97 cond-duration=2.0");
Format(chat_display, sizeof(chat_display), "%s\n{teamcolor}Vita-Saw: {orange}While Active: {orange}+%0.0f%%%% Melee resistance \n{teamcolor}Vita Saw: On Teammate hit: Apply {orange}Agility Rune for 2 seconds",chat_display, LessIsMore(stat1));
}else
{
TF2Attrib_RemoveByName(Weapon3, "dmg from melee increased");
Expand Down
7 changes: 4 additions & 3 deletions free_damage_rockets_soldier_dewill.sp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#define ROBOT_CLASS "Soldier"
#define ROBOT_SUBCLASS "Rockets"
#define ROBOT_DESCRIPTION "Ground Striker"
#define ROBOT_COST 2.5
#define ROBOT_TIPS "Rapid Airstrike\nPress Special Attack to enter stationary rapid fire mode\nReduced damage to buildings"
#define ROBOT_ON_DEATH "Dewill can't move while in rapid fire mode, leaving him open for damage"

Expand Down Expand Up @@ -109,8 +108,10 @@ MakeGiantSoldier(client)
}
CreateTimer(0.0, Timer_Switch, client);
SetModel(client, GSOLDIER);
RoboSetHealth(client,TFClass_Soldier, 3800, 1.5);


int bonus_hp = 40 * GetCurrentHumanCount();
RoboSetHealth(client,TFClass_Soldier, 3500 + bonus_hp, 1.5);

float OverHealRate = 1.5;


Expand Down

0 comments on commit 7bf5e07

Please sign in to comment.