Skip to content

Commit

Permalink
nuker to smoker, teamporter fix, engineer rework, skeeter change, bea…
Browse files Browse the repository at this point in the history
…rded buff, volunteer bug fix
  • Loading branch information
higps committed Sep 6, 2024
1 parent 5717cd2 commit 4f5a358
Show file tree
Hide file tree
Showing 17 changed files with 116 additions and 61 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <tf_custom_attributes>

#define PLUGIN_VERSION "1.0"
#define ROBOT_NAME "Nuker"
#define ROBOT_NAME "Smoker"

#define BLU_MODEL "models/props_trainyard/bomb_cart.mdl"
#define RED_MODEL "models/props_trainyard/bomb_cart_red.mdl"
Expand Down
6 changes: 3 additions & 3 deletions ability_free_tank_heavy_beardedexpense_ability.sp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

Handle g_hGameConf;
Handle g_hIsDeflectable;

float jump_timer = 2.0;
public Plugin:myinfo =
{
name = "[TF2] Be the Bearded Expense Leap Ability and boom bullshit",
Expand Down Expand Up @@ -118,13 +118,13 @@ public TF2_OnConditionAdded(client, TFCond:condition)
EmitSoundToAll(ALARM, client);


CreateTimer(3.3, Timer_Taunt_Cancel, client);
CreateTimer(jump_timer, Timer_Taunt_Cancel, client);
}

if (tauntid == -1)
{

CreateTimer(3.3, Timer_Taunt_Cancel, client);
CreateTimer(jump_timer, Timer_Taunt_Cancel, client);
}
}
}
Expand Down
10 changes: 9 additions & 1 deletion berobot_handler.sp
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,15 @@ public Action Event_teamplay_round_start(Event event, char[] name, bool dontBroa
MC_PrintToChatAll("{Green}Type {orange}!info{Green} to see more info about this gamemode");
MC_PrintToChatAll("{Green}Visit {orange}bmod.tf/mannedmachines {Green} To get the assetpack to get the most out of this mode");


// Reset the health buffer when a round starts to prevent robots from getting dmg health carried over from last round
for(int i = 1; i <= MaxClients+1; i++)
{
if(IsValidClient(i))
{
g_PlayerHealth[i] = -1;
// PrintCenterText(i,"RESETTING UR HEALTH");
}
}
// Remove Point on player start

// int powerteam = GetRobotTeam();
Expand Down
21 changes: 19 additions & 2 deletions berobot_volunteer.sp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ bool _volunteered[MAXPLAYERS + 1];
* maps a (char steamId[64]) key to a (int queuePoints) valuelunteerStates
*/
StringMap _queuePoints;

bool g_block_volunteer = false;
public void OnPluginStart()
{
SMLoggerInit(LOG_TAGS, sizeof(LOG_TAGS), SML_ERROR, SML_FILE);
Expand Down Expand Up @@ -159,6 +159,8 @@ public void OnPluginStart()


HookEvent("teamplay_point_captured", Event_Teamplay_Point_Captured, EventHookMode_Post);
HookEvent("tf_game_over", Event_Teamplay_TF_Game_Over, EventHookMode_Post);
HookEvent("teamplay_game_over", Event_Teamplay_TF_Game_Over, EventHookMode_Post);

LoadVipSteamIds();
LoadQueuePointsFromFile();
Expand All @@ -173,6 +175,14 @@ UpdateQueuePointsOnCap();

}

public Action Event_Teamplay_TF_Game_Over(Event event, char[] name, bool dontBroadcast)
{
g_block_volunteer = true;
// PrintToChatAll("GAME OVER");

}


public void OnConfigsExecuted()
{
_robocapTeamConVar = FindConVar(CONVAR_ROBOCAP_TEAM);
Expand Down Expand Up @@ -214,6 +224,7 @@ public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max
public void OnMapStart()
{
Reset();
g_block_volunteer = false;
}

void Reset()
Expand Down Expand Up @@ -316,13 +327,19 @@ public Action Command_Volunteer(int client, int args)
SMLogTag(SML_VERBOSE, "Command_Volunteer called for %L", client);

ConVar b_AprilEnabled = FindConVar("sm_mm_april_enable");

if (GetConVarBool(b_AprilEnabled))
{
PrintCenterText(client, "No need to volunteer");
return Plugin_Handled;
}

if (g_block_volunteer)
{
PrintCenterText(client, "Game is over, no need to volunteer");
return Plugin_Handled;
}

if (!IsEnabled())
{
MM_PrintToChat(client, "Unable to volunteer, robot-mode is not enabled");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
"Robot"
{
"name" "Nuker"
"name" "Smoker"
"role" "ZBOSS"
"class" "DemoMan"
"shortdescription" "Nuke Shot"
"subclass" "Grenades"
"deathtip" "Nuker's bombs can be reflected and deleted"
"deathtip" "Smoker's bombs can be reflected and deleted"
"difficulty" "2"
"model" "models/bots/demo_boss/bot_demo_boss.mdl"
"tips" "You shoot payload bombs\nLarge explosion radius\nYou have crit melee weapon"
Expand Down Expand Up @@ -86,9 +86,23 @@

"cosmetics"
{
"TheFragProofFragger"
"SophisticatedSmoker"
{
"itemindex" "30034"
"itemindex" "31106"
"paint" "Team Spirit"
"style" "-1.0"
"scale" "0.75"
}
"SoldierStoogie"
{
"itemindex" "852"
"paint" "0.0"
"style" "-1.0"
"scale" "1.05"
}
"Sparkplug"
{
"itemindex" "30033"
"paint" "0.0"
"style" "-1.0"
"scale" "0.75"
Expand Down
2 changes: 1 addition & 1 deletion cfg/robots/free_damage_grenades_demoman_carpetomber.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"warpaint_id" "226"
"attributes"
{
"dmg penalty vs players" "0.85"
"dmg penalty vs players" "1.5"
"clip size bonus" "1.4"
"faster reload rate" "0.8"
"projectile speed increased" "3.0"
Expand Down
7 changes: 3 additions & 4 deletions cfg/robots/free_engineer_barricade.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,8 @@
"airblast vulnerability multiplier" "0.3"
"cancel falling damage" "1.0"
"override footstep sound set" "2.0"
"maxammo metal increased" "2.5"
"ammo regen" "100.0"
"metal regen" "200.0"
"building cost reduction" "0.5"
"mod teleporter cost" "18.0"
"metal regen" "65.0"
"major increased jump height" "1.25"
"rage giving scale" "0.75"
}
Expand Down Expand Up @@ -87,6 +84,8 @@
"engy dispenser radius increased" "10.0"
"engy building health bonus" "5.6"
"upgrade rate decrease" "2.0"
"maxammo metal increased" "1.25"
"mod teleporter cost" "8.0"
}
"custom_attributes_weapon"
{
Expand Down
7 changes: 4 additions & 3 deletions cfg/robots/free_engineer_dane.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@
"airblast vulnerability multiplier" "0.3"
"cancel falling damage" "1.0"
"override footstep sound set" "2.0"
"maxammo metal increased" "2.5"
"metal regen" "200.0"
"mod teleporter cost" "9.0"
"metal regen" "65.0"
"major increased jump height" "1.25"
"rage giving scale" "0.75"
}
Expand Down Expand Up @@ -78,6 +76,9 @@
"engy building health bonus" "2.0"
"engy dispenser radius increased" "6.0"
"upgrade rate decrease" "2.0"
"maxammo metal increased" "1.25"
"mod teleporter cost" "8.0"

}
"custom_attributes_weapon"
{
Expand Down
7 changes: 4 additions & 3 deletions cfg/robots/free_engineer_wranglerbill.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@
"airblast vulnerability multiplier" "0.3"
"cancel falling damage" "1.0"
"override footstep sound set" "2.0"
"maxammo metal increased" "2.5"
"metal regen" "200.0"
"mod teleporter cost" "10.0"

"metal regen" "65.0"
"major increased jump height" "1.25"
"rage giving scale" "0.75"
"deploy time decreased" "0.25"
Expand Down Expand Up @@ -73,6 +72,8 @@
"engy dispenser radius increased" "3.0"
"upgrade rate decrease" "8.0"
"engy sentry fire rate increased" "0.6"
"maxammo metal increased" "1.25"
"mod teleporter cost" "8.0"
}
"custom_attributes_weapon"
{
Expand Down
23 changes: 11 additions & 12 deletions cfg/robots/free_engineer_zonical.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,8 @@
"airblast vulnerability multiplier" "0.3"
"cancel falling damage" "1.0"
"override footstep sound set" "2.0"
"maxammo metal increased" "2.5"
"ammo regen" "100.0"
"metal regen" "200.0"
"building cost reduction" "0.5"
"mod teleporter cost" "18.0"
"metal regen" "65.0"
"major increased jump height" "1.25"
"rage giving scale" "0.75"
}
Expand Down Expand Up @@ -71,14 +68,16 @@
"skin" "0"
"attributes"
{
"Construction rate increased" "10.0"
"killstreak tier" "1.0"
"melee range multiplier" "1.15"
"Repair rate increased" "2.0"
"engineer building teleporting pickup" "10.0"
"engy dispenser radius increased" "6.0"
"engy building health bonus" "1.6"
"upgrade rate decrease" "8.0"
"Construction rate increased" "10.0"
"killstreak tier" "1.0"
"melee range multiplier" "1.15"
"Repair rate increased" "2.0"
"engineer building teleporting pickup" "10.0"
"engy dispenser radius increased" "6.0"
"engy building health bonus" "1.6"
"upgrade rate decrease" "8.0"
"maxammo metal increased" "1.25"
"mod teleporter cost" "8.0"
}
"custom_attributes_weapon"
{
Expand Down
4 changes: 2 additions & 2 deletions cfg/robots/free_sniper_skeeter.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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" "550.0"
"faster reload rate" "0.35"
"apply z velocity on damage" "750.0"
"faster reload rate" "0.8"
}
}
"tf_weapon_smg"
Expand Down
1 change: 1 addition & 0 deletions cfg/robots/free_tank_heavy_beardedexpense.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"increase player capture value" "-1.0"
"dmg from melee increased" "2.0"
"attach particle effect" "35.0"
"gesture speed increase" "1.75"
}
"custom_attributes_player"
{
Expand Down
6 changes: 3 additions & 3 deletions cfg/robots/paid_engineer_brainiac.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@
"airblast vulnerability multiplier" "0.3"
"cancel falling damage" "1.0"
"override footstep sound set" "2.0"
"maxammo metal increased" "2.5"
"metal regen" "200.0"
"metal regen" "65.0"
"ammo regen" "100.0"
"mod teleporter cost" "9.0"
"major increased jump height" "1.25"
"rage giving scale" "0.75"
"head scale" "0.85"
Expand Down Expand Up @@ -82,6 +80,8 @@
"engineer building teleporting pickup" "10.0"
"engy dispenser radius increased" "3.0"
"upgrade rate decrease" "4.0"
"maxammo metal increased" "1.25"
"mod teleporter cost" "8.0"
}
"custom_attributes_weapon"
{
Expand Down
6 changes: 3 additions & 3 deletions cfg/robots/paid_engineer_gnome.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@
"airblast vulnerability multiplier" "0.3"
"cancel falling damage" "1.0"
"override footstep sound set" "2.0"
"maxammo metal increased" "2.5"
"metal regen" "200.0"
"mod teleporter cost" "9.0"
"metal regen" "65.0"
"major increased jump height" "1.25"
"rage giving scale" "0.75"
"head scale" "0.85"
Expand Down Expand Up @@ -79,6 +77,8 @@
"engy dispenser radius increased" "3.0"
"engy building health bonus" "2.32"
"upgrade rate decrease" "4.0"
"maxammo metal increased" "1.25"
"mod teleporter cost" "8.0"
}
"custom_attributes_weapon"
{
Expand Down
6 changes: 3 additions & 3 deletions cfg/robots/paid_engineer_nofungineer.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@
"airblast vulnerability multiplier" "0.3"
"cancel falling damage" "1.0"
"override footstep sound set" "2.0"
"maxammo metal increased" "2.5"
"metal regen" "200.0"
"mod teleporter cost" "9.0"
"metal regen" "65.0"
"major increased jump height" "1.25"
"rage giving scale" "0.75"
"head scale" "0.85"
Expand Down Expand Up @@ -93,6 +91,8 @@
"engy dispenser radius increased" "3.0"
"upgrade rate decrease" "4.0"
"engineer sentry build rate multiplier" "10.0"
"maxammo metal increased" "1.25"
"mod teleporter cost" "8.0"
}
"custom_attributes_weapon"
{
Expand Down
2 changes: 1 addition & 1 deletion cfg/robots/paid_spy_blackshiv.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"move speed penalty" "0.95"
"airblast vulnerability multiplier" "0.7"
"cancel falling damage" "1.0"
"maxammo metal increased" "2.5"

"major increased jump height" "1.25"
"head scale" "0.8"
"rage giving scale" "0.75"
Expand Down
Loading

0 comments on commit 4f5a358

Please sign in to comment.