From b0aff456a3185841b3c4aa919843fb1c79affaa3 Mon Sep 17 00:00:00 2001 From: higps <59850204+higps@users.noreply.github.com> Date: Tue, 17 Dec 2024 20:43:08 +0100 Subject: [PATCH] smissbot update --- ability_free_disruptor_heavy_hoovy_ability.sp | 2 +- ability_free_tank_heavy_terminator_ability.sp | 4 +- berobot_dmg_handler.sp | 28 +++++- .../free_damage_melee_heavy_balaclava.cfg | 68 -------------- .../free_disruptor_demoman_samureye.cfg | 13 +-- cfg/robots/free_disruptor_heavy_hoovy.cfg | 32 +++---- cfg/robots/free_sniper_skeeter.cfg | 4 +- cfg/robots/free_tank_heavy_burglar.cfg | 89 ++++++++----------- cfg/robots/free_tank_heavy_terminator.cfg | 2 +- cfg/robots/paid_disruptor_scout_fanscout.cfg | 5 +- 10 files changed, 94 insertions(+), 153 deletions(-) delete mode 100644 cfg/robots/free_damage_melee_heavy_balaclava.cfg diff --git a/ability_free_disruptor_heavy_hoovy_ability.sp b/ability_free_disruptor_heavy_hoovy_ability.sp index 0269cf0b..6a5e631c 100644 --- a/ability_free_disruptor_heavy_hoovy_ability.sp +++ b/ability_free_disruptor_heavy_hoovy_ability.sp @@ -72,7 +72,7 @@ public Action HoovyBoom(Handle timer, any data) GetClientAbsOrigin(victim, pos22); int particle = CreateEntityByName("info_particle_system"); - DispatchKeyValue(particle, "effect_name", "ExplosionCore_Wall"); + DispatchKeyValue(particle, "effect_name", "fluidSmokeExpl_ring_mvm"); AcceptEntityInput(particle, "Start"); TeleportEntity(particle, pos22, NULL_VECTOR, NULL_VECTOR); DispatchSpawn(particle); diff --git a/ability_free_tank_heavy_terminator_ability.sp b/ability_free_tank_heavy_terminator_ability.sp index 6982acd1..e7ecabf2 100644 --- a/ability_free_tank_heavy_terminator_ability.sp +++ b/ability_free_tank_heavy_terminator_ability.sp @@ -254,8 +254,8 @@ public Action OnPlayerRunCmd(int client, int& buttons, int& impulse, float vel[3 int aimtarget = GetClientAimTarget(client); if (IsValidClient(aimtarget) && aimtarget == g_target) { - TF2_AddCondition(client, TFCond_SpeedBuffAlly, 0.33); - TF2_AddCondition(client, TFCond_CritCola, 0.33); + TF2_AddCondition(client, TFCond_SpeedBuffAlly, 0.7); + TF2_AddCondition(client, TFCond_CritCola, 0.7); } //Manually Finding New Target diff --git a/berobot_dmg_handler.sp b/berobot_dmg_handler.sp index fddc23ad..0b7e3bc3 100644 --- a/berobot_dmg_handler.sp +++ b/berobot_dmg_handler.sp @@ -150,10 +150,32 @@ public void OnPluginStart() public Action Event_PlayerDeath(Event event, char[] name, bool dontBroadcast){ - int client = GetClientOfUserId(event.GetInt("userid")); - if (IsValidClient(client)){ - DeleteParticle(0.1, ParticleStorage[client]); + int attacker = GetClientOfUserId(GetEventInt(event, "attacker")); + int victim = GetClientOfUserId(GetEventInt(event, "userid")); + int assister = GetClientOfUserId(GetEventInt(event, "assister")); + if (IsValidClient(victim)){ + DeleteParticle(0.1, ParticleStorage[victim]); + + int decapitations = GetEntProp(victim, Prop_Send, "m_iDecapitations"); + + if (decapitations != 0) + { + if(!IsAnyRobot(victim) && IsAnyRobot(attacker) || IsAnyRobot(assister)) + { + // PrintToChatAll("Decaps %i for %N", decapitations, victim); + if(decapitations >= 8) decapitations = 8; + TF2_AddCondition(attacker, TFCond_CritCola, float(decapitations)); + TF2_AddCondition(attacker, TFCond_SpeedBuffAlly, float(decapitations)); + TF2_AddCondition(attacker, TFCond_DefenseBuffed, float(decapitations)); + TF2_AddCondition(assister, TFCond_CritCola, float(decapitations)); + TF2_AddCondition(assister, TFCond_DefenseBuffed, float(decapitations)); + TF2_AddCondition(assister, TFCond_SpeedBuffAlly, float(decapitations)); + } + } + } + + return Plugin_Continue; } diff --git a/cfg/robots/free_damage_melee_heavy_balaclava.cfg b/cfg/robots/free_damage_melee_heavy_balaclava.cfg deleted file mode 100644 index e8a854ea..00000000 --- a/cfg/robots/free_damage_melee_heavy_balaclava.cfg +++ /dev/null @@ -1,68 +0,0 @@ -"Robot" -{ - "model" "models/bots/heavy/bot_heavy.mdl" - "class" "Heavy" - "shortdescription" "Killing Gloves of Boxing" - "name" "Balaclava" - "deathtip" "Balaclava" - "role" "Damage" - "subclass" "Melee" - "tips" "Balaclava" - "health" "3250" - "health_bonus_per_player" "50" - "scale" "1.5" - "difficulty" "2" - "sounds" - { - "death" "mvm/sentrybuster/mvm_sentrybuster_explode.wav" - "loop" "mvm/giant_heavy/giant_heavy_loop.wav" - "spawn" "#mvm/giant_heavy/giant_heavy_entrance.wav" - } - - "player_attributes" - { - "move speed penalty" "1.15" - "damage force reduction" "0.5" - "airblast vulnerability multiplier" "0.5" - "aiming movespeed increased" "2.0" - "ammo regen" "100.0" - "cancel falling damage" "1.0" - "rage giving scale" "0.75" - } - - "remove_weapon_slots" - { - "slot" "0" - "slot" "1" - "slot" "2" - } - - "weapons" - { - "tf_weapon_fists" - { - "itemindex" "5" - "quality" "6" - "level" "1" - "slot" "0" - "attributes" - { - "killstreak tier" "1.0" - "dmg penalty vs players" "1.8" - "dmg penalty vs buildings" "0.25" - "fire rate bonus" "0.8" - } - } - - } - - "cosmetics" - { - "Balaclava" - { - "itemindex" "31510" - "style" "-1.0" - "scale" "1.0" - } - } -} \ No newline at end of file diff --git a/cfg/robots/free_disruptor_demoman_samureye.cfg b/cfg/robots/free_disruptor_demoman_samureye.cfg index 58f6fb2b..a5ba20d2 100644 --- a/cfg/robots/free_disruptor_demoman_samureye.cfg +++ b/cfg/robots/free_disruptor_demoman_samureye.cfg @@ -1,6 +1,6 @@ "Robot" { - "model" "models/bots/demo_boss/bot_demo_boss.mdl" + "model" "models/bots/demo/bot_demo.mdl" "class" "Demoman" "shortdescription" "Half-Zatoichi, Splendid Screen" "name" "Samureye" @@ -8,8 +8,9 @@ "role" "Disruptor" "subclass" "Disruptor" "tips" "Samurai Anti Mann\nCharge refill on hit" - "health" "2175" - "health_bonus_per_player" "50" + "health" "650" + "health_bonus_per_player" "15" + "scale" "1.5" "difficulty" "2" "sounds" { @@ -21,7 +22,7 @@ "player_attributes" { "damage force reduction" "1.25" - "move speed penalty" "0.6" + "move speed penalty" "0.9" "airblast vulnerability multiplier" "1.15" "cancel falling damage" "1.0" "rage giving scale" "0.75" @@ -62,10 +63,12 @@ "slot" "1" "attributes" { - "major increased jump height" "1.65" + "major increased jump height" "2.3" "lose demo charge on damage when charging" "0.0" "dmg taken from fire reduced" "1.0" "dmg taken from blast reduced" "1.0" + "Attack not cancel charge" "1.0" + "bot custom jump particle" "1.0" } } } diff --git a/cfg/robots/free_disruptor_heavy_hoovy.cfg b/cfg/robots/free_disruptor_heavy_hoovy.cfg index cf809f0a..dfb7988a 100644 --- a/cfg/robots/free_disruptor_heavy_hoovy.cfg +++ b/cfg/robots/free_disruptor_heavy_hoovy.cfg @@ -51,27 +51,27 @@ } "cosmetics" { - "Toque" - { - "itemindex" "97" - "paint" "0.0" - "style" "-1.0" - "scale" "1.0" - } - // "BMOC" - // { - // "itemindex" "666" - // "paint" "0.0" - // "style" "-1.0" - // "scale" "1.0" - // } - // "GIFTBRINGER" + // "Toque" // { - // "itemindex" "30747" + // "itemindex" "97" // "paint" "0.0" // "style" "-1.0" // "scale" "1.0" // } + "BMOC" + { + "itemindex" "666" + "paint" "0.0" + "style" "-1.0" + "scale" "1.0" + } + "GIFTBRINGER" + { + "itemindex" "30747" + "paint" "0.0" + "style" "-1.0" + "scale" "1.0" + } "ALLFATHER" { "itemindex" "647" diff --git a/cfg/robots/free_sniper_skeeter.cfg b/cfg/robots/free_sniper_skeeter.cfg index ba74e452..9ffabff7 100644 --- a/cfg/robots/free_sniper_skeeter.cfg +++ b/cfg/robots/free_sniper_skeeter.cfg @@ -55,8 +55,8 @@ "sniper charge per sec" "3.0" "sniper fires tracer HIDDEN" "1.0" "lunchbox adds minicrits" "3.0" - "apply z velocity on damage" "750.0" - "faster reload rate" "0.8" + "apply z velocity on damage" "1000.0" + "damage penalty on bodyshot" "1.0" } } "tf_weapon_smg" diff --git a/cfg/robots/free_tank_heavy_burglar.cfg b/cfg/robots/free_tank_heavy_burglar.cfg index 034a01cf..4cba878e 100644 --- a/cfg/robots/free_tank_heavy_burglar.cfg +++ b/cfg/robots/free_tank_heavy_burglar.cfg @@ -2,41 +2,40 @@ { "model" "models/bots/heavy/bot_heavy.mdl" "class" "Heavy" - "shortdescription" "Gain buffs on class punch. Immune to tickle and Uberchain" + "shortdescription" "Gain class buffs on enemy hit. Counter uber chains. Immune to tickles" "name" "Burglar" - "deathtip" "GP cannot be tickled or Uberchained\nTanks can be stunned by shields and stomps\nTanks take double melee damage" + "deathtip" "Do not let Burglar hit you" "role" "Tank" "subclass" "Tank" - "tips" "Immune to tickles\nBecomes ubered briefly when hit by an ubercharged medic's ubersaw\nYou can't contest objectives" + "tips" "Punch classes and get buffs based on class hit. You are immune to tickles" "health" "5000" "health_bonus_per_player" "75" - "difficulty" "2" + "scale" "1.75" + "difficulty" "2" "sounds" { "death" "mvm/sentrybuster/mvm_sentrybuster_explode.wav" - "loop" "mvm/mvm_tank_loop.wav" - "spawn" "mvm/mvm_tank_horn.wav" + "loop" "mvm/giant_heavy/giant_heavy_loop.wav" + "spawn" "#mvm/giant_heavy/giant_heavy_entrance.wav" } "player_attributes" { - "airblast vulnerability multiplier" "0.1" + "move speed penalty" "1.15" + "damage force reduction" "0.5" + "airblast vulnerability multiplier" "0.5" + "aiming movespeed increased" "2.0" + "ammo regen" "100.0" "cancel falling damage" "1.0" "rage giving scale" "0.75" - "cannot pick up intelligence" "1.0" - "increase player capture value" "-1.0" - "head scale" "0.95" - "damage force reduction" "0.0" - "dmg from melee increased" "2.0" - "attach particle effect" "35.0" } "remove_weapon_slots" -{ - "slot" "0" - "slot" "1" - "slot" "2" -} + { + "slot" "0" + "slot" "1" + "slot" "2" + } "weapons" { @@ -44,24 +43,16 @@ { "itemindex" "5" "quality" "6" - "level" "2" - "slot" "2" - "skin" "0" - "attributes" - { - "killstreak tier" "1.0" - "damage bonus" "1.15" - "fire rate bonus" "1.2" - "melee range multiplier" "1.35" - "move speed penalty" "0.9" - "dmg penalty vs buildings" "0.35" - } - "custom_attributes_weapon" - { - "shake on step" "amplitude=2.5 frequency=1.0 range=400.0" - "shake on hit" "amplitude=10.0 frequency=2.0 duration=0.5" - } + "level" "1" + "slot" "0" + "attributes" + { + "killstreak tier" "1.0" + "dmg penalty vs players" "1.15" + "dmg penalty vs buildings" "0.25" + } } + } "cosmetics" @@ -72,25 +63,19 @@ "style" "-1.0" "scale" "1.0" } - // "Warmth" - // { - // "itemindex" "30364" - // "style" "-1.0" - // "scale" "1.0" - // } - // "BendoinBanda" - // { - // "itemindex" "30768" - // "style" "-1.0" - // "scale" "1.0" - // } - - "111" + "GoneCommando" + { + "itemindex" "30343" + "style" "-1.0" + "scale" "1.0" + } + + "HunterHeavy" { - "itemindex" "111" - "paint" "0.0" - "style" "1.0" + "itemindex" "30557" + "style" "-1.0" "scale" "1.0" } + } } \ No newline at end of file diff --git a/cfg/robots/free_tank_heavy_terminator.cfg b/cfg/robots/free_tank_heavy_terminator.cfg index 6b911a11..26d95c02 100644 --- a/cfg/robots/free_tank_heavy_terminator.cfg +++ b/cfg/robots/free_tank_heavy_terminator.cfg @@ -9,7 +9,7 @@ "subclass" "Tank" "tips" "HiNet: Terminate your target" "health" "1500" - "health_bonus_per_player" "75" + "health_bonus_per_player" "125" "difficulty" "2" "scale" "1.15" "sounds" diff --git a/cfg/robots/paid_disruptor_scout_fanscout.cfg b/cfg/robots/paid_disruptor_scout_fanscout.cfg index bfa044b8..27a7840c 100644 --- a/cfg/robots/paid_disruptor_scout_fanscout.cfg +++ b/cfg/robots/paid_disruptor_scout_fanscout.cfg @@ -8,8 +8,8 @@ "role" "Disruptor" "subclass" "Disruptor" "tips" "Use the crazy knockback to knock enemies away or into things" - "health" "2150" - "health_bonus_per_player" "80" + "health" "1250" + "health_bonus_per_player" "150" "difficulty" "2" "rc_cost" "10" "sounds" @@ -50,7 +50,6 @@ { "bullets per shot bonus" "2.0" "fire rate bonus" "0.5" - "reload time increased" "0.5" "scattergun knockback mult" "6.0" "damage penalty" "0.5" "weapon spread bonus" "0.3"