diff --git a/boss_heavy_kommisarkrit.sp b/boss_heavy_kommisarkrit.sp index 77b55c2a..b3db84fc 100644 --- a/boss_heavy_kommisarkrit.sp +++ b/boss_heavy_kommisarkrit.sp @@ -31,12 +31,6 @@ #define SOUND_WINDUP ")mvm/giant_heavy/giant_heavy_gunwindup.wav" #define SOUND_WINDDOWN ")mvm/giant_heavy/giant_heavy_gunwinddown.wav" -#define LEFTFOOT ")mvm/giant_heavy/giant_heavy_step01.wav" -#define LEFTFOOT1 ")mvm/giant_heavy/giant_heavy_step03.wav" -#define RIGHTFOOT ")mvm/giant_heavy/giant_heavy_step02.wav" -#define RIGHTFOOT1 ")mvm/giant_heavy/giant_heavy_step04.wav" - - #define Uclanka 840 #define CommisarsCoat 30633 #define TheLittleBear 1097 @@ -45,7 +39,7 @@ float scale = 1.85; public Plugin:myinfo = { - name = "[TF2] Be the Giant Deflector Heavy", + name = "[TF2] Be the Giant Kommisar Krit Heavy", author = "Erofix using the code from: Pelipoika, PC Gamer, Jaster and StormishJustice", description = "Play as the Giant Deflector Heavy from MvM", version = PLUGIN_VERSION, @@ -61,8 +55,6 @@ public OnPluginStart() { LoadTranslations("common.phrases"); - AddNormalSoundHook(BossGPS); - RobotDefinition robot; robot.name = ROBOT_NAME; robot.role = ROBOT_ROLE; @@ -89,112 +81,9 @@ public OnPluginStart() restrictions.RobotCoins.PerRobot = 4.0; AddRobot(robot, MakeBigBigJoey, PLUGIN_VERSION, restrictions); - } -public Action:BossGPS(clients[64], &numClients, String:sample[PLATFORM_MAX_PATH], &entity, &channel, &Float:volume, &level, &pitch, &flags) -{ - if (!IsValidClient(entity)) return Plugin_Continue; - if (!IsRobot(entity, ROBOT_NAME)) return Plugin_Continue; - - if (strncmp(sample, "player/footsteps/", 17, false) == 0) - { - if (StrContains(sample, "1.wav", false) != -1) - { - Format(sample, sizeof(sample), LEFTFOOT); - EmitSoundToAll(sample, entity); - } - else if (StrContains(sample, "3.wav", false) != -1) - { - Format(sample, sizeof(sample), RIGHTFOOT); - EmitSoundToAll(sample, entity); - } - else if (StrContains(sample, "2.wav", false) != -1) - { - Format(sample, sizeof(sample), LEFTFOOT1); - EmitSoundToAll(sample, entity); - } - else if (StrContains(sample, "4.wav", false) != -1) - { - Format(sample, sizeof(sample), RIGHTFOOT); - EmitSoundToAll(sample, entity); - } - return Plugin_Changed; - } - return Plugin_Continue; -} - -public Action:OnPlayerRunCmd(iClient, &iButtons, &iImpulse, Float:fVel[3], Float:fAng[3], &iWeapon) -{ - if (IsValidClient(iClient) && IsRobot(iClient, ROBOT_NAME) && IsPlayerAlive(iClient)) - { - new weapon = GetPlayerWeaponSlot(iClient, TFWeaponSlot_Primary); - iWeapon = GetEntProp(weapon, Prop_Send, "m_iItemDefinitionIndex"); - - if(IsValidEntity(weapon) && iWeapon == 298)//424== tomislav - { - new iWeaponState = GetEntProp(weapon, Prop_Send, "m_iWeaponState"); - if (iWeaponState == 1 && !Locked1[iClient]) - { - EmitSoundToAll(SOUND_WINDUP, iClient); - // PrintToChatAll("WeaponState = Windup"); - - Locked1[iClient] = true; - Locked2[iClient] = false; - Locked3[iClient] = false; - CanWindDown[iClient] = true; - - StopSound(iClient, SNDCHAN_AUTO, SOUND_GUNSPIN); - StopSound(iClient, SNDCHAN_AUTO, SOUND_GUNFIRE); - } - else if (iWeaponState == 2 && !Locked2[iClient]) - { - EmitSoundToAll(SOUND_GUNFIRE, iClient); - // PrintToChatAll("WeaponState = Firing"); - - Locked2[iClient] = true; - Locked1[iClient] = true; - Locked3[iClient] = false; - CanWindDown[iClient] = true; - - StopSound(iClient, SNDCHAN_AUTO, SOUND_GUNSPIN); - StopSound(iClient, SNDCHAN_AUTO, SOUND_WINDUP); - } - else if (iWeaponState == 3 && !Locked3[iClient]) - { - EmitSoundToAll(SOUND_GUNSPIN, iClient); - // PrintToChatAll("WeaponState = Spun Up"); - - Locked3[iClient] = true; - Locked1[iClient] = true; - Locked2[iClient] = false; - CanWindDown[iClient] = true; - - StopSound(iClient, SNDCHAN_AUTO, SOUND_GUNFIRE); - StopSound(iClient, SNDCHAN_AUTO, SOUND_WINDUP); - } - else if (iWeaponState == 0) - { - if (CanWindDown[iClient]) - { - // PrintToChatAll("WeaponState = WindDown"); - EmitSoundToAll(SOUND_WINDDOWN, iClient); - CanWindDown[iClient] = false; - } - - StopSound(iClient, SNDCHAN_AUTO, SOUND_GUNSPIN); - StopSound(iClient, SNDCHAN_AUTO, SOUND_GUNFIRE); - - Locked1[iClient] = false; - Locked2[iClient] = false; - Locked3[iClient] = false; - } - } - } - return Plugin_Continue; -} - public void OnPluginEnd() { RemoveRobot(ROBOT_NAME); diff --git a/free_damage_flames_wizard_pyro_fire_wizard.sp b/free_damage_flames_wizard_pyro_fire_wizard.sp index ab388ca5..dd4e312e 100644 --- a/free_damage_flames_wizard_pyro_fire_wizard.sp +++ b/free_damage_flames_wizard_pyro_fire_wizard.sp @@ -189,7 +189,7 @@ stock GiveGiantPyro(client) TF2Attrib_SetByName(Weapon3, "melee range multiplier", 1.25); TF2Attrib_SetByName(Weapon3, "speed_boost_on_hit", 1.0); TF2Attrib_SetByName(Weapon3, "crit vs burning players", 1.0); - F2Attrib_SetByName(Weapon1, "dmg penalty vs buildings", 0.5); + TF2Attrib_SetByName(Weapon3, "dmg penalty vs buildings", 0.5); TF2CustAttr_SetString(client, "Spell-Caster", "Spell=0 Cooldown=7.0 SpellOnCond=9 Cond=11"); diff --git a/free_damage_grenades_demoman_LED.sp b/free_damage_grenades_demoman_LED.sp index 27a1e194..94ef598f 100644 --- a/free_damage_grenades_demoman_LED.sp +++ b/free_damage_grenades_demoman_LED.sp @@ -20,13 +20,6 @@ #define DEATH "mvm/sentrybuster/mvm_sentrybuster_explode.wav" #define LOOP "mvm/giant_demoman/giant_demoman_loop.wav" -// #define GUNFIRE ")mvm/giant_demoman/giant_demoman_grenade_shoot.wav" - -#define LEFTFOOT ")mvm/giant_demoman/giant_demoman_step_01.wav" -#define LEFTFOOT1 ")mvm/giant_demoman/giant_demoman_step_03.wav" -#define RIGHTFOOT ")mvm/giant_demoman/giant_demoman_step_02.wav" -#define RIGHTFOOT1 ")mvm/giant_demoman/giant_demoman_step_04.wav" - public Plugin:myinfo = { name = "[TF2] Be the Giant Major Bomber lite", @@ -59,46 +52,6 @@ public OnPluginStart() AddRobot(robot, MakeSolar, PLUGIN_VERSION); } -public Action:BossMortar(clients[64], &numClients, String:sample[PLATFORM_MAX_PATH], &entity, &channel, &Float:volume, &level, &pitch, &flags) -{ - if (!IsValidClient(entity)) return Plugin_Continue; - if (!IsRobot(entity, ROBOT_NAME)) return Plugin_Continue; - - if (strncmp(sample, "player/footsteps/", 17, false) == 0) - { - if (StrContains(sample, "1.wav", false) != -1) - { - EmitSoundToAll(LEFTFOOT, entity); - } - else if (StrContains(sample, "3.wav", false) != -1) - { - EmitSoundToAll(LEFTFOOT1, entity); - } - else if (StrContains(sample, "2.wav", false) != -1) - { - EmitSoundToAll(RIGHTFOOT, entity); - } - else if (StrContains(sample, "4.wav", false) != -1) - { - EmitSoundToAll(RIGHTFOOT1, entity); - } - return Plugin_Changed; - } - - // if (strncmp(sample, ")weapons/", 9, false) == 0) - // { - // if (StrContains(sample, "grenade_launcher_shoot.wav", false) != -1) - // { - // Format(sample, sizeof(sample), GUNFIRE); - // EmitSoundToAll(sample, entity,_,_,_, 0.07); - // // PrintToChatAll("SOUND!--"); - // return Plugin_Changed; - // } - - // } - return Plugin_Continue; -} - public void OnPluginEnd() { RemoveRobot(ROBOT_NAME); @@ -111,22 +64,6 @@ public APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max) return APLRes_Success; } -public OnMapStart() -{ - // - // PrecacheSound(SPAWN); - // PrecacheSound(DEATH); - // PrecacheSound(LOOP); - - // PrecacheSound(LEFTFOOT); - // PrecacheSound(LEFTFOOT1); - // - // - - // PrecacheSound(GUNFIRE); - -} - public Action:SetModel(client, const String:model[]) { if (IsValidClient(client) && IsPlayerAlive(client)) @@ -173,7 +110,6 @@ MakeSolar(client) TF2Attrib_SetByName(client, "cancel falling damage", 1.0); TF2Attrib_SetByName(client, "patient overheal penalty", 0.15); TF2Attrib_SetByName(client, "self dmg push force increased", 2.0); - //TF2Attrib_SetByName(client, "override footstep sound set", 4.0); TF2Attrib_SetByName(client, "charge impact damage increased", 1.5); TF2Attrib_SetByName(client, "ammo regen", 100.0); TF2Attrib_SetByName(client, "rage giving scale", 0.85); @@ -215,19 +151,17 @@ stock GiveGiantDemoKnight(client) CreateRoboWeapon(client, "tf_weapon_grenadelauncher", 206, 9, 1, 2, 0); - //CreateRoboWeapon(client, "tf_weapon_stickbomb", 307, 6, 1, 2, 0); CreateRoboHat(client, Tartan, 10, 6, 15185211.0, 0.75, -1.0); CreateRoboHat(client, Bombardier, 10, 6, 15185211.0, 0.75, -1.0); CreateRoboHat(client, Dustcatcher, 10, 6, 15185211.0, 0.75, -1.0); - //CreateHat(client, 306, 10, 6, true);//Scotch bonnet - //CreateHat(client, 30945, 10, 6, false);//blast locker + TF2CustAttr_SetString(client, "projectile-size", "size=1.35 update-hitbox=1"); int Weapon1 = GetPlayerWeaponSlot(client, TFWeaponSlot_Primary); - // int Weapon3 = GetPlayerWeaponSlot(client, TFWeaponSlot_Melee); + if(IsValidEntity(Weapon1)) { - //TF2Attrib_RemoveAll(Weapon1); + TF2CustAttr_SetString(Weapon1, "reload full clip at once", "1.0"); TF2Attrib_SetByName(Weapon1, "is australium item", 1.0); TF2Attrib_SetByName(Weapon1, "dmg penalty vs players", 0.9); @@ -239,11 +173,7 @@ stock GiveGiantDemoKnight(client) TF2Attrib_SetByName(Weapon1, "dmg bonus vs buildings", 0.5); TF2Attrib_SetByName(Weapon1, "fire rate bonus", 0.75); - // TF2Attrib_SetByName(Weapon1, "mod use metal ammo type", 1.0); - - // TF2CustAttr_SetString(Weapon1, "homing_proj_mvm", "detection_radius=1500.0 homing_mode=0 projectilename=tf_projectile_pipe"); - } } } diff --git a/free_damage_grenades_demoman_carpetomber.sp b/free_damage_grenades_demoman_carpetomber.sp index b7d8b244..490e31db 100644 --- a/free_damage_grenades_demoman_carpetomber.sp +++ b/free_damage_grenades_demoman_carpetomber.sp @@ -24,11 +24,6 @@ #define DEATH "mvm/sentrybuster/mvm_sentrybuster_explode.wav" #define LOOP "mvm/giant_demoman/giant_demoman_loop.wav" -#define LEFTFOOT ")mvm/giant_demoman/giant_demoman_step_01.wav" -#define LEFTFOOT1 ")mvm/giant_demoman/giant_demoman_step_03.wav" -#define RIGHTFOOT ")mvm/giant_demoman/giant_demoman_step_02.wav" -#define RIGHTFOOT1 ")mvm/giant_demoman/giant_demoman_step_04.wav" - bool Mirv[MAXPLAYERS+1]; ConVar PipeCount; ConVar PipeDamage; diff --git a/free_damage_grenades_demoman_dreysidel.sp b/free_damage_grenades_demoman_dreysidel.sp index cb33afc7..f9da9fca 100644 --- a/free_damage_grenades_demoman_dreysidel.sp +++ b/free_damage_grenades_demoman_dreysidel.sp @@ -54,7 +54,6 @@ public OnPluginStart() robot.difficulty = ROBOT_DIFFICULTY_HARD; AddRobot(robot, MakeToofty, PLUGIN_VERSION); - AddNormalSoundHook(BossMortar); } public void OnPluginEnd() @@ -78,33 +77,6 @@ public OnMapStart() } -public Action:BossMortar(clients[64], &numClients, String:sample[PLATFORM_MAX_PATH], &entity, &channel, &Float:volume, &level, &pitch, &flags) -{ - if (!IsValidClient(entity)) return Plugin_Continue; - if (!IsRobot(entity, ROBOT_NAME)) return Plugin_Continue; - - if (strncmp(sample, "player/footsteps/", 17, false) == 0) - { - if (StrContains(sample, "1.wav", false) != -1) - { - EmitSoundToAll(LEFTFOOT, entity); - } - else if (StrContains(sample, "3.wav", false) != -1) - { - EmitSoundToAll(LEFTFOOT1, entity); - } - else if (StrContains(sample, "2.wav", false) != -1) - { - EmitSoundToAll(RIGHTFOOT, entity); - } - else if (StrContains(sample, "4.wav", false) != -1) - { - EmitSoundToAll(RIGHTFOOT1, entity); - } - return Plugin_Changed; - } - return Plugin_Continue; -} public Action:SetModel(client, const String:model[]) { @@ -194,33 +166,14 @@ stock GiveGiantToofty(client) TF2_RemoveWeaponSlot(client, 0); TF2_RemoveWeaponSlot(client, 1); TF2_RemoveWeaponSlot(client, 2); - // TF2_RemoveWeaponSlot(client, 3); - // TF2_RemoveWeaponSlot(client, 4); - // TF2_RemoveWeaponSlot(client, 5); - - // CreateRoboWeapon(client, "tf_weapon_grenadelauncher", 308, 8, 1, 0, 0); + CreateRoboWeapon(client, "tf_weapon_pipebomblauncher", 130, 6, 1, 1, 0); - // CreateRoboWeapon(client, "tf_weapon_parachute", 1101, 6, 1, 2, 0); + CreateRoboHat(client, Bandana, 10, 6, 0.0, 0.8, 1.0); //Bruiser's Bandana CreateRoboHat(client, AntarcticEyewear, 10, 6, 0.0, 0.8, -1.0); //Antarctic Eyewear CreateRoboHat(client, SpookySleeves, 10, 6, 2960676.0, 1.1, -1.0); //Spooky Sleeves - //CreateRoboHat(client, 1101, 10, 6, 0.0, 5.0, -1.0); //parachute - - // int Weapon1 = GetPlayerWeaponSlot(client, TFWeaponSlot_Primary); - // if(IsValidEntity(Weapon1)) - // { - - // //TF2Attrib_SetByName(Weapon1, "dmg penalty vs players", 1.20); - // TF2Attrib_SetByName(Weapon1, "Projectile speed increased", 1.50); - // TF2Attrib_SetByName(Weapon1, "killstreak tier", 1.0); - // //TF2Attrib_SetByName(Weapon1, "is_festivized", 1.0); - // TF2Attrib_SetByName(Weapon1, "hidden primary max ammo bonus", 2.0); - // TF2Attrib_SetByName(Weapon1, "dmg bonus vs buildings", 0.65); - // TF2Attrib_SetByName(Weapon1, "reload time increased", 0.75); - - // //TF2CustAttr_SetString(Weapon1, "reload full clip at once", "1.0"); - // } + int Weapon3 = GetPlayerWeaponSlot(client, TFWeaponSlot_Secondary); if(IsValidEntity(Weapon3)) @@ -232,42 +185,11 @@ stock GiveGiantToofty(client) TF2Attrib_SetByName(Weapon3, "faster reload rate", 3.75); TF2Attrib_SetByName(Weapon3, "sticky arm time penalty", 0.5); TF2Attrib_SetByName(Weapon3, "max pipebombs increased", 16.0); - F2Attrib_SetByName(Weapon1, "dmg penalty vs buildings", 0.5); + TF2Attrib_SetByName(Weapon3, "dmg penalty vs buildings", 0.5); TF2Attrib_SetByName(Weapon3, "killstreak tier", 1.0); TF2CustAttr_SetString(Weapon3, "reload full clip at once", "1.0"); } - // int iEntity2 = -1; - // while ((iEntity2 = FindEntityByClassname(iEntity2, "tf_weapon_parachute")) != -1) - // { - // if (client == GetEntPropEnt(iEntity2, Prop_Data, "m_hOwnerEntity")) - // { - // //PrintToChatAll("going through entity"); - // TF2Attrib_SetByName(iEntity2, "major increased jump height", 2.75); - - // break; - // } - // } + } } - -// public void OnEntityCreated(int iEntity, const char[] sClassName) -// { -// if (StrContains(sClassName, "tf_projectile_pipe") == 0) -// { -// SDKHook(iEntity, SDKHook_Spawn, Hook_OnProjectileSpawn); -// } - -// } - -// public void Hook_OnProjectileSpawn(iEntity) { -// int iClient = GetEntPropEnt(iEntity, Prop_Data, "m_hOwnerEntity"); - - - - -// if (0 < iClient && iClient <= MaxClients && IsRobot(iClient, ROBOT_NAME)) { -// SetEntPropFloat(iEntity, Prop_Send, "m_flModelScale", 1.75); - -// } -// } diff --git a/free_damage_grenades_demoman_mortarmack.sp b/free_damage_grenades_demoman_mortarmack.sp index e8840ece..171dd9aa 100644 --- a/free_damage_grenades_demoman_mortarmack.sp +++ b/free_damage_grenades_demoman_mortarmack.sp @@ -40,8 +40,6 @@ public OnPluginStart() { LoadTranslations("common.phrases"); - // AddNormalSoundHook(BossMortar); - RobotDefinition robot; robot.name = ROBOT_NAME; robot.role = ROBOT_ROLE; @@ -61,46 +59,6 @@ public OnPluginStart() AddRobot(robot, MakeSolar, PLUGIN_VERSION); } -// public Action:BossMortar(clients[64], &numClients, String:sample[PLATFORM_MAX_PATH], &entity, &channel, &Float:volume, &level, &pitch, &flags) -// { -// if (!IsValidClient(entity)) return Plugin_Continue; -// if (!IsRobot(entity, ROBOT_NAME)) return Plugin_Continue; - -// // if (strncmp(sample, "player/footsteps/", 17, false) == 0) -// // { -// // if (StrContains(sample, "1.wav", false) != -1) -// // { -// // EmitSoundToAll(LEFTFOOT, entity); -// // } -// // else if (StrContains(sample, "3.wav", false) != -1) -// // { -// // EmitSoundToAll(LEFTFOOT1, entity); -// // } -// // else if (StrContains(sample, "2.wav", false) != -1) -// // { -// // EmitSoundToAll(RIGHTFOOT, entity); -// // } -// // else if (StrContains(sample, "4.wav", false) != -1) -// // { -// // EmitSoundToAll(RIGHTFOOT1, entity); -// // } -// // return Plugin_Changed; -// // } - -// if (strncmp(sample, ")weapons/", 9, false) == 0) -// { -// if (StrContains(sample, "grenade_launcher_shoot.wav", false) != -1) -// { -// Format(sample, sizeof(sample), GUNFIRE); -// EmitSoundToAll(sample, entity,_,_,_, 0.07); -// // PrintToChatAll("SOUND!--"); -// return Plugin_Changed; -// } - -// } -// return Plugin_Continue; -// } - public void OnPluginEnd() { RemoveRobot(ROBOT_NAME); @@ -113,21 +71,6 @@ public APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max) return APLRes_Success; } -public OnMapStart() -{ - - - - - - - - - - - PrecacheSound(GUNFIRE); - -} public Action:SetModel(client, const String:model[]) { @@ -174,8 +117,6 @@ MakeSolar(client) TF2Attrib_SetByName(client, "airblast vulnerability multiplier", 0.5); TF2Attrib_SetByName(client, "cancel falling damage", 1.0); TF2Attrib_SetByName(client, "patient overheal penalty", 0.15); - // TF2Attrib_SetByName(client, "self dmg push force increased", 2.0); - //TF2Attrib_SetByName(client, "override footstep sound set", 4.0); TF2Attrib_SetByName(client, "charge impact damage increased", 1.5); TF2Attrib_SetByName(client, "ammo regen", 100.0); TF2Attrib_SetByName(client, "rage giving scale", 0.85); @@ -210,30 +151,23 @@ stock GiveGiantDemoKnight(client) RoboRemoveAllWearables(client); TF2_RemoveWeaponSlot(client, 0); - TF2_RemoveWeaponSlot(client, 1); TF2_RemoveWeaponSlot(client, 2); - CreateRoboWeapon(client, "tf_weapon_grenadelauncher", 206, 6, 1, 2, 217); - //CreateRoboWeapon(client, "tf_weapon_stickbomb", 307, 6, 1, 2, 0); CreateRoboHat(client, ScotchBonnet, 10, 6, 0.0, 0.75, -1.0); CreateRoboHat(client, ShrapnellShell, 10, 6, 7511618.0, 0.75, -1.0); - //CreateHat(client, 306, 10, 6, true);//Scotch bonnet - //CreateHat(client, 30945, 10, 6, false);//blast locker + int Weapon1 = GetPlayerWeaponSlot(client, TFWeaponSlot_Primary); - // int Weapon3 = GetPlayerWeaponSlot(client, TFWeaponSlot_Melee); + if(IsValidEntity(Weapon1)) { - //TF2Attrib_RemoveAll(Weapon1); + TF2CustAttr_SetString(Weapon1, "reload full clip at once", "1.0"); - - //TF2Attrib_SetByName(Weapon1, "dmg penalty vs players", 0.8); TF2Attrib_SetByName(Weapon1, "clip size penalty", 5.0); TF2Attrib_SetByName(Weapon1, "faster reload rate", 3.7); - // TF2Attrib_SetByName(Weapon1, "projectile speed increased", 1.15); TF2Attrib_SetByName(Weapon1, "maxammo primary increased", 2.5); TF2Attrib_SetByName(Weapon1, "killstreak tier", 1.0); TF2Attrib_SetByName(Weapon1, "dmg bonus vs buildings", 0.15); @@ -241,9 +175,7 @@ stock GiveGiantDemoKnight(client) TF2Attrib_SetByName(Weapon1, "projectile spread angle penalty", 10.0); TF2Attrib_SetByName(Weapon1, "fuse bonus", 1.4); TF2Attrib_SetByName(Weapon1, "rocket jump damage reduction", 0.05); - // TF2Attrib_SetByName(Weapon1, "Blast radius decreased", 0.75); - // TF2Attrib_SetByName(Weapon1, "sticky air burst mode", 0.0); - // TF2Attrib_SetByName(Weapon1, "grenade no spin", 0.0); + } } } diff --git a/free_damage_grenades_demoman_raid.sp b/free_damage_grenades_demoman_raid.sp index 6bcc50c6..4fb4a63b 100644 --- a/free_damage_grenades_demoman_raid.sp +++ b/free_damage_grenades_demoman_raid.sp @@ -230,11 +230,7 @@ stock GiveGiantDemoKnight(client) TF2Attrib_SetByName(Weapon1, "hidden primary max ammo bonus", 3.0); -<<<<<<< HEAD - TF2Attrib_SetByName(Weapon1, "dmg penalty vs buildings", 0.15); -======= TF2Attrib_SetByName(Weapon1, "dmg penalty vs buildings", 0.5); ->>>>>>> robot-tweaks TF2CustAttr_SetString(Weapon1, "reload full clip at once", "1.0"); diff --git a/free_damage_grenades_demoman_solarlight.sp b/free_damage_grenades_demoman_solarlight.sp index bafd66c4..c1e738c1 100644 --- a/free_damage_grenades_demoman_solarlight.sp +++ b/free_damage_grenades_demoman_solarlight.sp @@ -55,8 +55,6 @@ public void OnPluginEnd() public APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max) { - // CreateNative("BeGiantDemoKnight_MakeSolar", Native_SetGiantDemoKnight); - // CreateNative("BeGiantDemoKnight_IsGiantDemoKnight", Native_IsGiantDemoKnight); return APLRes_Success; } @@ -90,17 +88,13 @@ MakeSolar(client) int iHealth = 2000; - int MaxHealth = 175; float OverHealRate = 1.5; -// PrintToChatAll("MaxHealth %i", MaxHealth); - + int iAdditiveHP = iHealth - MaxHealth; TF2_SetHealth(client, iHealth); -// PrintToChatAll("iHealth %i", iHealth); - - // PrintToChatAll("iAdditiveHP %i", iAdditiveHP); + float OverHeal = float(MaxHealth) * OverHealRate; float TotalHealthOverHeal = iHealth * OverHealRate; @@ -118,7 +112,6 @@ MakeSolar(client) TF2Attrib_SetByName(client, "move speed penalty", 0.75); TF2Attrib_SetByName(client, "airblast vulnerability multiplier", 0.8); TF2Attrib_SetByName(client, "cancel falling damage", 1.0); - //TF2Attrib_SetByName(client, "override footstep sound set", 4.0); TF2Attrib_SetByName(client, "charge impact damage increased", 1.5); TF2Attrib_SetByName(client, "ammo regen", 100.0); TF2Attrib_SetByName(client, "rage giving scale", 0.85); @@ -224,7 +217,6 @@ stock GiveGiantDemoKnight(client) TF2Attrib_SetByName(Weapon3, "charge time increased", 5.0); TF2Attrib_SetByName(Weapon3, "dmg penalty vs players", 1.25); TF2Attrib_SetByName(Weapon3, "dmg penalty vs buildings", 0.5); - // TF2Attrib_SetByName(Weapon3, "heal on kill", 200.0); @@ -236,7 +228,6 @@ stock GiveGiantDemoKnight(client) public void TF2_OnConditionAdded(int client, TFCond condition) { - //PrintToChatAll("CONDITION WAS: %i for %N", condition, client); if (IsRobot(client, ROBOT_NAME) && condition == TFCond_Charging) { SetEntPropFloat(client, Prop_Send, "m_flMaxspeed", 550.0); diff --git a/free_damage_hitscan_heavy_HiGPS.sp b/free_damage_hitscan_heavy_HiGPS.sp index 3ae66270..85830406 100644 --- a/free_damage_hitscan_heavy_HiGPS.sp +++ b/free_damage_hitscan_heavy_HiGPS.sp @@ -118,10 +118,6 @@ MakeGDeflectorH(client) TF2_SetHealth(client, iHealth); - // PrintToChatAll("MaxHealth %i", MaxHealth); - // PrintToChatAll("iHealth %i", iHealth); - - // PrintToChatAll("iAdditiveHP %i", iAdditiveHP); float OverHeal = float(MaxHealth) * OverHealRate; float TotalHealthOverHeal = iHealth * OverHealRate; diff --git a/free_damage_hitscan_heavy_Samwiz1.sp b/free_damage_hitscan_heavy_Samwiz1.sp index ff3205f1..e7ed889f 100644 --- a/free_damage_hitscan_heavy_Samwiz1.sp +++ b/free_damage_hitscan_heavy_Samwiz1.sp @@ -22,11 +22,6 @@ #define LOOP "mvm/giant_heavy/giant_heavy_loop.wav" #define BANANA_MODEL "models/items/banana/banana.mdl" -// #define SOUND_GUNFIRE ")mvm/giant_heavy/giant_heavy_gunfire.wav" -// #define SOUND_GUNSPIN ")mvm/giant_heavy/giant_heavy_gunspin.wav" -// #define SOUND_WINDUP ")mvm/giant_heavy/giant_heavy_gunwindup.wav" -// #define SOUND_WINDDOWN ")mvm/giant_heavy/giant_heavy_gunwinddown.wav" - #define LEFTFOOT ")mvm/giant_heavy/giant_heavy_step01.wav" #define LEFTFOOT1 ")mvm/giant_heavy/giant_heavy_step03.wav" #define RIGHTFOOT ")mvm/giant_heavy/giant_heavy_step02.wav" @@ -36,17 +31,12 @@ public Plugin:myinfo = { - name = "[TF2] Be the Giant Deflector Heavy", + name = "[TF2] Be the Giant Samwiz", author = "Erofix using the code from: Pelipoika, PC Gamer, Jaster and StormishJustice", - description = "Play as the Giant Deflector Heavy from MvM", + description = "Play as the Giant Samwiz from youtube", version = PLUGIN_VERSION, url = "www.sourcemod.com" } - -// new bool:Locked1[MAXPLAYERS+1]; -// new bool:Locked2[MAXPLAYERS+1]; -// new bool:Locked3[MAXPLAYERS+1]; -// new bool:CanWindDown[MAXPLAYERS+1]; public OnPluginStart() { @@ -64,49 +54,12 @@ public OnPluginStart() robot.shortDescription = ROBOT_DESCRIPTION; robot.sounds.spawn = SPAWN; robot.sounds.loop = LOOP; - // robot.sounds.gunfire = SOUND_GUNFIRE; - // robot.sounds.gunspin = SOUND_GUNSPIN; - // robot.sounds.windup = SOUND_WINDUP; - // robot.sounds.winddown = SOUND_WINDDOWN; - robot.sounds.death = DEATH; robot.deathtip = ROBOT_ON_DEATH; robot.difficulty = ROBOT_DIFFICULTY_EASY; AddRobot(robot, MakeGHeavy, PLUGIN_VERSION, null); } -public Action:BossGPS(clients[64], &numClients, String:sample[PLATFORM_MAX_PATH], &entity, &channel, &Float:volume, &level, &pitch, &flags) -{ - if (!IsValidClient(entity)) return Plugin_Continue; - if (!IsRobot(entity, ROBOT_NAME)) return Plugin_Continue; - - if (strncmp(sample, "player/footsteps/", 17, false) == 0) - { - if (StrContains(sample, "1.wav", false) != -1) - { - Format(sample, sizeof(sample), "mvm/giant_heavy/giant_heavy_step01.wav"); - EmitSoundToAll(sample, entity); - } - else if (StrContains(sample, "3.wav", false) != -1) - { - Format(sample, sizeof(sample), "mvm/giant_heavy/giant_heavy_step03.wav"); - EmitSoundToAll(sample, entity); - } - else if (StrContains(sample, "2.wav", false) != -1) - { - Format(sample, sizeof(sample), "mvm/giant_heavy/giant_heavy_step02.wav"); - EmitSoundToAll(sample, entity); - } - else if (StrContains(sample, "4.wav", false) != -1) - { - Format(sample, sizeof(sample), "mvm/giant_heavy/giant_heavy_step04.wav"); - EmitSoundToAll(sample, entity); - } - return Plugin_Changed; - } - return Plugin_Continue; -} - public void OnPluginEnd() { RemoveRobot(ROBOT_NAME); @@ -119,34 +72,6 @@ public APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max) return APLRes_Success; } -public OnMapStart() -{ -// - - - - - PrecacheModel(BANANA_MODEL); - // PrecacheSound("^mvm/giant_common/giant_common_step_01.wav"); - // PrecacheSound("^mvm/giant_common/giant_common_step_02.wav"); - // PrecacheSound("^mvm/giant_common/giant_common_step_03.wav"); - // PrecacheSound("^mvm/giant_common/giant_common_step_04.wav"); - // PrecacheSound("^mvm/giant_common/giant_common_step_05.wav"); - // PrecacheSound("^mvm/giant_common/giant_common_step_06.wav"); - // PrecacheSound("^mvm/giant_common/giant_common_step_07.wav"); - // PrecacheSound("^mvm/giant_common/giant_common_step_08.wav"); - - PrecacheSound("mvm/giant_heavy/giant_heavy_step01.wav"); - PrecacheSound("mvm/giant_heavy/giant_heavy_step03.wav"); - PrecacheSound("mvm/giant_heavy/giant_heavy_step02.wav"); - PrecacheSound("mvm/giant_heavy/giant_heavy_step04.wav"); - - // PrecacheSound(SOUND_GUNFIRE); - // PrecacheSound(SOUND_GUNSPIN); - // PrecacheSound(SOUND_WINDUP); - // PrecacheSound(SOUND_WINDDOWN); -} - public Action:SetModel(client, const String:model[]) { if (IsValidClient(client) && IsPlayerAlive(client)) @@ -183,10 +108,6 @@ MakeGHeavy(client) TF2_SetHealth(client, iHealth); - // PrintToChatAll("MaxHealth %i", MaxHealth); - // PrintToChatAll("iHealth %i", iHealth); - - // PrintToChatAll("iAdditiveHP %i", iAdditiveHP); float OverHeal = float(MaxHealth) * OverHealRate; float TotalHealthOverHeal = iHealth * OverHealRate; @@ -196,12 +117,6 @@ MakeGHeavy(client) TF2Attrib_SetByName(client, "patient overheal penalty", OverHealPenaltyRate); - /* - 5000 = 300 - 5000 = 150 - 5000 = 60 - */ - SetEntPropFloat(client, Prop_Send, "m_flModelScale", 1.75); SetEntProp(client, Prop_Send, "m_bIsMiniBoss", _:true); TF2Attrib_SetByName(client, "move speed penalty", 0.65); @@ -209,13 +124,12 @@ MakeGHeavy(client) TF2Attrib_SetByName(client, "airblast vulnerability multiplier", 0.2); float HealthPackPickUpRate = float(MaxHealth) / float(iHealth); TF2Attrib_SetByName(client, "health from packs decreased", HealthPackPickUpRate); - //TF2Attrib_SetByName(client, "aiming movespeed increased", 1.5); + TF2Attrib_SetByName(client, "max health additive bonus", float(iAdditiveHP)); TF2Attrib_SetByName(client, "ammo regen", 100.0); TF2Attrib_SetByName(client, "cancel falling damage", 1.0); TF2Attrib_SetByName(client, "rage giving scale", 0.85); - - // IsKGB + UpdatePlayerHitbox(client, 1.75); TF2_RemoveCondition(client, TFCond_CritOnFirstBlood); @@ -252,24 +166,18 @@ stock GiveGDeflectorH(client) { //Remove items and hats RoboRemoveAllWearables(client); - //TF2_RemoveAllWearables(client); TF2_RemoveWeaponSlot(client, 0); TF2_RemoveWeaponSlot(client, 1); TF2_RemoveWeaponSlot(client, 2); - g_DamageDone = 0.0; - //void CreateRoboHat(int client, int itemindex, int level, int quality, float paint, float scale, float style); - //Default robo head scale = 0.75 + CreateRoboHat(client, Tsarboosh, 10, 6, 15185211.0, 1.0, -1.0); CreateRoboHat(client, DeadofNight, 10, 6, 15185211.0, 1.0, -1.0); CreateRoboHat(client, WildWestWhiskers, 10, 6, 0.0, 1.0, -1.0); CreateRoboHat(client, BananaHat, 10, 6, 0.0, 1.0, -1.0); RequestFrame(FindHat, client); - // SetEntityRenderColor(g_bananahat, 255, 255, 255, 150); - //Weapon Code - - //CreateRoboWeapon(int client, char[] classname, int itemindex, int quality, int level, int slot, float style (-1.0 for none) ); + CreateRoboWeapon(client, "tf_weapon_minigun", 312, 6, 1, 0, 0); int Weapon1 = GetPlayerWeaponSlot(client, TFWeaponSlot_Primary); @@ -277,9 +185,6 @@ stock GiveGDeflectorH(client) { TF2Attrib_RemoveAll(Weapon1); - - // TF2Attrib_SetByName(Weapon1, "override projectile type", 2.0); - // TF2Attrib_SetByName(Weapon1, "Projectile speed decreased", 0.1); TF2Attrib_SetByName(Weapon1, "maxammo primary increased", 2.5); diff --git a/free_damage_hitscan_heavy_bigjoey.sp b/free_damage_hitscan_heavy_bigjoey.sp index 4731e4a8..7ed27680 100644 --- a/free_damage_hitscan_heavy_bigjoey.sp +++ b/free_damage_hitscan_heavy_bigjoey.sp @@ -64,8 +64,6 @@ public OnPluginStart() { LoadTranslations("common.phrases"); - AddNormalSoundHook(BossGPS); - RobotDefinition robot; robot.name = ROBOT_NAME; robot.role = ROBOT_ROLE; @@ -87,33 +85,7 @@ public OnPluginStart() } -public Action:BossGPS(clients[64], &numClients, String:sample[PLATFORM_MAX_PATH], &entity, &channel, &Float:volume, &level, &pitch, &flags) -{ - if (!IsValidClient(entity)) return Plugin_Continue; - if (!IsRobot(entity, ROBOT_NAME)) return Plugin_Continue; - if (strncmp(sample, "player/footsteps/", 17, false) == 0) - { - if (StrContains(sample, "1.wav", false) != -1) - { - EmitSoundToAll(LEFTFOOT, entity); - } - else if (StrContains(sample, "3.wav", false) != -1) - { - EmitSoundToAll(LEFTFOOT1, entity); - } - else if (StrContains(sample, "2.wav", false) != -1) - { - EmitSoundToAll(RIGHTFOOT, entity); - } - else if (StrContains(sample, "4.wav", false) != -1) - { - EmitSoundToAll(RIGHTFOOT1, entity); - } - return Plugin_Changed; - } - return Plugin_Continue; -} public void OnPluginEnd() { diff --git a/free_damage_hitscan_heavy_riotcop.sp b/free_damage_hitscan_heavy_riotcop.sp index 22669f17..4f403256 100644 --- a/free_damage_hitscan_heavy_riotcop.sp +++ b/free_damage_hitscan_heavy_riotcop.sp @@ -40,8 +40,6 @@ public OnPluginStart() // HookEvent("post_inventory_application", EventInventoryApplication, EventHookMode_Post); - AddNormalSoundHook(BossGPS); - RobotDefinition robot; robot.name = ROBOT_NAME; robot.role = ROBOT_ROLE; @@ -56,37 +54,6 @@ public OnPluginStart() AddRobot(robot, MakeRiotcop, PLUGIN_VERSION); } -public Action:BossGPS(clients[64], &numClients, String:sample[PLATFORM_MAX_PATH], &entity, &channel, &Float:volume, &level, &pitch, &flags) -{ - if (!IsValidClient(entity)) return Plugin_Continue; - if (!IsRobot(entity, ROBOT_NAME)) return Plugin_Continue; - - if (strncmp(sample, "player/footsteps/", 17, false) == 0) - { - if (StrContains(sample, "1.wav", false) != -1) - { - Format(sample, sizeof(sample), LEFTFOOT); - EmitSoundToAll(sample, entity); - } - else if (StrContains(sample, "3.wav", false) != -1) - { - Format(sample, sizeof(sample), LEFTFOOT1); - EmitSoundToAll(sample, entity); - } - else if (StrContains(sample, "2.wav", false) != -1) - { - Format(sample, sizeof(sample), RIGHTFOOT); - EmitSoundToAll(sample, entity); - } - else if (StrContains(sample, "4.wav", false) != -1) - { - Format(sample, sizeof(sample), RIGHTFOOT1); - EmitSoundToAll(sample, entity); - } - return Plugin_Changed; - } -} - public void OnPluginEnd() { RemoveRobot(ROBOT_NAME); @@ -99,30 +66,6 @@ public APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max) return APLRes_Success; } -public OnMapStart() -{ -// - - - - - - - - - -} - -/* public EventInventoryApplication(Handle:event, const String:name[], bool:dontBroadcast) -{ - new client = GetClientOfUserId(GetEventInt(event, "userid")); - - if(g_bIsRiotcop[client]) - { - g_bIsRiotcop[client] = false; - } -} */ - public Action:SetModel(client, const String:model[]) { if (IsValidClient(client) && IsPlayerAlive(client)) @@ -151,20 +94,11 @@ MakeRiotcop(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GDEFLECTORH); int iHealth = 5000; - - int MaxHealth = 300; - // PrintToChatAll("MaxHealth %i", MaxHealth); - int iAdditiveHP = iHealth - MaxHealth; TF2_SetHealth(client, iHealth); - // PrintToChatAll("iHealth %i", iHealth); - - // PrintToChatAll("iAdditiveHP %i", iAdditiveHP); - - - + SetEntPropFloat(client, Prop_Send, "m_flModelScale", 1.75); SetEntProp(client, Prop_Send, "m_bIsMiniBoss", _:true); TF2Attrib_SetByName(client, "move speed penalty", 0.7); @@ -229,25 +163,19 @@ stock GiveGDeflectorH(client) { TF2Attrib_RemoveAll(Weapon2); TF2Attrib_SetByName(Weapon2, "fire rate penalty", 1.0); - // TF2Attrib_SetByName(Weapon2, "fire rate penalty", 2.0); TF2Attrib_SetByName(Weapon2, "bullets per shot bonus", 10.0); TF2Attrib_SetByName(Weapon2, "damage penalty", 0.5); - // TF2Attrib_SetByName(Weapon2, "faster reload rate", 0.3); TF2Attrib_SetByName(Weapon2, "spread penalty", 1.2); - TF2Attrib_SetByName(Weapon2, "clip size penalty", 0.1); - - - + TF2Attrib_SetByName(Weapon2, "clip size penalty", 0.1); TF2Attrib_SetByName(Weapon2, "maxammo secondary increased", 2.5); TF2Attrib_SetByName(Weapon2, "killstreak tier", 1.0); TF2Attrib_SetByName(Weapon2, "dmg penalty vs buildings", 0.5); TF2Attrib_SetByName(Weapon2, "mult_spread_scales_consecutive", 0.0); - //TF2CustAttr_SetString(Weapon2, "reload full clip at once", "1.0"); + } - // TF2_SetWeaponAmmo(Weapon2, 1); RoboCorrectClipSize(Weapon2); } } diff --git a/free_damage_hitscan_scout_b4nny.sp b/free_damage_hitscan_scout_b4nny.sp index af62dace..98e5bb95 100644 --- a/free_damage_hitscan_scout_b4nny.sp +++ b/free_damage_hitscan_scout_b4nny.sp @@ -27,9 +27,9 @@ public Plugin:myinfo = { - name = "[TF2] Be the Giant Scout", + name = "[TF2] Be the Giant B4nny Scout", author = "Erofix using the code from: Pelipoika, PC Gamer, Jaster and StormishJustice", - description = "Play as the Giant Scout", + description = "Play as the Giant B4nny Scout", version = PLUGIN_VERSION, url = "www.sourcemod.com" } @@ -48,9 +48,6 @@ public OnPluginStart() LoadTranslations("common.phrases"); - - - RobotDefinition robot; robot.name = ROBOT_NAME; robot.role = ROBOT_ROLE; @@ -109,14 +106,11 @@ MakeGiantscout(client) int iHealth = 1250; int MaxHealth = 125; - //PrintToChatAll("MaxHealth %i", MaxHealth); int iAdditiveHP = iHealth - MaxHealth; TF2_SetHealth(client, iHealth); - // PrintToChatAll("iHealth %i", iHealth); - - // PrintToChatAll("iAdditiveHP %i", iAdditiveHP); + SetEntPropFloat(client, Prop_Send, "m_flModelScale", 1.75); @@ -143,8 +137,6 @@ MakeGiantscout(client) TF2_AddCondition(client, TFCond_SpeedBuffAlly, 0.1); PrintHintText(client, ROBOT_TIPS); - // SetEntProp(client, Prop_Send, "m_bForcedSkin", 1); - // SetEntProp(client, Prop_Send, "m_nForcedSkin", 0); } diff --git a/free_damage_hitscan_scout_funke.sp b/free_damage_hitscan_scout_funke.sp index fce146a6..f53b5833 100644 --- a/free_damage_hitscan_scout_funke.sp +++ b/free_damage_hitscan_scout_funke.sp @@ -22,13 +22,11 @@ #define DEATH "mvm/sentrybuster/mvm_sentrybuster_explode.wav" #define LOOP "mvm/giant_scout/giant_scout_loop.wav" -// #define BLUE_MODEL "models/workshop/weapons/c_models/c_invasion_bat/c_invasion_bat.mdl" - public Plugin:myinfo = { - name = "[TF2] Be the Giant Scout", + name = "[TF2] Be the Giant Funke Scout", author = "Erofix using the code from: Pelipoika, PC Gamer, Jaster and StormishJustice", - description = "Play as the Giant Scout", + description = "Play as the Giant Funke Scout", version = PLUGIN_VERSION, url = "www.sourcemod.com" } @@ -78,12 +76,6 @@ public APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max) return APLRes_Success; } -// public OnMapStart() -// { - -// PrecacheModel(BLUE_MODEL); -// } - public Action:SetModel(client, const String:model[]) { if (IsValidClient(client) && IsPlayerAlive(client)) @@ -114,16 +106,10 @@ MakeGiantscout(client) SetModel(client, GSCOUT); int iHealth = 1250; - int MaxHealth = 125; - //PrintToChatAll("MaxHealth %i", MaxHealth); - int iAdditiveHP = iHealth - MaxHealth; TF2_SetHealth(client, iHealth); - // PrintToChatAll("iHealth %i", iHealth); - - // PrintToChatAll("iAdditiveHP %i", iAdditiveHP); SetEntPropFloat(client, Prop_Send, "m_flModelScale", 1.75); SetEntProp(client, Prop_Send, "m_bIsMiniBoss", true); diff --git a/free_damage_hitscan_scout_mechaface.sp b/free_damage_hitscan_scout_mechaface.sp index 6a970780..520641bb 100644 --- a/free_damage_hitscan_scout_mechaface.sp +++ b/free_damage_hitscan_scout_mechaface.sp @@ -20,12 +20,6 @@ #define DEATH "mvm/sentrybuster/mvm_sentrybuster_explode.wav" #define LOOP "mvm/giant_scout/giant_scout_loop.wav" -#define LEFTFOOT ")mvm/giant_scout/giant_scout_step_01.wav" -#define LEFTFOOT1 ")mvm/giant_scout/giant_scout_step_03.wav" -#define RIGHTFOOT ")mvm/giant_scout/giant_scout_step_02.wav" -#define RIGHTFOOT1 ")mvm/giant_scout/giant_scout_step_04.wav" - - public Plugin:myinfo = { @@ -49,8 +43,6 @@ public OnPluginStart() SMLoggerInit(LOG_TAGS, sizeof(LOG_TAGS), SML_ERROR, SML_FILE); LoadTranslations("common.phrases"); - // HookEvent("player_death", Event_Death, EventHookMode_Post); - RobotDefinition robot; robot.name = ROBOT_NAME; @@ -78,19 +70,6 @@ public APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max) return APLRes_Success; } -public OnMapStart() -{ - - - - - - - //PrecacheSound(SOUND_GUNFIRE); - //PrecacheSound(SOUND_WINDUP); - -} - public Action:SetModel(client, const String:model[]) { if (IsValidClient(client) && IsPlayerAlive(client)) @@ -125,23 +104,16 @@ MakeGiantscout(client) SetModel(client, GSCOUT); int iHealth = 1250; - int MaxHealth = 125; - //PrintToChatAll("MaxHealth %i", MaxHealth); - int iAdditiveHP = iHealth - MaxHealth; TF2_SetHealth(client, iHealth); - // PrintToChatAll("iHealth %i", iHealth); - - // PrintToChatAll("iAdditiveHP %i", iAdditiveHP); - + SetEntPropFloat(client, Prop_Send, "m_flModelScale", 1.75); SetEntProp(client, Prop_Send, "m_bIsMiniBoss", true); TF2Attrib_SetByName(client, "max health additive bonus", float(iAdditiveHP)); TF2Attrib_SetByName(client, "ammo regen", 100.0); - // TF2Attrib_SetByName(client, "move speed penalty", 0.7); TF2Attrib_SetByName(client, "damage force reduction", 1.5); TF2Attrib_SetByName(client, "airblast vulnerability multiplier", 1.5); TF2Attrib_SetByName(client, "airblast vertical vulnerability multiplier", 1.0); @@ -161,8 +133,6 @@ MakeGiantscout(client) TF2_AddCondition(client, TFCond_SpeedBuffAlly, 0.1); PrintHintText(client, ROBOT_TIPS); - // SetEntProp(client, Prop_Send, "m_bForcedSkin", 1); - // SetEntProp(client, Prop_Send, "m_nForcedSkin", 0); } @@ -213,11 +183,8 @@ stock GiveGiantPyro(client) { TF2Attrib_RemoveAll(Weapon1); - // TF2Attrib_SetByName(Weapon1, "weapon spread bonus", 0.35); TF2Attrib_SetByName(Weapon1, "dmg penalty vs buildings", 0.5); - // TF2Attrib_SetByName(Weapon1, "fire rate penalty", 0.75); TF2Attrib_SetByName(Weapon1, "killstreak tier", 1.0); - // TF2Attrib_SetByName(Weapon1, "speed_boost_on_hit", 2.0); TF2Attrib_SetByName(Weapon1, "hype resets on jump", 0.0); TF2Attrib_SetByName(Weapon1, "lose hype on take damage", 1.0); TF2Attrib_SetByName(Weapon1, "boost on damage", 1.0); @@ -230,33 +197,4 @@ stock GiveGiantPyro(client) } public Native_SetGiantPyro(Handle:plugin, args) - MakeGiantscout(GetNativeCell(1)); - -// public Event_Death(Event event, const char[] name, bool dontBroadcast) -// { -// int attacker = GetClientOfUserId(GetEventInt(event, "attacker")); -// int victim = GetClientOfUserId(GetEventInt(event, "userid")); - -// if (!IsAnyRobot(victim) && IsRobot(attacker, ROBOT_NAME)) -// { -// int Weapon1 = GetPlayerWeaponSlot(attacker, TFWeaponSlot_Primary); - -// if(Weapon1 != -1) -// { -// float Hypemeter = GetEntPropFloat(attacker, Prop_Send, "m_flHypeMeter"); -// SetEntPropFloat(attacker, Prop_Send, "m_flHypeMeter", Hypemeter+30.0); - -// float Speed = GetEntPropFloat(attacker, Prop_Send, "m_flMaxspeed"); -// if (Speed*1.05 >= 520.0){ - -// SetEntPropFloat(attacker, Prop_Send, "m_flMaxspeed", 520.0); -// }else -// { -// SetEntPropFloat(attacker, Prop_Send, "m_flMaxspeed", Speed+26.8); -// } - -// // PrintToChatAll("Speed set to %f", Speed+26.8); -// } -// } - -// } + MakeGiantscout(GetNativeCell(1)); \ No newline at end of file diff --git a/free_damage_melee_demoman_roboknight.sp b/free_damage_melee_demoman_roboknight.sp index a0e16e7c..4f926462 100644 --- a/free_damage_melee_demoman_roboknight.sp +++ b/free_damage_melee_demoman_roboknight.sp @@ -19,12 +19,6 @@ #define DEATH "mvm/sentrybuster/mvm_sentrybuster_explode.wav" #define LOOP "mvm/giant_demoman/giant_demoman_loop.wav" -#define LEFTFOOT ")mvm/giant_demoman/giant_demoman_step_01.wav" -#define LEFTFOOT1 ")mvm/giant_demoman/giant_demoman_step_03.wav" -#define RIGHTFOOT ")mvm/giant_demoman/giant_demoman_step_02.wav" -#define RIGHTFOOT1 ")mvm/giant_demoman/giant_demoman_step_04.wav" - - public Plugin:myinfo = { name = "[TF2] Be the Giant Demoknight", @@ -38,10 +32,6 @@ public OnPluginStart() { LoadTranslations("common.phrases"); - AddNormalSoundHook(BossMortar); - - // HookEvent("player_death", Event_Death, EventHookMode_Post); - RobotDefinition robot; robot.name = ROBOT_NAME; robot.role = ROBOT_ROLE; @@ -56,35 +46,6 @@ public OnPluginStart() AddRobot(robot, MakeDemoKnight, PLUGIN_VERSION, null, 1); } -public Action:BossMortar(clients[64], &numClients, String:sample[PLATFORM_MAX_PATH], &entity, &channel, &Float:volume, &level, &pitch, &flags) -{ - if (!IsValidClient(entity)) return Plugin_Continue; - if (!IsRobot(entity, ROBOT_NAME)) return Plugin_Continue; - - if (strncmp(sample, "player/footsteps/", 17, false) == 0) - { - if (StrContains(sample, "1.wav", false) != -1) - { - EmitSoundToAll(LEFTFOOT, entity); - } - else if (StrContains(sample, "3.wav", false) != -1) - { - EmitSoundToAll(LEFTFOOT1, entity); - } - else if (StrContains(sample, "2.wav", false) != -1) - { - EmitSoundToAll(RIGHTFOOT, entity); - } - else if (StrContains(sample, "4.wav", false) != -1) - { - EmitSoundToAll(RIGHTFOOT1, entity); - } - return Plugin_Changed; - } - - return Plugin_Continue; -} - public void OnPluginEnd() { RemoveRobot(ROBOT_NAME); @@ -95,15 +56,6 @@ public APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max) // CreateNative("BeGiantDemoKnight_MakeDemoKnight", Native_SetGiantDemoKnight); // CreateNative("BeGiantDemoKnight_IsGiantDemoKnight", Native_IsGiantDemoKnight); return APLRes_Success; -} - -public OnMapStart() -{ - - - - - } public Action:SetModel(client, const String:model[]) @@ -139,14 +91,9 @@ MakeDemoKnight(client) int MaxHealth = 175; float OverHealRate = 1.5; -// PrintToChatAll("MaxHealth %i", MaxHealth); - int iAdditiveHP = iHealth - MaxHealth; - TF2_SetHealth(client, iHealth); -// PrintToChatAll("iHealth %i", iHealth); - - // PrintToChatAll("iAdditiveHP %i", iAdditiveHP); + float OverHeal = float(MaxHealth) * OverHealRate; float TotalHealthOverHeal = iHealth * OverHealRate; @@ -164,7 +111,6 @@ MakeDemoKnight(client) TF2Attrib_SetByName(client, "move speed penalty", 0.8); TF2Attrib_SetByName(client, "airblast vulnerability multiplier", 0.8); TF2Attrib_SetByName(client, "cancel falling damage", 1.0); - //TF2Attrib_SetByName(client, "override footstep sound set", 4.0); TF2Attrib_SetByName(client, "charge impact damage increased", 1.5); TF2Attrib_SetByName(client, "rage giving scale", 0.85); TF2Attrib_SetByName(client, "head scale", 0.85); @@ -219,8 +165,6 @@ stock GiveGiantDemoKnight(client) { if (client == GetEntPropEnt(iEntity2, Prop_Data, "m_hOwnerEntity")) { - //PrintToChatAll("going through entity"); - // TF2Attrib_SetByName(iEntity2, "major increased jump height", 1.35); TF2Attrib_SetByName(iEntity2, "lose demo charge on damage when charging", 0.0); TF2Attrib_SetByName(iEntity2, "dmg taken from fire reduced", 1.0); TF2Attrib_SetByName(iEntity2, "dmg taken from blast reduced", 1.0); @@ -234,17 +178,13 @@ stock GiveGiantDemoKnight(client) int Weapon3 = GetPlayerWeaponSlot(client, TFWeaponSlot_Melee); if(IsValidEntity(Weapon3)) { - //TF2Attrib_RemoveAll(Weapon3); - TF2Attrib_SetByName(Weapon3, "killstreak tier", 1.0); TF2Attrib_SetByName(Weapon3, "charge meter on hit", 0.2); TF2Attrib_SetByName(Weapon3, "charge time increased", 5.0); TF2Attrib_SetByName(Weapon3, "damage bonus", 1.25); TF2Attrib_SetByName(Weapon3, "fire rate bonus", 0.9); TF2Attrib_SetByName(Weapon3, "charge impact damage increased", 5.0); - TF2Attrib_SetByName(Weapon3, "no charge impact range", 100.0); - - // TF2Attrib_SetByName(Weapon3, "minicritboost on kill", 5.0); + TF2Attrib_SetByName(Weapon3, "no charge impact range", 100.0); TF2Attrib_SetByName(Weapon3, "full charge turn control", 50.0); TF2Attrib_SetByName(Weapon3, "dmg penalty vs buildings", 0.25); } @@ -253,39 +193,9 @@ stock GiveGiantDemoKnight(client) public void TF2_OnConditionAdded(int client, TFCond condition) { - - //PrintToChatAll("CONDITION WAS: %i for %N", condition, client); if (IsRobot(client, ROBOT_NAME) && condition == TFCond_Charging) { SetEntPropFloat(client, Prop_Send, "m_flMaxspeed", 550.0); - // TF2_AddCondition(client, TFCond_CritCanteen, 3.0); } -} - -// public Event_Death(Event event, const char[] name, bool dontBroadcast) -// { -// int attacker = GetClientOfUserId(GetEventInt(event, "attacker")); -// //int victim = GetClientOfUserId(GetEventInt(event, "userid")); - -// if(IsRobot(attacker, ROBOT_NAME)) -// { - -// //PrintToChatAll("HP WAS %i , MAXHP was %i", HP, MAXHP); - -// RequestFrame(SetHP, attacker); - -// // SetEntProp(attacker, Prop_Send, "m_iHealth", HP, 1); -// // SetEntProp(attacker, Prop_Data, "m_iHealth", HP, 1); - - -// } -// } - -// void SetHP(int attacker) -// { -// // int HP = GetEntProp(attacker, Prop_Send, "m_iHealth"); -// // int MAXHP = GetEntProp(attacker, Prop_Data, "m_iMaxHealth"); -// // SetEntProp(attacker, Prop_Send, "m_iMaxHealth", MAXHP+115, 1); -// // SetEntProp(attacker, Prop_Data, "m_iMaxHealth", MAXHP+115, 1); -// } +} \ No newline at end of file diff --git a/free_damage_melee_heavy_boxing_champ.sp b/free_damage_melee_heavy_boxing_champ.sp index 96c7352a..118ddb80 100644 --- a/free_damage_melee_heavy_boxing_champ.sp +++ b/free_damage_melee_heavy_boxing_champ.sp @@ -24,13 +24,6 @@ #define DEATH "mvm/sentrybuster/mvm_sentrybuster_explode.wav" #define LOOP "mvm/giant_heavy/giant_heavy_loop.wav" -#define LEFTFOOT ")mvm/giant_heavy/giant_heavy_step01.wav" -#define LEFTFOOT1 ")mvm/giant_heavy/giant_heavy_step03.wav" -#define RIGHTFOOT ")mvm/giant_heavy/giant_heavy_step02.wav" -#define RIGHTFOOT1 ")mvm/giant_heavy/giant_heavy_step04.wav" - -//#define GIFTBRINGER 30747 - public Plugin:myinfo = { name = "[TF2] Be the Giant Deflector Heavy", @@ -43,7 +36,6 @@ public Plugin:myinfo = public OnPluginStart() { LoadTranslations("common.phrases"); - AddNormalSoundHook(BossGPS); RobotDefinition robot; robot.name = ROBOT_NAME; @@ -62,38 +54,6 @@ public OnPluginStart() } -public Action:BossGPS(clients[64], &numClients, String:sample[PLATFORM_MAX_PATH], &entity, &channel, &Float:volume, &level, &pitch, &flags) -{ - if (!IsValidClient(entity)) return Plugin_Continue; - if (!IsRobot(entity, ROBOT_NAME)) return Plugin_Continue; - - if (strncmp(sample, "player/footsteps/", 17, false) == 0) - { - if (StrContains(sample, "1.wav", false) != -1) - { - Format(sample, sizeof(sample), "mvm/giant_heavy/giant_heavy_step01.wav"); - EmitSoundToAll(sample, entity); - } - else if (StrContains(sample, "3.wav", false) != -1) - { - Format(sample, sizeof(sample), "mvm/giant_heavy/giant_heavy_step03.wav"); - EmitSoundToAll(sample, entity); - } - else if (StrContains(sample, "2.wav", false) != -1) - { - Format(sample, sizeof(sample), "mvm/giant_heavy/giant_heavy_step02.wav"); - EmitSoundToAll(sample, entity); - } - else if (StrContains(sample, "4.wav", false) != -1) - { - Format(sample, sizeof(sample), "mvm/giant_heavy/giant_heavy_step04.wav"); - EmitSoundToAll(sample, entity); - } - return Plugin_Changed; - } - return Plugin_Continue; -} - public void OnPluginEnd() { RemoveRobot(ROBOT_NAME); @@ -105,14 +65,7 @@ public APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max) // CreateNative("BeGDeflectorH_IsGDeflectorH", Native_IsGDeflectorH); return APLRes_Success; } - -public OnMapStart() -{ - - -} - public Action:SetModel(client, const String:model[]) { if (IsValidClient(client) && IsPlayerAlive(client)) @@ -141,19 +94,12 @@ MakeGDeflectorH(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GDEFLECTORH); int iHealth = 3000; - - int MaxHealth = 300; int iAdditiveHP = iHealth - MaxHealth; float OverHealRate = 1.5; - TF2_SetHealth(client, iHealth); - // PrintToChatAll("MaxHealth %i", MaxHealth); - // PrintToChatAll("iHealth %i", iHealth); - - // PrintToChatAll("iAdditiveHP %i", iAdditiveHP); - float OverHeal = float(MaxHealth) * OverHealRate; + float TotalHealthOverHeal = iHealth * OverHealRate; float OverHealPenaltyRate = OverHeal / TotalHealthOverHeal; @@ -172,16 +118,11 @@ MakeGDeflectorH(client) TF2Attrib_SetByName(client, "ammo regen", 100.0); TF2Attrib_SetByName(client, "cancel falling damage", 1.0); TF2Attrib_SetByName(client, "rage giving scale", 0.85); - // TF2Attrib_SetByName(client, "increased jump height", 0.0); - - //TF2Attrib_SetByName(client, "head scale", 0.75); - // TF2Attrib_SetByName(client, "hand scale", 1.25); - + UpdatePlayerHitbox(client, 1.5); TF2_RemoveCondition(client, TFCond_CritOnFirstBlood); TF2_AddCondition(client, TFCond_SpeedBuffAlly, 0.1); - // TF2_AddCondition(client, TFCond_CritCanteen); PrintHintText(client , ROBOT_TIPS); @@ -208,14 +149,13 @@ stock GiveGDeflectorH(client) { if (IsValidClient(client)) { - //Remove items and hats + RoboRemoveAllWearables(client); - //TF2_RemoveAllWearables(client); + TF2_RemoveWeaponSlot(client, 0); TF2_RemoveWeaponSlot(client, 1); TF2_RemoveWeaponSlot(client, 2); - //void CreateRoboHat(int client, int itemindex, int level, int quality, float paint, float scale, float style); CreateRoboHat(client, Pugilist, 10, 6, 0.0, 1.0, -1.0);//Rotation sensation CreateRoboHat(client, HeacyChamp, 10, 6, 0.0, 1.0, -1.0);//Summer shades @@ -235,9 +175,6 @@ stock GiveGDeflectorH(client) } } -// float g_cooldown = 1.5; -// float g_crouch_time = 0.0; - bool g_button_held[MAXPLAYERS + 1] = {false, ...}; float g_Recharge[MAXPLAYERS + 1] = {0.0, ...}; float g_RechargeCooldown = 5.0; diff --git a/free_damage_melee_pyro_centurion.sp b/free_damage_melee_pyro_centurion.sp index be63cc33..664eed6d 100644 --- a/free_damage_melee_pyro_centurion.sp +++ b/free_damage_melee_pyro_centurion.sp @@ -38,11 +38,6 @@ enum(<<= 1) SML_ERROR, } -// new bool:Locked1[MAXPLAYERS+1]; -// new bool:Locked2[MAXPLAYERS+1]; -// new bool:Locked3[MAXPLAYERS+1]; -// new bool:CanWindDown[MAXPLAYERS+1]; - public OnPluginStart() { SMLoggerInit(LOG_TAGS, sizeof(LOG_TAGS), SML_ERROR, SML_FILE); @@ -57,8 +52,6 @@ public OnPluginStart() robot.shortDescription = ROBOT_DESCRIPTION; robot.sounds.spawn = SPAWN; robot.sounds.loop = LOOP; - // robot.sounds.gunfire = SOUND_GUNFIRE; - // robot.sounds.windup = SOUND_WINDUP; robot.sounds.death = DEATH; robot.deathtip = ROBOT_ON_DEATH; robot.footstep = ROBOT_FOOTSTEP_GIANTCOMMON; @@ -93,7 +86,6 @@ MakeGiantPyro(client) { SMLogTag(SML_VERBOSE, "Creating Volcanyro"); TF2_SetPlayerClass(client, TFClass_Pyro); - //TF2_RespawnPlayer(client); TF2_RegeneratePlayer(client); new ragdoll = GetEntPropEnt(client, Prop_Send, "m_hRagdoll"); @@ -108,18 +100,12 @@ MakeGiantPyro(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GPYRO); - int iHealth = 3250; - + int iHealth = 3250; int MaxHealth = 175; - //PrintToChatAll("MaxHealth %i", MaxHealth); - int iAdditiveHP = iHealth - MaxHealth; TF2_SetHealth(client, iHealth); - // PrintToChatAll("iHealth %i", iHealth); - - // PrintToChatAll("iAdditiveHP %i", iAdditiveHP); - + SetEntPropFloat(client, Prop_Send, "m_flModelScale", 1.75); SetEntProp(client, Prop_Send, "m_bIsMiniBoss", true); TF2Attrib_SetByName(client, "max health additive bonus", float(iAdditiveHP)); @@ -162,7 +148,6 @@ public Action:Timer_Switch(Handle:timer, any:client) #define Centurion 30063 #define SteelSixpack 30062 -// #define PyromancersMask 316 stock GiveGiantPyro(client) { @@ -178,7 +163,6 @@ stock GiveGiantPyro(client) CreateRoboHat(client, Centurion, 10, 6, 0.0, 1.0, -1.0); CreateRoboHat(client, SteelSixpack, 10, 6, 0.0, 1.0, -1.0); - // CreateRoboHat(client, PyromancersMask, 10, 6, 1315860.0, 1.15, -1.0); int Weapon3 = GetPlayerWeaponSlot(client, TFWeaponSlot_Melee); @@ -188,16 +172,10 @@ stock GiveGiantPyro(client) { TF2Attrib_RemoveAll(Weapon3); TF2Attrib_SetByName(Weapon3, "melee range multiplier", 1.25); - // TF2Attrib_SetByName(Weapon3, "minicrits become crits", 1.0); TF2Attrib_SetByName(Weapon3, "speed_boost_on_hit", 1.0); - // TF2Attrib_SetByName(Weapon3, "heal on kill", 175.0); - // TF2Attrib_SetByName(Weapon3, "damage bonus vs burning", 1.35); TF2Attrib_SetByName(Weapon3, "killstreak tier", 1.0); TF2Attrib_SetByName(Weapon3, "dmg bonus vs buildings", 0.25); TF2CustAttr_SetString(Weapon3,"third-degree", "critType=2 hitGroup=1"); - // TF2CustAttr_SetString(Weapon3, "mod crit type on target condition", "condition=23 crit_type=2"); - // TF2CustAttr_SetString(Weapon3, "mod crit type on target condition", "condition=21 crit_type=2"); - } } } diff --git a/free_damage_melee_pyro_volcanyro.sp b/free_damage_melee_pyro_volcanyro.sp index 1c052fdf..f5a94b77 100644 --- a/free_damage_melee_pyro_volcanyro.sp +++ b/free_damage_melee_pyro_volcanyro.sp @@ -41,11 +41,6 @@ enum(<<= 1) SML_ERROR, } -// new bool:Locked1[MAXPLAYERS+1]; -// new bool:Locked2[MAXPLAYERS+1]; -// new bool:Locked3[MAXPLAYERS+1]; -// new bool:CanWindDown[MAXPLAYERS+1]; - public OnPluginStart() { SMLoggerInit(LOG_TAGS, sizeof(LOG_TAGS), SML_ERROR, SML_FILE); @@ -96,7 +91,7 @@ MakeGiantPyro(client) { SMLogTag(SML_VERBOSE, "Creating Volcanyro"); TF2_SetPlayerClass(client, TFClass_Pyro); - //TF2_RespawnPlayer(client); + TF2_RegeneratePlayer(client); new ragdoll = GetEntPropEnt(client, Prop_Send, "m_hRagdoll"); @@ -112,17 +107,11 @@ MakeGiantPyro(client) SetModel(client, GPYRO); int iHealth = 2750; - int MaxHealth = 175; - //PrintToChatAll("MaxHealth %i", MaxHealth); - int iAdditiveHP = iHealth - MaxHealth; TF2_SetHealth(client, iHealth); - // PrintToChatAll("iHealth %i", iHealth); - - // PrintToChatAll("iAdditiveHP %i", iAdditiveHP); - + SetEntPropFloat(client, Prop_Send, "m_flModelScale", 1.75); SetEntProp(client, Prop_Send, "m_bIsMiniBoss", true); TF2Attrib_SetByName(client, "max health additive bonus", float(iAdditiveHP)); @@ -204,8 +193,6 @@ stock GiveGiantPyro(client) TF2Attrib_SetByName(Weapon3, "melee range multiplier", 1.25); TF2Attrib_SetByName(Weapon3, "fire rate penalty", 0.85); TF2Attrib_SetByName(Weapon3, "speed_boost_on_hit", 1.0); - // TF2Attrib_SetByName(Weapon3, "heal on kill", 175.0); - // TF2Attrib_SetByName(Weapon3, "damage bonus vs burning", 1.35); TF2Attrib_SetByName(Weapon3, "killstreak tier", 1.0); TF2Attrib_SetByName(Weapon3, "dmg bonus vs buildings", 0.25); TF2Attrib_SetByName(Weapon3, "weapon burn dmg reduced", 0.5); //Since it crits, this should do about 7.5 per tick instead of 13 per tick diff --git a/free_damage_melee_sniper_fatmagic.sp b/free_damage_melee_sniper_fatmagic.sp index 228026c9..f6f09841 100644 --- a/free_damage_melee_sniper_fatmagic.sp +++ b/free_damage_melee_sniper_fatmagic.sp @@ -17,13 +17,11 @@ #define ROBOT_TIPS "Rapid swing Bushwacka\nBecome briefly ubered when jarate'd\nYou regenerate health over time!" #define ROBOT_ON_DEATH "Fatmagic becomes briefly Ubered when covered in Jarate\nFatmagic can Uber himself with his own Jarate" - #define ChangeDane "models/bots/Sniper/bot_Sniper.mdl" #define SPAWN "#mvm/giant_heavy/giant_heavy_entrance.wav" #define DEATH "mvm/sentrybuster/mvm_sentrybuster_explode.wav" #define LOOP "mvm/giant_heavy/giant_heavy_loop.wav" - public Plugin:myinfo = { name = "[TF2] Be Big Robot Huntsbot", @@ -37,7 +35,7 @@ public OnPluginStart() { LoadTranslations("common.phrases"); - //HookEvent("player_death", Event_Death, EventHookMode_Post); + RobotDefinition robot; robot.name = ROBOT_NAME; @@ -51,10 +49,6 @@ public OnPluginStart() robot.deathtip = ROBOT_ON_DEATH; robot.difficulty = ROBOT_DIFFICULTY_EASY; - // RestrictionsDefinition restrictions = new RestrictionsDefinition(); - // restrictions.RobotCoins = new RobotCoinRestrictionDefinition(); - // restrictions.RobotCoins.Overall = 1; - AddRobot(robot, MakeSniper, PLUGIN_VERSION); } @@ -70,25 +64,6 @@ public APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max) return APLRes_Success; } -public OnMapStart() -{ - // PrecacheModel(ChangeDane); - - - - - // PrecacheSound("^mvm/giant_common/giant_common_step_01.wav"); - // PrecacheSound("^mvm/giant_common/giant_common_step_02.wav"); - // PrecacheSound("^mvm/giant_common/giant_common_step_03.wav"); - // PrecacheSound("^mvm/giant_common/giant_common_step_04.wav"); - // PrecacheSound("^mvm/giant_common/giant_common_step_05.wav"); - // PrecacheSound("^mvm/giant_common/giant_common_step_06.wav"); - // PrecacheSound("^mvm/giant_common/giant_common_step_07.wav"); - // PrecacheSound("^mvm/giant_common/giant_common_step_08.wav"); - - -} - public Action:SetModel(client, const String:model[]) { if (IsValidClient(client) && IsPlayerAlive(client)) @@ -143,7 +118,6 @@ MakeSniper(client) TF2Attrib_SetByName(client, "cancel falling damage", 1.0); TF2Attrib_SetByName(client, "patient overheal penalty", 0.15); TF2Attrib_SetByName(client, "deploy time decreased", 0.05); - // TF2Attrib_SetByName(client, "move speed penalty", 0.85); TF2Attrib_SetByName(client, "override footstep sound set", 2.0); TF2Attrib_SetByName(client, "ammo regen", 100.0); TF2Attrib_SetByName(client, "major increased jump height", 1.25); @@ -175,13 +149,6 @@ public Action:Timer_Switch(Handle:timer, any:client) GiveBigRoboHuntsbot(client); } -// public Action:Timer_Resize(Handle:timer, any:hat) -// { - // if (IsValidClient(client)) - // GiveBigRoboHuntsbot(client); -// } - - #define KingTavish 342 stock GiveBigRoboHuntsbot(client) @@ -197,7 +164,6 @@ stock GiveBigRoboHuntsbot(client) CreateRoboWeapon(client, "tf_weapon_jar", 58, 6, 1, 1, 0); - CreateRoboWeapon(client, "tf_weapon_club", 232, 6, 1, 2, 0); //shahansah CreateRoboHat(client, KingTavish, 10, 6, 0.0, 1.25, 1.0); @@ -207,23 +173,10 @@ stock GiveBigRoboHuntsbot(client) int Kukri = GetPlayerWeaponSlot(client, TFWeaponSlot_Melee); //Shahanshah int SMG = GetPlayerWeaponSlot(client, TFWeaponSlot_Secondary); //SMG - // int iEnt = -1; - // while ((iEnt = FindEntityByClassname(iEnt, "tf_wearable")) != -1) - // { - // if (GetEntPropEnt(iEnt, Prop_Send, "m_hOwnerEntity") == client && GetEntProp(iEnt, Prop_Send, "m_iItemDefinitionIndex") == 31037) - // { - // // PrintToChatAll("ENT %i", iEnt); - // // SetEntityRenderFx(iEnt, 0); - // SetEntityRenderColor(iEnt, 128, 128, 128, 0); - - // } - // } if(IsValidEntity(SMG)) { TF2Attrib_RemoveAll(SMG); - TF2Attrib_SetByName(SMG, "provide on active", 1.0); - // TF2Attrib_SetByName(SMG, "move speed penalty", 0.5); TF2Attrib_SetByName(SMG, "effect bar recharge rate increased", 0.4); } @@ -231,47 +184,18 @@ stock GiveBigRoboHuntsbot(client) if(IsValidEntity(Kukri)) { TF2Attrib_RemoveAll(Kukri); - TF2Attrib_SetByName(Kukri, "killstreak tier", 1.0); TF2Attrib_SetByName(Kukri, "fire rate bonus", 0.8); - // TF2Attrib_SetByName(Kukri, "dmg penalty vs players", 1.75); TF2Attrib_SetByName(Kukri, "dmg penalty vs buildings", 0.25); - // TF2Attrib_SetByName(Kukri, "speed_boost_on_kill", 2.0); TF2Attrib_SetByName(Kukri, "dmg taken increased", 1.0); - // TF2Attrib_SetByName(Kukri, "heal on kill", 125.0); } } - - } public void TF2_OnConditionAdded(int client, TFCond condition) { - if (IsRobot(client, ROBOT_NAME) && condition == TFCond_Jarated) { - // TF2_AddCondition(client, TFCond_CritCanteen, 3.0); - // TF2_AddCondition(client, TFCond_DefenseBuffNoCritBlock, 3.0); TF2_AddCondition(client, TFCond_SpeedBuffAlly, 4.0); - - } - -} - - -// public void OnEntityCreated(int iEntity, const char[] sClassName) -// { -// if (StrContains(sClassName, "tf_projectile_arrow") == 0) -// { -// PrintToChatAll("Hooked arrow"); -// SDKHook(iEntity, SDKHook_Spawn, Hook_OnProjectileSpawn); -// } - -// } - -// public void Hook_OnProjectileSpawn(iEntity) { -// int iClient = GetEntPropEnt(iEntity, Prop_Data, "m_hOwnerEntity"); -// if (0 < iClient && iClient <= MaxClients && IsRobot(iClient, ROBOT_NAME)) { -// SetEntPropFloat(iEntity, Prop_Send, "m_flModelScale", 5.25); -// } -// } + } +} \ No newline at end of file diff --git a/free_damage_rockets_soldier_bazookajoe.sp b/free_damage_rockets_soldier_bazookajoe.sp index 7adc6b15..380ae3d9 100644 --- a/free_damage_rockets_soldier_bazookajoe.sp +++ b/free_damage_rockets_soldier_bazookajoe.sp @@ -20,9 +20,6 @@ #define SPAWN "#mvm/giant_heavy/giant_heavy_entrance.wav" #define DEATH "mvm/giant_soldier/giant_soldier_explode.wav" #define LOOP "mvm/giant_soldier/giant_soldier_loop.wav" -#define GUNFIRE ")mvm/giant_soldier/giant_soldier_rocket_shoot.wav" -#define GUNFIRE_CRIT ")mvm/giant_soldier/giant_soldier_rocket_shoot_crit.wav" -#define GUNFIRE_EXPLOSION ")mvm/giant_soldier/giant_soldier_rocket_explode.wav" #define THEHELMETWITHOUTANAME 732 @@ -76,54 +73,6 @@ public APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max) return APLRes_Success; } -public OnClientPutInServer(client) -{ - OnClientDisconnect_Post(client); -} - -public OnClientDisconnect_Post(client) -{ - if (IsValidClient(client) && IsRobot(client, ROBOT_NAME)) - { - StopSound(client, SNDCHAN_AUTO, LOOP); - // StopSound(client, SNDCHAN_AUTO, SOUND_GUNFIRE); -// StopSound(client, SNDCHAN_AUTO, SOUND_WINDUP); - - } -} - -public OnMapStart() -{ - - - - - - PrecacheSound(GUNFIRE); - PrecacheSound(GUNFIRE_CRIT); - PrecacheSound(GUNFIRE_EXPLOSION); - - - - - - - - //PrecacheSound(SOUND_GUNFIRE); - //PrecacheSound(SOUND_WINDUP); - -} - -/* public EventInventoryApplication(Handle:event, const String:name[], bool:dontBroadcast) -{ - new client = GetClientOfUserId(GetEventInt(event, "userid")); - - if(g_bIsGSoldier[client]) - { - g_bIsGSoldier[client] = false; - } -} */ - public Action:SetModel(client, const String:model[]) { if (IsValidClient(client) && IsPlayerAlive(client)) @@ -154,16 +103,11 @@ MakeGiantSoldier(client) SetModel(client, GSOLDIER); int iHealth = 3800; - int MaxHealth = 200; - //PrintToChatAll("MaxHealth %i", MaxHealth); - int iAdditiveHP = iHealth - MaxHealth; TF2_SetHealth(client, iHealth); - // PrintToChatAll("iHealth %i", iHealth); - - // PrintToChatAll("iAdditiveHP %i", iAdditiveHP); + SetEntPropFloat(client, Prop_Send, "m_flModelScale", 1.75); SetEntProp(client, Prop_Send, "m_bIsMiniBoss", true); @@ -178,7 +122,6 @@ MakeGiantSoldier(client) TF2Attrib_SetByName(client, "cancel falling damage", 1.0); TF2Attrib_SetByName(client, "patient overheal penalty", 0.15); TF2Attrib_SetByName(client, "self dmg push force increased", 2.0); - //TF2Attrib_SetByName(client, "override footstep sound set", 3.0); TF2Attrib_SetByName(client, "rage giving scale", 0.85); UpdatePlayerHitbox(client, 1.75); @@ -210,7 +153,6 @@ stock GiveGiantSoldier(client) { RoboRemoveAllWearables(client); - TF2_RemoveWeaponSlot(client, 0); TF2_RemoveWeaponSlot(client, 1); TF2_RemoveWeaponSlot(client, 2); @@ -228,7 +170,7 @@ stock GiveGiantSoldier(client) TF2Attrib_SetByName(Weapon1, "killstreak tier", 1.0); TF2Attrib_SetByName(Weapon1, "clip size upgrade atomic", 37.0); TF2Attrib_SetByName(Weapon1, "fire rate bonus", 0.35); - TF2Attrib_SetByName(Weapon1, "faster reload rate", 6.5);e + TF2Attrib_SetByName(Weapon1, "faster reload rate", 6.5); TF2Attrib_SetByName(Weapon1, "projectile speed decreased", 0.7); TF2Attrib_SetByName(Weapon1, "killstreak tier", 1.0); TF2Attrib_SetByName(Weapon1, "dmg penalty vs buildings", 0.35); diff --git a/free_damage_rockets_soldier_dewill.sp b/free_damage_rockets_soldier_dewill.sp index e740a85b..0b64f7ed 100644 --- a/free_damage_rockets_soldier_dewill.sp +++ b/free_damage_rockets_soldier_dewill.sp @@ -29,15 +29,6 @@ #include -public Plugin MyInfo = -{ - name = "[TF2] Artillery Rocket Launcher", - author = "IvoryPal", - description = "Rocket launcher that fires volleys of rockets.", - version = "1.0" -} - - public Plugin:myinfo = { name = "[TF2] Be the DEWILL", @@ -61,8 +52,6 @@ public OnPluginStart() LoadTranslations("common.phrases"); - // HookEvent("post_inventory_application", EventInventoryApplication, EventHookMode_Post); - RobotDefinition robot; robot.name = ROBOT_NAME; robot.role = ROBOT_ROLE; @@ -76,16 +65,7 @@ public OnPluginStart() robot.difficulty = ROBOT_DIFFICULTY_EASY; - - // RestrictionsDefinition restrictions = new RestrictionsDefinition(); - // restrictions.RobotCoins = new RobotCoinRestrictionDefinition(); - // restrictions.RobotCoins.PerRobot = ROBOT_COST; - AddRobot(robot, MakeGiantSoldier, PLUGIN_VERSION, null); - //Artillery Code - - - //HookEvent("post_inventory_application", Event_PlayerResupply); } @@ -101,38 +81,6 @@ public APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max) return APLRes_Success; } -public OnMapStart() -{ - - - - - - // PrecacheSound(GUNFIRE); - // PrecacheSound(GUNFIRE_CRIT); - // PrecacheSound(GUNFIRE_EXPLOSION); - - - - - - - - //PrecacheSound(SOUND_GUNFIRE); - //PrecacheSound(SOUND_WINDUP); - -} - -/* public EventInventoryApplication(Handle:event, const String:name[], bool:dontBroadcast) -{ - new client = GetClientOfUserId(GetEventInt(event, "userid")); - - if(g_bIsGSoldier[client]) - { - g_bIsGSoldier[client] = false; - } -} */ - public Action:SetModel(client, const String:model[]) { if (IsValidClient(client) && IsPlayerAlive(client)) @@ -161,12 +109,8 @@ MakeGiantSoldier(client) } CreateTimer(0.0, Timer_Switch, client); SetModel(client, GSOLDIER); - int iHealth = 3800; - int MaxHealth = 200; - //PrintToChatAll("MaxHealth %i", MaxHealth); - int iAdditiveHP = iHealth - MaxHealth; TF2_SetHealth(client, iHealth); @@ -184,7 +128,6 @@ MakeGiantSoldier(client) SetEntProp(client, Prop_Send, "m_bIsMiniBoss", true); TF2Attrib_SetByName(client, "max health additive bonus", float(iAdditiveHP)); TF2Attrib_SetByName(client, "ammo regen", 100.0); - // TF2Attrib_SetByName(client, "move speed penalty", 0.5); TF2Attrib_SetByName(client, "airblast vulnerability multiplier", 1.0); TF2Attrib_SetByName(client, "damage force reduction", 0.4); float HealthPackPickUpRate = float(MaxHealth) / float(iHealth); @@ -216,7 +159,7 @@ public Action:Timer_Switch(Handle:timer, any:client) } // #define SergeantsDrillHat 183 -// + #define skullcap 30578 #define KringleCollection 650 #define GRAYBANNS 30104 @@ -233,9 +176,7 @@ stock GiveGiantPyro(client) TF2_RemoveWeaponSlot(client, 2); CreateRoboWeapon(client, "tf_weapon_rocketlauncher_airstrike", 1104, 6, 1, 2, 0); - // CreateRoboWeapon(client, "tf_weapon_shotgun_soldier", 10, 6, 1, 2, 0); - //CreateRoboWeapon(client, "tf_weapon_shovel", 416, 6, 1, 2, 0); - + CreateRoboHat(client, skullcap, 10, 6, 0.0, 0.8, -1.0); CreateRoboHat(client, KringleCollection, 10, 6, 0.0, 0.75, -1.0); CreateRoboHat(client, GRAYBANNS, 10, 6, 0.0, 0.8, -1.0); @@ -262,11 +203,8 @@ public Action OnPlayerRunCmd(int client, int& buttons, int& impulse, float vel[3 { if (IsRobot(client, ROBOT_NAME)) { - //0 = fireball - //PrintToChat(client, "Throwing spell!"); if( GetEntProp( client, Prop_Data, "m_afButtonPressed" ) & IN_ATTACK3 ) { - // PrintToChatAll("Press"); g_button_held[client] = true; } @@ -274,7 +212,6 @@ public Action OnPlayerRunCmd(int client, int& buttons, int& impulse, float vel[3 if( GetEntProp( client, Prop_Data, "m_afButtonReleased" ) & IN_ATTACK3 ) { - // PrintToChatAll("Release"); g_button_held[client] = false; } @@ -305,12 +242,7 @@ void EnterRapidFireMode(int client) int Weapon1 = GetPlayerWeaponSlot(client, TFWeaponSlot_Primary); if(IsValidEntity(Weapon1)) { - - // TF2Attrib_SetByName(Weapon1, "faster reload rate", 0.5); - // TF2Attrib_SetByName(Weapon1, "rocket specialist", 1.0); TF2Attrib_SetByName(Weapon1, "fire rate bonus", 0.35); - // TF2Attrib_SetByName(Weapon1, "clip size upgrade atomic", 11.0); - // TF2Attrib_SetByName(Weapon1, "projectile spread angle penalty", 1.0); TF2Attrib_SetByName(Weapon1, "major increased jump height", 0.0); } } @@ -318,13 +250,11 @@ void EnterRapidFireMode(int client) void ResetWeapon(int client) { g_FireMode = false; - //PrintCenterText(client, "Exiting Firing mode"); TF2Attrib_AddCustomPlayerAttribute(client, "move speed penalty", 0.5); TF2_AddCondition(client, TFCond_SpeedBuffAlly, 0.1); g_skill_time = g_skill + g_skill_cooldown; - // PrintToChatAll("Gskill time: %f", g_skill_time); - // PrintToChatAll("Gskill: %f", g_skill); + int Weapon1 = GetPlayerWeaponSlot(client, TFWeaponSlot_Primary); if(IsValidEntity(Weapon1)) @@ -335,27 +265,22 @@ void ResetWeapon(int client) TF2Attrib_SetByName(Weapon1, "maxammo primary increased", 2.5); TF2Attrib_SetByName(Weapon1, "killstreak tier", 1.0); TF2Attrib_SetByName(Weapon1, "faster reload rate", 1.5); - // TF2Attrib_SetByName(Weapon1, "rocket specialist", 1.0); + TF2Attrib_SetByName(Weapon1, "Projectile speed increased", 0.85); TF2Attrib_SetByName(Weapon1, "clip size upgrade atomic", 4.0); TF2Attrib_SetByName(Weapon1, "major increased jump height", 1.0); TF2Attrib_SetByName(Weapon1, "dmg penalty vs buildings", 0.5); - // TF2Attrib_SetByName(Weapon1, "projectile spread angle penalty", 0.0); TF2CustAttr_SetString(Weapon1, "reload full clip at once", "1.0"); } } -// #define CHAR_FULL "■" -// #define CHAR_EMPTY "□" void DrawHUD(int client) { char sHUDText[128]; - // char sProgress[32]; - // int iPercents = RoundToCeil(g_skill / g_skill_time * 100.0); int iCountDown = RoundToCeil(g_skill_time - g_skill); int iCountDownFiring = RoundToCeil(FireModeTimer - g_skill); @@ -395,5 +320,5 @@ void DrawHUD(int client) ShowHudText(client, -3, sHUDText); - // b_hud_clamp[client] = false; + } diff --git a/free_damage_rockets_soldier_drgrordbot.sp b/free_damage_rockets_soldier_drgrordbot.sp index 1f51f1b1..ca4a7886 100644 --- a/free_damage_rockets_soldier_drgrordbot.sp +++ b/free_damage_rockets_soldier_drgrordbot.sp @@ -102,12 +102,8 @@ MakeGiantSoldier(client) SetModel(client, GSOLDIER); int iHealth = 3800; - int MaxHealth = 200; - //PrintToChatAll("MaxHealth %i", MaxHealth); - int iAdditiveHP = iHealth - MaxHealth; - TF2_SetHealth(client, iHealth); float OverHealRate = 1.5; @@ -128,7 +124,6 @@ MakeGiantSoldier(client) TF2Attrib_SetByName(client, "health from packs decreased", HealthPackPickUpRate); TF2Attrib_SetByName(client, "cancel falling damage", 1.0); TF2Attrib_SetByName(client, "self dmg push force increased", 2.0); - //TF2Attrib_SetByName(client, "override footstep sound set", 3.0); TF2Attrib_SetByName(client, "head scale", 0.75); TF2Attrib_SetByName(client, "rage giving scale", 0.85); UpdatePlayerHitbox(client, 1.75); @@ -167,20 +162,9 @@ stock GiveGiantPyro(client) TF2_RemoveWeaponSlot(client, 1); TF2_RemoveWeaponSlot(client, 2); CreateRoboWeapon(client, "tf_weapon_particle_cannon", 441, 6, 1, 2, 0); - // CreateRoboWeapon(client, "tf_weapon_raygun", 442, 6, 1, 2, 0); -// CreateWeapon(client, "tf_weapon_shovel", 447, 6, 1, 2, 0); - CreateRoboHat(client, LordCockswain, 10, 6, 0.0, 1.0, -1.0); CreateRoboHat(client, Pipe, 10, 6, 0.0, 1.0, -1.0); - // CreateRoboHat(client, Professorspeks, 10, 6, 0.0, 0.75, 1.0); - - // CreateHat(client, 183, 10, 6, true); //Sergeant's Drill Hat - // CreateHat(client, 647, 10, 6, true); //The All-Father - // CreateHat(client, 343, 10, 6, true);//Professor speks - int Weapon1 = GetPlayerWeaponSlot(client, TFWeaponSlot_Primary); - //int Weapon2 = GetPlayerWeaponSlot(client, TFWeaponSlot_Melee); - // TF2Attrib_SetByName(client, "gesture speed increase", 10.0); if(IsValidEntity(Weapon1)) { TF2Attrib_RemoveAll(Weapon1); @@ -196,23 +180,7 @@ stock GiveGiantPyro(client) } int Weapon2 = GetPlayerWeaponSlot(client, TFWeaponSlot_Secondary); - //int Weapon2 = GetPlayerWeaponSlot(client, TFWeaponSlot_Melee); - - // if(IsValidEntity(Weapon2)) - // { - // TF2Attrib_RemoveAll(Weapon2); - - // TF2Attrib_SetByName(Weapon2, "dmg penalty vs players", 3.0); - // TF2Attrib_SetByName(Weapon2, "killstreak tier", 1.0); - // TF2Attrib_SetByName(Weapon2, "Projectile speed increased", 2.0); - // TF2Attrib_SetByName(Weapon2, "clip size bonus upgrade", 3.0); - // TF2Attrib_SetByName(Weapon2, "fire rate bonus", 0.4); - // TF2Attrib_SetByName(Weapon2, "faster reload rate", 0.2); - // TF2Attrib_SetByName(Weapon2, "killstreak tier", 1.0); - // // TF2Attrib_SetByName(Weapon2, "auto fires full clip all at once", 1.0); - - // } } @@ -226,18 +194,9 @@ public Action TF2_OnTakeDamage(int victim, int &attacker, int &inflictor, float { if(IsValidClient(attacker) &&IsValidClient(victim)) { - // PrintToChatAll("Attacker was %N , victim was %N weapon was %i", attacker, victim, weapon); - // PrintToChatAll("damagecustom was %i , damage type was %i", damagecustom, damagetype); - if(IsRobot(attacker,ROBOT_NAME) && damagecustom == TF_CUSTOM_SPELL_LIGHTNING) { - // PrintToChatAll("damage before change %f", damage); damage *= 0.1; - // PrintToChatAll("damage after change %f", damage); - //critType = CritType_None; - // damageForce[0] == -10.0; - // damageForce[1] == -10.0; - // damageForce[2] == -10.0; return Plugin_Handled; } } diff --git a/free_damage_rockets_soldier_icebear.sp b/free_damage_rockets_soldier_icebear.sp index 6c62b3d5..3abfec9d 100644 --- a/free_damage_rockets_soldier_icebear.sp +++ b/free_damage_rockets_soldier_icebear.sp @@ -20,11 +20,6 @@ #define DEATH "mvm/giant_soldier/giant_soldier_explode.wav" #define LOOP "mvm/giant_soldier/giant_soldier_loop.wav" -#define LEFTFOOT ")mvm/giant_soldier/giant_soldier_step01.wav" -#define LEFTFOOT1 ")mvm/giant_soldier/giant_soldier_step03.wav" -#define RIGHTFOOT ")mvm/giant_soldier/giant_soldier_step02.wav" -#define RIGHTFOOT1 ")mvm/giant_soldier/giant_soldier_step04.wav" - #define GUNFIRE ")mvm/giant_soldier/giant_soldier_rocket_shoot.wav" #define GUNFIRE_CRIT ")mvm/giant_soldier/giant_soldier_rocket_shoot_crit.wav" #define GUNFIRE_EXPLOSION ")mvm/giant_soldier/giant_soldier_rocket_explode.wav" @@ -51,10 +46,6 @@ public OnPluginStart() SMLoggerInit(LOG_TAGS, sizeof(LOG_TAGS), SML_ERROR, SML_FILE); LoadTranslations("common.phrases"); - - // HookEvent("post_inventory_application", EventInventoryApplication, EventHookMode_Post); - // AddNormalSoundHook(BossIcebear); - RobotDefinition robot; robot.name = ROBOT_NAME; robot.role = ROBOT_ROLE; @@ -84,37 +75,6 @@ public APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max) return APLRes_Success; } -public OnMapStart() -{ - - - - - - PrecacheSound(GUNFIRE); - PrecacheSound(GUNFIRE_CRIT); - PrecacheSound(GUNFIRE_EXPLOSION); - - - - - - - - //PrecacheSound(SOUND_GUNFIRE); - //PrecacheSound(SOUND_WINDUP); - -} - -/* public EventInventoryApplication(Handle:event, const String:name[], bool:dontBroadcast) -{ - new client = GetClientOfUserId(GetEventInt(event, "userid")); - - if(g_bIsGSoldier[client]) - { - g_bIsGSoldier[client] = false; - } -} */ public Action:SetModel(client, const String:model[]) { @@ -127,45 +87,7 @@ public Action:SetModel(client, const String:model[]) } } -// public Action:BossIcebear(clients[64], &numClients, String:sample[PLATFORM_MAX_PATH], &entity, &channel, &Float:volume, &level, &pitch, &flags) -// { -// if (!IsValidClient(entity)) return Plugin_Continue; -// if (!IsRobot(entity, ROBOT_NAME)) return Plugin_Continue; - -// if (strncmp(sample, ")weapons/", 9, false) == 0) -// { -// if (StrContains(sample, "rocket_shoot.wav", false) != -1) -// { -// Format(sample, sizeof(sample), GUNFIRE); -// EmitSoundToAll(sample, entity); - -// } -// else if (StrContains(sample, "rocket_shoot_crit.wav", false) != -1) -// { -// Format(sample, sizeof(sample), GUNFIRE_CRIT); -// EmitSoundToAll(sample, entity); -// } - -// //Explosion doesnæt quite work -// /* else if (StrContains(sample, "explode1.wav", false) != -1) -// { -// Format(sample, sizeof(sample), GUNFIRE_EXPLOSION); -// EmitSoundToAll(sample, entity); -// } -// else if (StrContains(sample, "explode2.wav", false) != -1) -// { -// Format(sample, sizeof(sample), GUNFIRE_EXPLOSION); -// EmitSoundToAll(sample, entity); -// } -// else if (StrContains(sample, "explode3.wav", false) != -1) -// { -// Format(sample, sizeof(sample), GUNFIRE_EXPLOSION); -// EmitSoundToAll(sample, entity); -// } */ -// return Plugin_Changed; -// } -// if (volume == 0.0 || volume == 0.9997) return Plugin_Continue; -// } + MakeGiantSoldier(client) { @@ -186,10 +108,7 @@ MakeGiantSoldier(client) SetModel(client, GSOLDIER); int iHealth = 3800; - int MaxHealth = 200; - //PrintToChatAll("MaxHealth %i", MaxHealth); - int iAdditiveHP = iHealth - MaxHealth; TF2_SetHealth(client, iHealth); @@ -213,7 +132,6 @@ MakeGiantSoldier(client) TF2Attrib_SetByName(client, "health from packs decreased", HealthPackPickUpRate); TF2Attrib_SetByName(client, "cancel falling damage", 1.0); TF2Attrib_SetByName(client, "self dmg push force increased", 2.0); - //TF2Attrib_SetByName(client, "override footstep sound set", 3.0); TF2Attrib_SetByName(client, "rage giving scale", 0.85); UpdatePlayerHitbox(client, 1.75); @@ -254,18 +172,11 @@ stock GiveGiantPyro(client) TF2_RemoveWeaponSlot(client, 2); CreateRoboWeapon(client, "tf_weapon_rocketlauncher", 15006, 6, 1, 2, 0); -// CreateWeapon(client, "tf_weapon_shovel", 447, 6, 1, 2, 0); - CreateRoboHat(client, SergeantsDrillHat, 10, 6, 0.0, 0.75, -1.0); CreateRoboHat(client, TheAllFather, 10, 6, 0.0, 1.0, -1.0); CreateRoboHat(client, Professorspeks, 10, 6, 0.0, 0.75, 1.0); - - // CreateHat(client, 183, 10, 6, true); //Sergeant's Drill Hat - // CreateHat(client, 647, 10, 6, true); //The All-Father - // CreateHat(client, 343, 10, 6, true);//Professor speks int Weapon1 = GetPlayerWeaponSlot(client, TFWeaponSlot_Primary); - //int Weapon2 = GetPlayerWeaponSlot(client, TFWeaponSlot_Melee); if(IsValidEntity(Weapon1)) { @@ -274,7 +185,6 @@ stock GiveGiantPyro(client) TF2Attrib_SetByName(Weapon1, "dmg penalty vs players", 0.9); TF2Attrib_SetByName(Weapon1, "maxammo primary increased", 2.5); TF2Attrib_SetByName(Weapon1, "killstreak tier", 1.0); - // TF2Attrib_SetByName(Weapon1, "clipsize increase on kill", 4.0); TF2Attrib_SetByName(Weapon1, "clip size upgrade atomic", 5.0); TF2Attrib_SetByName(Weapon1, "fire rate bonus", 0.7); TF2Attrib_SetByName(Weapon1, "faster reload rate", 2.0); @@ -283,14 +193,6 @@ stock GiveGiantPyro(client) TF2Attrib_SetByName(Weapon1, "dmg penalty vs buildings", 0.5); TF2CustAttr_SetString(Weapon1, "reload full clip at once", "1.0"); - - //TF2Attrib_SetByName(Weapon1, "reload full clip at once", 1.0); - - - // SetEntProp(Weapon1, Prop_Send, "m_bInReload", 1.0); - - // TF2Attrib_SetByName(Weapon1, "disable fancy class select anim", 1.0); - } diff --git a/free_damage_rockets_soldier_ivory.sp b/free_damage_rockets_soldier_ivory.sp index 6e69821b..1a9e103e 100644 --- a/free_damage_rockets_soldier_ivory.sp +++ b/free_damage_rockets_soldier_ivory.sp @@ -23,12 +23,6 @@ #define DEATH "mvm/giant_soldier/giant_soldier_explode.wav" #define LOOP "mvm/giant_soldier/giant_soldier_loop.wav" -#define LEFTFOOT ")mvm/giant_soldier/giant_soldier_step01.wav" -#define LEFTFOOT1 ")mvm/giant_soldier/giant_soldier_step03.wav" -#define RIGHTFOOT ")mvm/giant_soldier/giant_soldier_step02.wav" -#define RIGHTFOOT1 ")mvm/giant_soldier/giant_soldier_step04.wav" - - #define ExplodeSound "ambient/explosions/explode_8.wav" #define SENTRYROCKETS "models/buildables/sentry3_rockets.mdl" @@ -54,7 +48,6 @@ ConVar g_rocketDiverge; #define GUNFIRE "weapons/sentry_rocket.wav" #define GUNFIRE_CRIT "weapons/sentry_rocket.wav" -// #define GUNFIRE_EXPLOSION ")mvm/giant_soldier/giant_soldier_rocket_explode.wav" public Plugin:myinfo = { @@ -79,7 +72,6 @@ public OnPluginStart() LoadTranslations("common.phrases"); - // HookEvent("post_inventory_application", EventInventoryApplication, EventHookMode_Post); RobotDefinition robot; robot.name = ROBOT_NAME; @@ -113,12 +105,7 @@ public OnPluginStart() ExplodeSprite = PrecacheModel("sprites/sprite_fire01.vmt"); PrecacheSound(ExplodeSound); - //Events - // AddCommandListener(MirvModeToggle, "+use"); - // AddCommandListener(MirvModeToggle, "+attack2"); - // AddCommandListener(MirvModeToggle, "+reload"); - //RegConsoleCmd("sm_mirv", CmdControl); for (int client = 1; client <= MaxClients; client++) { @@ -152,16 +139,6 @@ public OnMapStart() PrecacheSound(GUNFIRE); PrecacheSound(GUNFIRE_CRIT); - // PrecacheSound(GUNFIRE_EXPLOSION); - - - - - - - - //PrecacheSound(SOUND_GUNFIRE); - //PrecacheSound(SOUND_WINDUP); ExplodeSprite = PrecacheModel("sprites/sprite_fire01.vmt"); glow = PrecacheModel("materials/sprites/laser.vmt"); @@ -169,15 +146,6 @@ public OnMapStart() PrecacheModel(SENTRYROCKETS); } -/* public EventInventoryApplication(Handle:event, const String:name[], bool:dontBroadcast) -{ - new client = GetClientOfUserId(GetEventInt(event, "userid")); - - if(g_bIsGSoldier[client]) - { - g_bIsGSoldier[client] = false; - } -} */ public Action:SetModel(client, const String:model[]) { @@ -209,11 +177,8 @@ MakeGiantSoldier(client) CreateTimer(0.0, Timer_Switch, client); SetModel(client, GSOLDIER); - int iHealth = 3800; - + int iHealth = 3800; int MaxHealth = 200; - //PrintToChatAll("MaxHealth %i", MaxHealth); - int iAdditiveHP = iHealth - MaxHealth; TF2_SetHealth(client, iHealth); @@ -238,12 +203,10 @@ MakeGiantSoldier(client) float HealthPackPickUpRate = float(MaxHealth) / float(iHealth); TF2Attrib_SetByName(client, "health from packs decreased", HealthPackPickUpRate); TF2Attrib_SetByName(client, "cancel falling damage", 1.0); - //TF2Attrib_SetByName(client, "cancel falling damage", 1.0); TF2Attrib_SetByName(client, "self dmg push force increased", 2.0); // TF2Attrib_SetByName(client, "head scale", 0.75); TF2Attrib_SetByName(client, "rage giving scale", 0.85); - //TF2Attrib_SetByName(client, "head scale", 0.5); UpdatePlayerHitbox(client,scale); TF2_RemoveCondition(client, TFCond_CritOnFirstBlood); @@ -299,8 +262,7 @@ stock GiveGiantPyro(client) TF2Attrib_SetByName(Weapon1, "killstreak tier", 1.0); TF2Attrib_SetByName(Weapon1, "faster reload rate", 3.0); TF2Attrib_SetByName(Weapon1, "fire rate penalty", 1.15); - TF2Attrib_SetByName(Weapon1, "clip size upgrade atomic", 2.0); - // TF2Attrib_SetByName(Weapon1, "Projectile speed decreased", 0.75); + TF2Attrib_SetByName(Weapon1, "clip size upgrade atomic", 2.0); TF2Attrib_SetByName(Weapon1, "dmg penalty vs buildings", 0.15); TF2CustAttr_SetString(Weapon1, "reload full clip at once", "1.0"); } diff --git a/free_damage_rockets_soldier_shounic.sp b/free_damage_rockets_soldier_shounic.sp index eaf1b3d0..6202eb28 100644 --- a/free_damage_rockets_soldier_shounic.sp +++ b/free_damage_rockets_soldier_shounic.sp @@ -22,11 +22,6 @@ #define DEATH "mvm/giant_soldier/giant_soldier_explode.wav" #define LOOP "mvm/giant_soldier/giant_soldier_loop.wav" -#define LEFTFOOT ")mvm/giant_soldier/giant_soldier_step01.wav" -#define LEFTFOOT1 ")mvm/giant_soldier/giant_soldier_step03.wav" -#define RIGHTFOOT ")mvm/giant_soldier/giant_soldier_step02.wav" -#define RIGHTFOOT1 ")mvm/giant_soldier/giant_soldier_step04.wav" - #define GUNFIRE ")mvm/giant_soldier/giant_soldier_rocket_shoot.wav" #define GUNFIRE_CRIT ")mvm/giant_soldier/giant_soldier_rocket_shoot_crit.wav" #define GUNFIRE_EXPLOSION ")mvm/giant_soldier/giant_soldier_rocket_explode.wav" @@ -75,7 +70,6 @@ enum struct Rocket } Rocket Launcher[2049]; // :) -// bool Enabled[MAXPLAYERS+1]; bool RemoteRocket[2049]; bool OtherRocket[2049]; @@ -100,7 +94,7 @@ public OnPluginStart() LoadTranslations("common.phrases"); - // HookEvent("post_inventory_application", EventInventoryApplication, EventHookMode_Post); + RobotDefinition robot; robot.name = ROBOT_NAME; @@ -145,30 +139,12 @@ public OnMapStart() PrecacheSound(GUNFIRE_CRIT); PrecacheSound(GUNFIRE_EXPLOSION); - - - - - - - - RocketModel = PrecacheModel(ROCKETMODEL); - //PrecacheSound(SOUND_GUNFIRE); - //PrecacheSound(SOUND_WINDUP); } -/* public EventInventoryApplication(Handle:event, const String:name[], bool:dontBroadcast) -{ - new client = GetClientOfUserId(GetEventInt(event, "userid")); - if(g_bIsGSoldier[client]) - { - g_bIsGSoldier[client] = false; - } -} */ public Action:SetModel(client, const String:model[]) { @@ -201,10 +177,7 @@ MakeGiantSoldier(client) SetModel(client, GSOLDIER); int iHealth = 3800; - int MaxHealth = 200; - //PrintToChatAll("MaxHealth %i", MaxHealth); - int iAdditiveHP = iHealth - MaxHealth; TF2_SetHealth(client, iHealth); @@ -228,8 +201,7 @@ MakeGiantSoldier(client) TF2Attrib_SetByName(client, "health from packs decreased", HealthPackPickUpRate); TF2Attrib_SetByName(client, "cancel falling damage", 1.0); TF2Attrib_SetByName(client, "self dmg push force increased", 2.0); - //TF2Attrib_SetByName(client, "override footstep sound set", 3.0); - + TF2Attrib_SetByName(client, "rage giving scale", 0.85); UpdatePlayerHitbox(client, 1.75); @@ -268,44 +240,26 @@ stock GiveGiantPyro(client) TF2_RemoveWeaponSlot(client, 1); TF2_RemoveWeaponSlot(client, 2); CreateRoboWeapon(client, "tf_weapon_rocketlauncher", 18, 6, 1, 2, 0); - -// CreateWeapon(client, "tf_weapon_shovel", 447, 6, 1, 2, 0); - + CreateRoboHat(client, TyrantHelm, 10, 6, 0.0, 0.95, -1.0); CreateRoboHat(client, ColdSnapCoat, 10, 6, 0.0, 1.0, -1.0); CreateRoboHat(client, LordCockswainsNoveltyMuttonChopsandPipe, 10, 6, 0.0, 0.75, 1.0); - - // CreateHat(client, 183, 10, 6, true); //Sergeant's Drill Hat - // CreateHat(client, 647, 10, 6, true); //The All-Father - // CreateHat(client, 343, 10, 6, true);//Professor speks int Weapon1 = GetPlayerWeaponSlot(client, TFWeaponSlot_Primary); - //int Weapon2 = GetPlayerWeaponSlot(client, TFWeaponSlot_Melee); - + if(IsValidEntity(Weapon1)) { TF2Attrib_RemoveAll(Weapon1); - // TF2Attrib_SetByName(Weapon1, "dmg penalty vs players", 0.8); TF2Attrib_SetByName(Weapon1, "maxammo primary increased", 2.5); TF2Attrib_SetByName(Weapon1, "killstreak tier", 1.0); TF2Attrib_SetByName(Weapon1, "clip size penalty", 0.25); - //TF2Attrib_SetByName(Weapon1, "clip size upgrade atomic", 2.0); - // TF2Attrib_SetByName(Weapon1, "fire rate bonus", 1.1); TF2Attrib_SetByName(Weapon1, "faster reload rate", 1.75); TF2Attrib_SetByName(Weapon1, "killstreak tier", 1.0); - //TF2Attrib_SetByName(Weapon1, "rocket specialist", 1.0); TF2Attrib_SetByName(Weapon1, "dmg penalty vs buildings", 0.25); TF2Attrib_SetByName(Weapon1, "projectile speed decreased", 0.20); - - // TF2CustAttr_SetString(Weapon1, "reload full clip at once", "1.0"); RoboCorrectClipSize(Weapon1); - //TF2Attrib_SetByName(Weapon1, "reload full clip at once", 1.0); - - - // SetEntProp(Weapon1, Prop_Send, "m_bInReload", 1.0); - - // TF2Attrib_SetByName(Weapon1, "disable fancy class select anim", 1.0); + } diff --git a/free_disruptor_demoman_SAM.sp b/free_disruptor_demoman_SAM.sp index 4bf1fbb4..d60b6979 100644 --- a/free_disruptor_demoman_SAM.sp +++ b/free_disruptor_demoman_SAM.sp @@ -46,7 +46,6 @@ public OnPluginStart() robot.difficulty = ROBOT_DIFFICULTY_EASY; AddRobot(robot, MakeDemoKnight, PLUGIN_VERSION, null); - // HookEvent("player_death", Event_Death, EventHookMode_Post); } public void OnPluginEnd() @@ -61,48 +60,6 @@ public APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max) return APLRes_Success; } -// public Event_Death(Event event, const char[] name, bool dontBroadcast) -// { -// int victim = GetClientOfUserId(GetEventInt(event, "userid")); - -// if (IsRobotWhenDead(victim, ROBOT_NAME)) -// { -// char weaponName[32]; -// GetEventString(event, "weapon", weaponName, sizeof(weaponName)); - - -// // int weaponid = GetEventInt(event, "weaponid"); -// // PrintToChatAll("%i a ", weaponid); -// //PrintToChatAll("%i", GetEventInt(event, "weaponid")); -// // if (weaponid == -1) return; - -// //int weapondef = GetEntProp(weaponid, Prop_Send, "m_iItemDefinitionIndex"); - -// if (StrEqual(weaponName, "demokatana"))//If killed by katana you respawn faster -// { -// //PrintToChatAll("%N was killed by weapon id %i which was named %s", victim, weaponid, weaponName); - -// CreateTimer(4.0, Timer_Respawn, victim); -// } - - - - -// } - - -// } - -// public Action Timer_Respawn(Handle timer, any client) -// { -// //PrintToChatAll("Timebomb: %i", g_TimeBombTime[client]); -// if (IsValidClient(client) && !IsPlayerAlive(client)) -// { -// TF2_RespawnPlayer(client); -// //PrintToChat(client,"You have instant respawn as scout"); -// } -// return Plugin_Continue; -// } public Action:SetModel(client, const String:model[]) { @@ -133,18 +90,11 @@ MakeDemoKnight(client) SetModel(client, GDEKNIGHT); int iHealth = 2175; - - int MaxHealth = 175; float OverHealRate = 1.5; -// PrintToChatAll("MaxHealth %i", MaxHealth); - int iAdditiveHP = iHealth - MaxHealth; TF2_SetHealth(client, iHealth); -// PrintToChatAll("iHealth %i", iHealth); - - // PrintToChatAll("iAdditiveHP %i", iAdditiveHP); float OverHeal = float(MaxHealth) * OverHealRate; float TotalHealthOverHeal = iHealth * OverHealRate; @@ -162,8 +112,6 @@ MakeDemoKnight(client) TF2Attrib_SetByName(client, "move speed penalty", 0.6); TF2Attrib_SetByName(client, "airblast vulnerability multiplier", 1.15); TF2Attrib_SetByName(client, "cancel falling damage", 1.0); - //TF2Attrib_SetByName(client, "override footstep sound set", 4.0); - // TF2Attrib_SetByName(client, "charge impact damage increased", 2.5); TF2Attrib_SetByName(client, "rage giving scale", 0.85); UpdatePlayerHitbox(client, 1.75); @@ -215,7 +163,6 @@ stock GiveGiantDemoKnight(client) { if (client == GetEntPropEnt(iEntity2, Prop_Data, "m_hOwnerEntity")) { - //PrintToChatAll("going through entity"); TF2Attrib_SetByName(iEntity2, "major increased jump height", 1.65); TF2Attrib_SetByName(iEntity2, "lose demo charge on damage when charging", 0.0); TF2Attrib_SetByName(iEntity2, "dmg taken from fire reduced", 1.0); @@ -228,17 +175,16 @@ stock GiveGiantDemoKnight(client) int Weapon3 = GetPlayerWeaponSlot(client, TFWeaponSlot_Melee); if(IsValidEntity(Weapon3)) { - //TF2Attrib_RemoveAll(Weapon3); + - TF2Attrib_SetByName(Weapon3, "killstreak tier", 1.0); - //TF2Attrib_SetByName(Weapon3, "charge meter on hit", 0.25); + TF2Attrib_SetByName(Weapon3, "killstreak tier", 1.0); TF2Attrib_SetByName(Weapon3, "charge time increased", 3.0); TF2Attrib_SetByName(Weapon3, "damage bonus", 1.25); TF2Attrib_SetByName(Weapon3, "mult charge turn control", 10.0); TF2Attrib_SetByName(Weapon3, "charge meter on hit", 1.0); TF2Attrib_SetByName(Weapon3, "restore health on kill", 10.0); TF2Attrib_SetByName(Weapon3, "dmg penalty vs buildings", 0.25); - // TF2Attrib_SetByName(Weapon3, "minicrits become crits", 1.0); + } } } diff --git a/free_disruptor_demoman_toofty.sp b/free_disruptor_demoman_toofty.sp index a0f791a3..17a487f7 100644 --- a/free_disruptor_demoman_toofty.sp +++ b/free_disruptor_demoman_toofty.sp @@ -22,12 +22,6 @@ #define DEATH "mvm/sentrybuster/mvm_sentrybuster_explode.wav" #define LOOP "mvm/giant_demoman/giant_demoman_loop.wav" -#define LEFTFOOT ")mvm/giant_demoman/giant_demoman_step_01.wav" -#define LEFTFOOT1 ")mvm/giant_demoman/giant_demoman_step_03.wav" -#define RIGHTFOOT ")mvm/giant_demoman/giant_demoman_step_02.wav" -#define RIGHTFOOT1 ")mvm/giant_demoman/giant_demoman_step_04.wav" - - public Plugin:myinfo = { name = "[TF2] Be the Giant Toofty", @@ -119,7 +113,6 @@ MakeToofty(client) TF2Attrib_SetByName(client, "head scale", 0.8); TF2Attrib_SetByName(client, "ammo regen", 100.0); TF2Attrib_SetByName(client, "rage giving scale", 0.85); - //TF2Attrib_SetByName(client, "increased jump height", 0.3); TF2CustAttr_SetString(client, "fall-damage", "static-damage=1 static-damage-stomp=1 fall-damage=100.0 stomp-damage=125.0"); @@ -157,9 +150,6 @@ stock GiveGiantToofty(client) TF2_RemoveWeaponSlot(client, 0); TF2_RemoveWeaponSlot(client, 1); TF2_RemoveWeaponSlot(client, 2); - // TF2_RemoveWeaponSlot(client, 3); - // TF2_RemoveWeaponSlot(client, 4); - // TF2_RemoveWeaponSlot(client, 5); CreateRoboWeapon(client, "tf_weapon_grenadelauncher", 1151, 8, 1, 0, 213); CreateRoboWeapon(client, "tf_weapon_pipebomblauncher", 265, 6, 1, 1, 0); @@ -172,8 +162,6 @@ stock GiveGiantToofty(client) int Weapon1 = GetPlayerWeaponSlot(client, TFWeaponSlot_Primary); if(IsValidEntity(Weapon1)) { - - // TF2Attrib_SetByName(Weapon1, "damage penalty", 0.85); TF2Attrib_SetByName(Weapon1, "maxammo primary increased", 2.5); TF2Attrib_SetByName(Weapon1, "killstreak tier", 1.0); TF2Attrib_SetByName(Weapon1, "faster reload rate", 1.35); @@ -183,7 +171,7 @@ stock GiveGiantToofty(client) TF2Attrib_SetByName(Weapon1, "is_festivized", 1.0); TF2CustAttr_SetString(Weapon1, "reload full clip at once", "1.0"); - // TF2CustAttr_SetString(client, "projectile-size", "size=1.75 update-hitbox=1"); + } int Weapon3 = GetPlayerWeaponSlot(client, TFWeaponSlot_Secondary); diff --git a/free_disruptor_heavy_hoovy.sp b/free_disruptor_heavy_hoovy.sp index 82cabd25..0c1f3571 100644 --- a/free_disruptor_heavy_hoovy.sp +++ b/free_disruptor_heavy_hoovy.sp @@ -28,11 +28,6 @@ #define SOUND_WINDUP ")mvm/giant_heavy/giant_heavy_gunwindup.wav" #define SOUND_WINDDOWN ")mvm/giant_heavy/giant_heavy_gunwinddown.wav" -#define LEFTFOOT ")mvm/giant_heavy/giant_heavy_step01.wav" -#define LEFTFOOT1 ")mvm/giant_heavy/giant_heavy_step03.wav" -#define RIGHTFOOT ")mvm/giant_heavy/giant_heavy_step02.wav" -#define RIGHTFOOT1 ")mvm/giant_heavy/giant_heavy_step04.wav" - #define sBoomNoise1 "weapons/tacky_grenadier_explode1.wav" #define sBoomNoise2 "weapons/tacky_grenadier_explode2.wav" #define sBoomNoise3 "weapons/tacky_grenadier_explode3.wav" @@ -65,10 +60,6 @@ public OnPluginStart() robot.shortDescription = ROBOT_DESCRIPTION; robot.sounds.spawn = SPAWN; robot.sounds.loop = LOOP; - robot.sounds.gunfire = SOUND_GUNFIRE; - robot.sounds.gunspin = SOUND_GUNSPIN; - robot.sounds.windup = SOUND_WINDUP; - robot.sounds.winddown = SOUND_WINDDOWN; robot.sounds.death = DEATH; robot.deathtip = ROBOT_ON_DEATH; robot.difficulty = ROBOT_DIFFICULTY_EASY; @@ -141,10 +132,6 @@ MakeGDeflectorH(client) TF2_SetHealth(client, iHealth); - // PrintToChatAll("MaxHealth %i", MaxHealth); - // PrintToChatAll("iHealth %i", iHealth); - - // PrintToChatAll("iAdditiveHP %i", iAdditiveHP); float OverHeal = float(MaxHealth) * OverHealRate; float TotalHealthOverHeal = iHealth * OverHealRate; diff --git a/free_disruptor_pyro_kristianma.sp b/free_disruptor_pyro_kristianma.sp index 963a17f2..3f38aab2 100644 --- a/free_disruptor_pyro_kristianma.sp +++ b/free_disruptor_pyro_kristianma.sp @@ -20,11 +20,6 @@ #define DEATH "mvm/sentrybuster/mvm_sentrybuster_explode.wav" #define LOOP "mvm/giant_pyro/giant_pyro_loop.wav" -#define SOUND_GUNFIRE ")mvm/giant_pyro/giant_pyro_flamethrower_loop.wav" -#define SOUND_WINDUP ")mvm/giant_pyro/giant_pyro_flamethrower_start.wav" - - - public Plugin:myinfo = { name = "[TF2] Be the Giant Agro Pyro", @@ -56,8 +51,6 @@ public OnPluginStart() robot.shortDescription = ROBOT_DESCRIPTION; robot.sounds.spawn = SPAWN; robot.sounds.loop = LOOP; - robot.sounds.gunfire = SOUND_GUNFIRE; - robot.sounds.windup = SOUND_WINDUP; robot.sounds.death = DEATH; robot.deathtip = ROBOT_ON_DEATH; robot.footstep = ROBOT_FOOTSTEP_GIANTCOMMON; @@ -78,17 +71,6 @@ public APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max) return APLRes_Success; } -public OnMapStart() -{ -// - - - - - PrecacheSound(SOUND_GUNFIRE); - PrecacheSound(SOUND_WINDUP); - -} public Action:SetModel(client, const String:model[]) { @@ -105,7 +87,6 @@ MakeGiantPyro(client) { SMLogTag(SML_VERBOSE, "Createing Kristianma"); TF2_SetPlayerClass(client, TFClass_Pyro); - //TF2_RespawnPlayer(client); TF2_RegeneratePlayer(client); new ragdoll = GetEntPropEnt(client, Prop_Send, "m_hRagdoll"); @@ -121,16 +102,12 @@ MakeGiantPyro(client) SetModel(client, GPYRO); int iHealth = 1750; - int MaxHealth = 175; - //PrintToChatAll("MaxHealth %i", MaxHealth); - int iAdditiveHP = iHealth - MaxHealth; TF2_SetHealth(client, iHealth); - // PrintToChatAll("iHealth %i", iHealth); float scale = 1.65; - // PrintToChatAll("iAdditiveHP %i", iAdditiveHP); + SetEntPropFloat(client, Prop_Send, "m_flModelScale", scale); SetEntProp(client, Prop_Send, "m_bIsMiniBoss", true); @@ -142,7 +119,7 @@ MakeGiantPyro(client) TF2Attrib_SetByName(client, "airblast vertical vulnerability multiplier", 1.5); float HealthPackPickUpRate = float(MaxHealth) / float(iHealth); TF2Attrib_SetByName(client, "health from packs decreased", HealthPackPickUpRate); - // TF2Attrib_SetByName(client, "cancel falling damage", 1.0); + TF2Attrib_SetByName(client, "patient overheal penalty", 0.15); TF2Attrib_SetByName(client, "deploy time decreased", 0.75); @@ -192,20 +169,14 @@ stock GiveGiantPyro(client) TF2_RemoveWeaponSlot(client, 1); TF2_RemoveWeaponSlot(client, 2); - //CreateRoboWeapon(client, "tf_weapon_flamethrower", 215, 6, 1, 2, 0); CreateRoboWeapon(client, "tf_weapon_flaregun", 351, 6, 1, 2, 390); CreateRoboWeapon(client, "tf_weapon_fireaxe", 38, 6, 1, 2, 0); - //CreateRoboWeapon(client, "tf_weapon_grenadelauncher", 1151, 8, 1, 0, 213); TFTeam iTeam = view_as(GetEntProp(client, Prop_Send, "m_iTeamNum")); float TeamPaint = 0.0; - // Team Spirit - // set item tint RGB : 12073019 - // set item tint RGB 2 : 5801378 - if (iTeam == TFTeam_Blue){ TeamPaint = 12073019.0; } @@ -217,15 +188,13 @@ stock GiveGiantPyro(client) CreateRoboHat(client, CUTESUIT, 10, 6, TeamPaint, 0.75, -1.0); CreateRoboHat(client, FLASHDANCEFOOTIES, 10, 6, 0.0, 0.75, -1.0); - // int Weapon1 = GetPlayerWeaponSlot(client, TFWeaponSlot_Primary); int Weapon2 = GetPlayerWeaponSlot(client, TFWeaponSlot_Secondary); int Weapon3 = GetPlayerWeaponSlot(client, TFWeaponSlot_Melee); if(IsValidEntity(Weapon2)) { - //TF2Attrib_RemoveAll(Weapon2); - // TF2Attrib_SetByName(Weapon2, "dmg penalty vs players", 1.75); + TF2Attrib_SetByName(Weapon3, "dmg penalty vs players", 0.5); TF2Attrib_SetByName(Weapon2, "maxammo secondary increased", 2.5); TF2Attrib_SetByName(Weapon2, "self dmg push force increased", 12.0); @@ -233,12 +202,12 @@ stock GiveGiantPyro(client) TF2Attrib_SetByName(Weapon2, "fire rate bonus", 0.35); TF2Attrib_SetByName(Weapon2, "killstreak tier", 1.0); TF2Attrib_SetByName(Weapon2, "dmg penalty vs buildings", 0.5); - //TF2Attrib_SetByName(Weapon2, "Reload time decreased", 5.05); + } if(IsValidEntity(Weapon3)) { - //TF2Attrib_RemoveAll(Weapon3); + TF2Attrib_SetByName(Weapon3, "killstreak tier", 1.0); TF2Attrib_SetByName(Weapon3, "is australium item", 1.0); TF2Attrib_SetByName(Weapon3, "item style override", 1.0); @@ -246,9 +215,7 @@ stock GiveGiantPyro(client) TF2Attrib_SetByName(Weapon3, "melee range multiplier", 1.4); TF2Attrib_SetByName(Weapon3, "fire rate penalty", 1.2); TF2Attrib_SetByName(Weapon3, "dmg penalty vs buildings", 0.25); - // TF2Attrib_SetByName(Weapon3, "heal on kill", 175.0); - - //TF2Attrib_SetByName(Weapon2, "apply look velocity on damage", 1500.0); + } } } diff --git a/free_disruptor_soldier_elmaxo.sp b/free_disruptor_soldier_elmaxo.sp index 61991c73..0c9356d8 100644 --- a/free_disruptor_soldier_elmaxo.sp +++ b/free_disruptor_soldier_elmaxo.sp @@ -236,7 +236,6 @@ stock GiveGiantPyro(client) int Weapon1 = GetPlayerWeaponSlot(client, TFWeaponSlot_Primary); - // int Weapon2 = GetPlayerWeaponSlot(client, TFWeaponSlot_Secondary); int Weapon3 = GetPlayerWeaponSlot(client, TFWeaponSlot_Melee); if(IsValidEntity(Weapon1)) @@ -249,19 +248,11 @@ stock GiveGiantPyro(client) TF2Attrib_SetByName(Weapon1, "dmg penalty vs buildings", 0.35); TF2CustAttr_SetString(Weapon1, "reload full clip at once", "1.0"); } - // if(IsValidEntity(Weapon2)) - // { - // TF2Attrib_SetByName(Weapon2, "dmg penalty vs players", 1.00); - // TF2Attrib_SetByName(Weapon2, "killstreak tier", 1.0); - // TF2Attrib_SetByName(Weapon2, "faster reload rate", 2.5); - // TF2CustAttr_SetString(Weapon2, "reload full clip at once", "1.0"); - // } if(IsValidEntity(Weapon3)) { TF2Attrib_SetByName(Weapon3, "dmg penalty vs players", 1.25); - // TF2Attrib_SetByName(Weapon3, "melee range multiplier", 1.25); - TF2Attrib_SetByName(Weapon3, "killstreak tier", 1.0); - // TF2Attrib_SetByName(Weapon3, "heal on kill", 200.0); + TF2Attrib_SetByName(Weapon3, "killstreak tier", 1.0); + TF2Attrib_SetByName(Weapon1, "dmg penalty vs buildings", 0.25); } diff --git a/free_engineer_barricade.sp b/free_engineer_barricade.sp index d6b64c86..ae88a378 100644 --- a/free_engineer_barricade.sp +++ b/free_engineer_barricade.sp @@ -5,14 +5,11 @@ #include #include #include -//#include #include #include -//#include #include #include #pragma semicolon 1 -//#pragma newdecls required #define PLUGIN_VERSION "1.0" #define ROBOT_NAME "Barricade" @@ -28,27 +25,6 @@ #define DEATH "mvm/sentrybuster/mvm_sentrybuster_explode.wav" #define LOOP "mvm/giant_heavy/giant_heavy_loop.wav" -// #define ENGIE_SPAWN_SOUND "vo/announcer_mvm_engbot_arrive02.mp3" -// #define ENGIE_SPAWN_SOUND2 "vo/announcer_mvm_engbot_arrive03.mp3" - -// #define TELEPORTER_ACTIVATE1 "vo/announcer_mvm_eng_tele_activated01.mp3" -// #define TELEPORTER_ACTIVATE2 "vo/announcer_mvm_eng_tele_activated02.mp3" -// #define TELEPORTER_ACTIVATE3 "vo/announcer_mvm_eng_tele_activated03.mp3" -// #define TELEPORTER_ACTIVATE4 "vo/announcer_mvm_eng_tele_activated04.mp3" -// #define TELEPORTER_ACTIVATE5 "vo/announcer_mvm_eng_tele_activated05.mp3" - -// #define TELEPORTER_SPAWN "mvm/mvm_tele_deliver.wav" - -#define TF_OBJECT_TELEPORTER 1 -#define TF_TELEPORTER_ENTR 0 - -//new g_offsCollisionGroup; - -// bool engibotactive; -// bool teleportercheck; -// bool AnnouncerQuiet; - - public Plugin:myinfo = { @@ -58,18 +34,15 @@ public Plugin:myinfo = version = PLUGIN_VERSION, url = "www.sourcemod.com" } -bool b_Hooked[MAXPLAYERS + 1] = false; public OnPluginStart() { LoadTranslations("common.phrases"); - RobotDefinition robot; robot.name = ROBOT_NAME; robot.role = ROBOT_ROLE; robot.class = ROBOT_CLASS; - // robot.subclass = ROBOT_SUBCLASS; robot.shortDescription = ROBOT_DESCRIPTION; robot.sounds.spawn = SPAWN; robot.sounds.loop = LOOP; @@ -87,59 +60,6 @@ public void OnPluginEnd() } - -public void OnClientPutInServer(int client) -{ - - - // Hook weapon switching for this client here: - SDKHook(client, SDKHook_WeaponSwitchPost, OnWeaponSwitch); - b_Hooked[client] = true; -} - -public void OnClientDisconnect(int client) -{ - - - // Unhook our weapon switching: - SDKUnhook(client, SDKHook_WeaponSwitchPost, OnWeaponSwitch); -} - -public void OnWeaponSwitch(int client, int weapon) -{ - // When we switch weapons, we're going to grant a damage bonus - // based off of the "half second damage bonus" attribute. - - // We'll do the damage calculation in another function. Here we'll see - // when until we can have this bonus. - - // Do we have "half second damage bonus"? - if (IsRobot(client, ROBOT_NAME)) - { - - //PrintToChatAll("Weapon was %i", weapon); - if (IsPistol(weapon)) - { - TF2_AddCondition(client, TFCond_CritHype, 1.0); - // // TF2Attrib_AddCustomPlayerAttribute(client, "faster reload rate", 0.5, 1.5); - // // TF2Attrib_AddCustomPlayerAttribute(client, "fire rate bonus", 0.5, 1.5); - } - } -} - -bool IsPistol(int weapon){ - if(weapon == -1 && weapon <= MaxClients) return false; - switch(GetEntProp(weapon, Prop_Send, "m_iItemDefinitionIndex")) - { - case 22: - { - return true; - } - } - return false; -} - - public APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max) { @@ -225,11 +145,6 @@ MakeUncleDane(client) SetEntProp(client, Prop_Send, "m_iAmmo", 500, _, 3); - if (!b_Hooked[client]){ - - SDKHook(client, SDKHook_WeaponSwitchPost, OnWeaponSwitch); - b_Hooked[client] = true; - } } stock TF2_SetHealth(client, NewHealth) @@ -245,13 +160,7 @@ public Action:Timer_Switch(Handle:timer, any:client) GiveBigRoboDane(client); } -// public Action:Timer_Resize(Handle:timer, any:hat) -// { - // if (IsValidClient(client)) - // GiveBigRoboDane(client); -// } -// #define THEDANGER 30420 #define IronLung 30698 #define Wavefinder 31148 @@ -268,18 +177,12 @@ stock GiveBigRoboDane(client) CreateRoboWeapon(client, "tf_weapon_shotgun_primary", 199, 6, 1, 2, 0); CreateRoboWeapon(client, "tf_weapon_wrench", 155, 6, 1, 2, 0); -//15126 - //CreateWeapon(client, "tf_weapon_wrench", 7, 9, 69, 2, 0); - - - // CreateRoboHat(client, THEDANGER, 10, 6, 15132390.0, 1.25, -1.0); CreateRoboHat(client, IronLung, 10, 6, 0.0, 1.0, -1.0); CreateRoboHat(client, Wavefinder, 10, 6, 0.0, 1.0, -1.0); int Weapon1 = GetPlayerWeaponSlot(client, TFWeaponSlot_Primary); int Weapon3 = GetPlayerWeaponSlot(client, TFWeaponSlot_Melee); - //SetEntData(Weapon3, FindSendPropInfo(entclass, "m_iEntityQuality"), 11); if(IsValidEntity(Weapon1)) { @@ -294,18 +197,14 @@ stock GiveBigRoboDane(client) } if(IsValidEntity(Weapon3)) { - //TF2Attrib_RemoveAll(Weapon3); - // TF2Attrib_SetByName(Weapon1, "is australium item", 1.0); - // TF2Attrib_SetByName(Weapon1, "item style override", 1.0); + TF2Attrib_SetByName(Weapon3, "damage bonus", 1.25); TF2Attrib_SetByName(Weapon3, "Construction rate increased", 10.0); TF2Attrib_SetByName(Weapon3, "killstreak tier", 1.0); TF2Attrib_SetByName(Weapon3, "melee range multiplier", 1.65); TF2Attrib_SetByName(Weapon3, "Repair rate increased", 2.0); - // TF2Attrib_SetByName(Weapon3, "single wep deploy time increased", 1.6); TF2Attrib_SetByName(Weapon3, "engineer building teleporting pickup", 10.0); TF2Attrib_SetByName(Weapon3, "engy sentry radius increased", 0.3); - // TF2Attrib_SetByName(Weapon3, "engy sentry fire rate increased", 2.5); TF2Attrib_SetByName(Weapon3, "engy dispenser radius increased", 10.0); TF2Attrib_SetByName(Weapon3, "engy building health bonus", 2.6); @@ -318,40 +217,4 @@ stock GiveBigRoboDane(client) } } -} - -public Action TF2_OnTakeDamage(int victim, int &attacker, int &inflictor, float &damage, int &damagetype, int &weapon, float damageForce[3], float damagePosition[3], int damagecustom, CritType &critType) -{ - // if (!g_Enable) - // return Plugin_Continue; - if(!IsValidClient(victim)) - return Plugin_Continue; - if(!IsValidClient(attacker)) - return Plugin_Continue; - - if (IsRobot(attacker, ROBOT_NAME) && TF2_IsPlayerInCondition(attacker, TFCond_CritHype)) - { - // int iActiveWeapon = GetEntPropEnt(attacker, Prop_Send, "m_hActiveWeapon"); - int Weapon1 = GetPlayerWeaponSlot(attacker, TFWeaponSlot_Secondary); - if (IsCrit(attacker)) return Plugin_Continue; - - // PrintToChatAll("Crittype was %i", critType); - - if(weapon == Weapon1)critType = CritType_MiniCrit; - return Plugin_Changed; - - - - } - return Plugin_Continue; -} - -public bool IsCrit(int client){ - - //Ignores damage reduction if you are kritzed or minicritted with buff banner or winning - if(IsValidClient(client) && (TF2_IsPlayerInCondition(client, TFCond_Kritzkrieged) || TF2_IsPlayerInCondition(client, TFCond_Buffed)) || TF2_IsPlayerInCondition(client, TFCond_CritOnWin) || TF2_IsPlayerInCondition(client, TFCond_CritCanteen)) - { - return true; - } - return false; -} +} \ No newline at end of file diff --git a/free_healer_medic_arrayseven.sp b/free_healer_medic_arrayseven.sp index 293342e6..112b36e2 100644 --- a/free_healer_medic_arrayseven.sp +++ b/free_healer_medic_arrayseven.sp @@ -61,15 +61,6 @@ public APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max) // CreateNative("BeGiantMedic_MakeGiantMedic", Native_SetGiantMedic); // CreateNative("BeGiantMedic_IsGiantMedic", Native_IsGiantMedic); return APLRes_Success; -} - -public OnMapStart() -{ -// - - - - } public Action:SetModel(client, const String:model[]) @@ -130,15 +121,7 @@ MakeGiantMedic(client) PrintHintText(client, ROBOT_TIPS); } -// public TF2_OnConditionAdded(client, TFCond:condition) -// { -// if (IsRobot(client, ROBOT_NAME) && condition == TFCond_Taunting) -// { -// TF2_AddCondition(client,TFCond_HalloweenQuickHeal, 2.5); -// // TF2_AddCondition(client,TFCond_HalloweenSpeedBoost, 15.0); -// } -// } - + stock TF2_SetHealth(client, NewHealth) { SetEntProp(client, Prop_Send, "m_iHealth", NewHealth, 1); @@ -183,12 +166,11 @@ stock GiveGiantMedic(client) { TF2Attrib_RemoveAll(Weapon2); TF2Attrib_SetByName(Weapon2, "killstreak tier", 1.0); - TF2Attrib_SetByName(Weapon2, "uber duration bonus", 1.5); + TF2Attrib_SetByName(Weapon2, "uber duration bonus", 4.0); TF2Attrib_SetByName(Weapon2, "overheal penalty", 0.01); TF2Attrib_SetByName(Weapon2, "ubercharge rate penalty", 0.75); TF2Attrib_SetByName(Weapon2, "heal rate bonus", 2.0); TF2Attrib_SetByName(Weapon2, "dmg penalty vs buildings", 0.5); - //SetEntPropFloat(Weapon2, Prop_Send, "m_flChargeLevel", 1.0); } diff --git a/free_healer_medic_beskymin.sp b/free_healer_medic_beskymin.sp index ca47cc6a..4c8285f1 100644 --- a/free_healer_medic_beskymin.sp +++ b/free_healer_medic_beskymin.sp @@ -159,33 +159,20 @@ stock GiveGiantMedic(client) TF2_RemoveWeaponSlot(client, 2); CreateRoboWeapon(client, "tf_weapon_medigun", 998, 6, 1, 2, 0); - // CreateRoboWeapon(client, "tf_weapon_syringegun_medic", 36, 6, 1, 2, 0); CreateRoboWeapon(client, "tf_weapon_bonesaw", 413, 6, 1, 2, 0); CreateRoboHat(client, VintageTyrolean, 10, 6, 15132390.0, 1.0, -1.0); CreateRoboHat(client, HeatofWinter, 10, 6, 0.0, 1.0, -1.0); CreateRoboHat(client, TheMedicineManpurse, 10, 6, 0.0, 1.0, -1.0); - // int Weapon1 = GetPlayerWeaponSlot(client, TFWeaponSlot_Primary); int Weapon2 = GetPlayerWeaponSlot(client, TFWeaponSlot_Secondary); int Weapon3 = GetPlayerWeaponSlot(client, TFWeaponSlot_Melee); - - // if(IsValidEntity(Weapon1)) - // { - // TF2Attrib_RemoveAll(Weapon1); - // TF2Attrib_SetByName(Weapon1, "health drain", 0.0); - // TF2Attrib_SetByName(Weapon1, "killstreak tier", 1.0); - // TF2Attrib_SetByName(Weapon1, "damage bonus", 1.15); - // TF2Attrib_SetByName(Weapon1, "maxammo primary increased", 2.5); - // } - if(IsValidEntity(Weapon2)) { TF2Attrib_RemoveAll(Weapon2); TF2Attrib_SetByName(Weapon2, "killstreak tier", 1.0); TF2Attrib_SetByName(Weapon2, "overheal penalty", 0.0); - // TF2Attrib_SetByName(Weapon2, "ubercharge rate bonus", 1.1); TF2Attrib_SetByName(Weapon2, "medigun bullet resist passive", 0.15); TF2Attrib_SetByName(Weapon2, "medigun bullet resist deployed", 0.35); TF2Attrib_SetByName(Weapon2, "medigun blast resist passive", 0.15); @@ -202,7 +189,6 @@ stock GiveGiantMedic(client) if(IsValidEntity(Weapon3)) { TF2Attrib_SetByName(Weapon3, "killstreak tier", 1.0); - // TF2Attrib_SetByName(Weapon3, "damage bonus", 1.5); TF2Attrib_SetByName(Weapon2, "dmg penalty vs buildings", 0.25); } @@ -213,29 +199,27 @@ stock GiveGiantMedic(client) public void TF2_OnConditionAdded(int client, TFCond condition) { - - //PrintToChatAll("CONDITION WAS: %i for %N", condition, client); if (IsRobot(client, ROBOT_NAME)) { - int medigun = GetPlayerWeaponSlot(client, TFWeaponSlot_Secondary); - int healtarget = -1; + int medigun = GetPlayerWeaponSlot(client, TFWeaponSlot_Secondary); + int healtarget = -1; - if(GetEntProp(medigun, Prop_Send, "m_bHealing")) - { - healtarget = GetEntPropEnt(medigun, Prop_Send, "m_hHealingTarget"); - //PrintToChatAll("Healtarget was: %N", healtarget); - } + if(GetEntProp(medigun, Prop_Send, "m_bHealing")) + { + healtarget = GetEntPropEnt(medigun, Prop_Send, "m_hHealingTarget"); - if (IsValidClient(healtarget) && IsPlayerAlive(healtarget)) - { - if(condition == TFCond_UberBulletResist || condition == TFCond_UberBlastResist || condition == TFCond_UberFireResist){ + } - //TF2_AddCondition(healtarget,TFCond_CritCola, 3.5); - TF2_AddCondition(client, TFCond_RuneWarlock, 4.0); - TF2_AddCondition(healtarget, TFCond_RuneWarlock, 4.0); - } - } + if (IsValidClient(healtarget) && IsPlayerAlive(healtarget)) + { + if(condition == TFCond_UberBulletResist || condition == TFCond_UberBlastResist || condition == TFCond_UberFireResist){ + + + TF2_AddCondition(client, TFCond_RuneWarlock, 4.0); + TF2_AddCondition(healtarget, TFCond_RuneWarlock, 4.0); + } + } } } diff --git a/free_healer_medic_drcrossbowcop.sp b/free_healer_medic_drcrossbowcop.sp index 4c422e3c..d6cc1cfe 100644 --- a/free_healer_medic_drcrossbowcop.sp +++ b/free_healer_medic_drcrossbowcop.sp @@ -61,15 +61,7 @@ public APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max) return APLRes_Success; } -public OnMapStart() -{ -// - - - -} - public Action:SetModel(client, const String:model[]) { if (IsValidClient(client) && IsPlayerAlive(client)) @@ -105,7 +97,7 @@ MakeGiantMedic(client) SetEntPropFloat(client, Prop_Send, "m_flModelScale", 1.75); SetEntProp(client, Prop_Send, "m_bIsMiniBoss", _:true); -TF2Attrib_SetByName(client, "move speed penalty", 0.9); + TF2Attrib_SetByName(client, "move speed penalty", 0.9); TF2Attrib_SetByName(client, "damage force reduction", 0.8); TF2Attrib_SetByName(client, "airblast vulnerability multiplier", 0.75); float HealthPackPickUpRate = float(MaxHealth) / float(iHealth); diff --git a/free_healer_medic_theory-y.sp b/free_healer_medic_theory-y.sp index 7f8ecaf5..fc58f68f 100644 --- a/free_healer_medic_theory-y.sp +++ b/free_healer_medic_theory-y.sp @@ -202,11 +202,8 @@ stock GiveGiantMedic(client) { TF2Attrib_RemoveAll(Weapon2); - - // TF2Attrib_SetByName(Weapon2, "lunchbox adds minicrits", 1.0); TF2Attrib_SetByName(Weapon2, "killstreak tier", 1.0); TF2Attrib_SetByName(Weapon2, "overheal penalty", 0.0); - // TF2Attrib_SetByName(Weapon2, "ubercharge rate bonus", 1.1); TF2Attrib_SetByName(Weapon2, "medigun bullet resist passive", 0.15); TF2Attrib_SetByName(Weapon2, "medigun bullet resist deployed", 0.35); TF2Attrib_SetByName(Weapon2, "medigun blast resist passive", 0.15); @@ -218,8 +215,6 @@ stock GiveGiantMedic(client) TF2Attrib_SetByName(Weapon2, "heal rate bonus", 2.0); TF2Attrib_SetByName(Weapon2, "overheal penalty", 0.01); TF2Attrib_SetByName(Weapon2, "uber duration bonus", 1.0); - //TF2CustAttr_SetString(Weapon2,"medigun charge is group overheal", "range=500.0 heal_rate=80.0 overheal_ratio=1.05 overheal_duration_mult=0.25"); - } @@ -267,13 +262,6 @@ public void TF2_OnConditionAdded(int client, TFCond condition) } - // if (condition == TFCond_Charging) - // { - - // SetEntPropFloat(healtarget, Prop_Send, "m_flMaxspeed", 750.0); - // SetEntPropFloat(client, Prop_Send, "m_flMaxspeed", 750.0); - - // } } } diff --git a/free_tank_heavy_beardedexpense.sp b/free_tank_heavy_beardedexpense.sp index 3c8b7f34..d68bb317 100644 --- a/free_tank_heavy_beardedexpense.sp +++ b/free_tank_heavy_beardedexpense.sp @@ -59,21 +59,6 @@ public OnPluginStart() LoadTranslations("common.phrases"); HookEvent("player_death", Event_Death, EventHookMode_Post); - - // g_hGameConf = LoadGameConfigFile("bm_charge_airblast_immunity_data"); - - // //IsDeflectable - // g_hIsDeflectable = DHookCreate(0, HookType_Entity, ReturnType_Bool, ThisPointer_CBaseEntity, IsPlayerDeflectable); - // if(g_hIsDeflectable == null) SetFailState("Failed to setup hook for CTFPlayer::IsDeflectable!"); - - // if(!DHookSetFromConf(g_hIsDeflectable, g_hGameConf, SDKConf_Virtual, "CTFPlayer::IsDeflectable")) - // SetFailState("Failed to find CTFPlayer::IsDeflectable offset in the gamedata!"); - - // //Finds players to hook for IsDeflectable - // FindAndHookPlayers(); - - // delete g_hGameConf; - RobotDefinition robot; robot.name = ROBOT_NAME; robot.role = ROBOT_ROLE; @@ -93,35 +78,7 @@ public void OnPluginEnd() RemoveRobot(ROBOT_NAME); } -// void FindAndHookPlayers() -// { -// for(int i = 1; i <= MaxClients+1; i++) -// { -// if(IsValidClient(i)) -// { -// DHookEntity(g_hIsDeflectable, false, i); -// } -// } -// } - -// public void OnClientPutInServer(int client) -// { -// DHookEntity(g_hIsDeflectable, false, client); -// } - -// public MRESReturn IsPlayerDeflectable(int pThis, Handle hReturn, Handle hParams) -// { -// if(IsRobot(pThis, ROBOT_NAME)) -// { -// //PrintToChatAll("Shouldn't airblast target %N", pThis); - -// DHookSetReturn(hReturn, false); - -// return MRES_Override; -// } -// return MRES_Ignored; -// } - + public APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max) { return APLRes_Success; @@ -129,83 +86,20 @@ public APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max) public OnMapStart() { - // PrecacheModel(SHWC); - - - - - // PrecacheSound("mvm/giant_heavy/giant_heavy_step01.wav"); - // PrecacheSound("mvm/giant_heavy/giant_heavy_step03.wav"); - // PrecacheSound("mvm/giant_heavy/giant_heavy_step02.wav"); - // PrecacheSound("mvm/giant_heavy/giant_heavy_step04.wav"); - PrecacheSound(sBoomNoise); PrecacheSound(ALARM); PrecacheSound(JUMP); - // PrecacheSound(SOUND_LEAP); -} -public Action:BossBearded(clients[64], &numClients, String:sample[PLATFORM_MAX_PATH], &entity, &channel, &Float:volume, &level, &pitch, &flags) -{ - if (!IsValidClient(entity)) return Plugin_Continue; - if (!IsRobot(entity, ROBOT_NAME)) return Plugin_Continue; - - if (strncmp(sample, "player/footsteps/", 17, false) == 0) - { - if (StrContains(sample, "1.wav", false) != -1) - { - Format(sample, sizeof(sample), "mvm/giant_heavy/giant_heavy_step01.wav"); - EmitSoundToAll(sample, entity); - } - else if (StrContains(sample, "3.wav", false) != -1) - { - Format(sample, sizeof(sample), "mvm/giant_heavy/giant_heavy_step03.wav"); - EmitSoundToAll(sample, entity); - } - else if (StrContains(sample, "2.wav", false) != -1) - { - Format(sample, sizeof(sample), "mvm/giant_heavy/giant_heavy_step02.wav"); - EmitSoundToAll(sample, entity); - } - else if (StrContains(sample, "4.wav", false) != -1) - { - Format(sample, sizeof(sample), "mvm/giant_heavy/giant_heavy_step04.wav"); - EmitSoundToAll(sample, entity); - } - return Plugin_Changed; - } - return Plugin_Continue; } public Event_Death(Event event, const char[] name, bool dontBroadcast) { int attacker = GetClientOfUserId(GetEventInt(event, "attacker")); int victim = GetClientOfUserId(GetEventInt(event, "userid")); - // int weaponID = GetEventInt(event, "weapon_def_index"); - - // char weapon_logname[MAX_NAME_LENGTH]; - // GetEventString(event, "weapon_logclassname", weapon_logname, sizeof(weapon_logname)); - - - //int weaponID = GetEntPropEnt(weapon, Prop_Send, "m_iItemDefinitionIndex"); - - //PrintToChatAll("Attacker %N , weaponID %i, logname: %s", attacker, weaponID, weapon_logname); - - // if (IsRobot(attacker, ROBOT_NAME) && StrEqual(weapon_logname,"mantreads")) - // { - // //PrintToChatAll("Drop the bomb"); - - // Handle infokv = CreateKeyValues("infokv"); - // KvSetNum(infokv, "attacker", attacker); - // KvSetNum(infokv, "victim", victim); - // CreateTimer(0.0, BeardedBoom, infokv); - - // SDKHooks_TakeDamage(attacker, 0, attacker, 120.0, 0, -1); - // } if (IsRobot(attacker, ROBOT_NAME)) { - //PrintToChatAll("applying slowed"); + TF2_AddCondition(attacker, TFCond_Slowed, 10.0); PrintHintText(victim,"Bearded Expense has weakness to melee damage"); @@ -305,18 +199,15 @@ MakeBearded(client) TF2Attrib_SetByName(client, "boots falling stomp", 1.0); TF2Attrib_SetByName(client, "rage giving scale", 0.85); - // TF2Attrib_SetByName(client, "increased air control", 5.0); - TF2Attrib_SetByName(client, "aiming movespeed increased", 2.5); - // TF2Attrib_SetByName(client, "increased jump height", 0.5); + TF2Attrib_SetByName(client, "aiming movespeed increased", 2.5); UpdatePlayerHitbox(client, 1.75); - + //Tank stats - // TF2Attrib_SetByName(client, "dmg taken from crit reduced", 0.75); TF2Attrib_SetByName(client, "increase player capture value", -1.0); TF2Attrib_SetByName(client, "cannot pick up intelligence", 1.0); TF2Attrib_SetByName(client, "dmg from melee increased", 2.0); - // TF2_AddCondition(client,TFCond_DefenseBuffNoCritBlock); + TF2_RemoveCondition(client, TFCond_CritOnFirstBlood); TF2_AddCondition(client, TFCond_SpeedBuffAlly, 0.1); diff --git a/free_tank_heavy_terminator.sp b/free_tank_heavy_terminator.sp index 3bc18e68..56c4f86f 100644 --- a/free_tank_heavy_terminator.sp +++ b/free_tank_heavy_terminator.sp @@ -59,7 +59,6 @@ float g_dottime = 0.0; float g_dot_interval = 0.25; int g_previous_state = -2; -// bool g_switch_available = false; float g_retarget_timer = 25.0; int g_loadingDots = 1; @@ -74,11 +73,7 @@ public Plugin:myinfo = url = "www.sourcemod.com" } -// new bool:Locked1[MAXPLAYERS+1]; -// new bool:Locked2[MAXPLAYERS+1]; -// new bool:Locked3[MAXPLAYERS+1]; -// new bool:CanWindDown[MAXPLAYERS+1]; - + public OnPluginStart() { LoadTranslations("common.phrases"); @@ -319,27 +314,13 @@ public Action Event_Death(Event event, const char[] name, bool dontBroadcast) }else if(IsRobot(assister, ROBOT_NAME)) { - // {PrintToChatAll("Target killed assist correctly"); TerminatorHeal(assister); - // SetGameTime(); - }/* else - { - PrintToChatAll("You failed to kill your target"); - // SetGameTime(); + } - int Terminator = FindTerminator(); - TF2_StunPlayer(Terminator, 3.0, 0.0, TF_STUNFLAGS_BIGBONK, Terminator); - } */ } - // if(IsRobot(victim, ROBOT_NAME)) - // { - // g_targetstatus = target_lost; - // SetGameTime(); - // PrintToChatAll("DEAD, TARGET LOST"); - // // FindTerminationTarget(); - // } + FindTerminator(); } @@ -364,16 +345,16 @@ stock GiveGRageH(client) CreateRoboWeapon(client, "tf_weapon_shotgun_hwg", 199, 6, 1, 0, 304); - // CreateRoboHat(client, Hat1, 10, 6, 0.75, 1.0, -1.0); + CreateRoboHat(client, HeavyMetal, 10, 6, 0.0, 0.75, -1.0); CreateRoboHat(client, Nuke, 10, 6, 1315860.0, 0.75, -1.0); - CreateRoboHat(client, GRAYBANNS, 10, 6, 1315860.0, 1.0, 0.0);//gray banns + CreateRoboHat(client, GRAYBANNS, 10, 6, 1315860.0, 1.0, 0.0); int Weapon2 = GetPlayerWeaponSlot(client, TFWeaponSlot_Secondary); if(IsValidEntity(Weapon2)) { - // TF2Attrib_SetByName(Weapon2, "attack projectiles", 2.0); + TF2Attrib_SetByName(Weapon2, "maxammo primary increased", 2.5); TF2Attrib_SetByName(Weapon2, "killstreak tier", 1.0); TF2Attrib_SetByName(Weapon2, "dmg penalty vs buildings", 0.10); @@ -382,7 +363,7 @@ stock GiveGRageH(client) } PrintHintText(client, ROBOT_TIPS); - // FindTerminationTarget(); + } } @@ -395,11 +376,6 @@ Action OnGlowShouldTransmit(int glow, int client) { } - // if (TF2_IsPlayerInCondition(glowTarget, TFCond_Cloaked) - // || TF2_IsPlayerInCondition(glowTarget, TFCond_Disguised)) { - // return Plugin_Stop; - // } - if (!TF2_IsEnemyTeam(TF2_GetClientTeam(glowTarget), TF2_GetClientTeam(client))) { // prevent showing outline on teammates // TODO make this more robust for teamcounts larger than 2 -- diff --git a/mm_cast_spell.sp b/mm_cast_spell.sp index 7ad47511..f1590b5b 100644 --- a/mm_cast_spell.sp +++ b/mm_cast_spell.sp @@ -55,8 +55,8 @@ bool HasStat(int attacker) } g_Spell[attacker] = ReadIntVar(stat_buffer, "Spell", 0); g_RechargeCooldown = ReadFloatVar(stat_buffer, "Cooldown", 5.0); - g_SpellOnCond = ReadIntVar(stat_buffer, "SpellOnCond", -1); - g_Cond = ReadIntVar(stat_buffer, "Cond", -1); + g_SpellOnCond = ReadIntVar(stat_buffer, "SpellOnCond", -1); + g_Cond = ReadIntVar(stat_buffer, "Cond", -1); if(g_Spell[attacker] == -1) return false; diff --git a/paid_damage_flames_pyro_laugh_extractor.sp b/paid_damage_flames_pyro_laugh_extractor.sp index ca43fbf5..c498d176 100644 --- a/paid_damage_flames_pyro_laugh_extractor.sp +++ b/paid_damage_flames_pyro_laugh_extractor.sp @@ -73,7 +73,7 @@ public OnPluginStart() restrictions.RobotCoins = new RobotCoinRestrictionDefinition(); restrictions.RobotCoins.PerRobot = ROBOT_COST; - AddRobot(robot, MakeGiantPyro, PLUGIN_VERSION, restrictions, null); + AddRobot(robot, MakeGiantPyro, PLUGIN_VERSION, restrictions, 1); HookEvent("player_death", Event_Death, EventHookMode_Post); } @@ -133,14 +133,10 @@ MakeGiantPyro(client) int iHealth = 3500; int MaxHealth = 175; - //PrintToChatAll("MaxHealth %i", MaxHealth); int iAdditiveHP = iHealth - MaxHealth; TF2_SetHealth(client, iHealth); - // PrintToChatAll("iHealth %i", iHealth); - - // PrintToChatAll("iAdditiveHP %i", iAdditiveHP); SetEntPropFloat(client, Prop_Send, "m_flModelScale", 1.75); SetEntProp(client, Prop_Send, "m_bIsMiniBoss", true); @@ -153,9 +149,6 @@ MakeGiantPyro(client) TF2Attrib_SetByName(client, "health from packs decreased", HealthPackPickUpRate); TF2Attrib_SetByName(client, "cancel falling damage", 1.0); TF2Attrib_SetByName(client, "patient overheal penalty", 0.15); - - // TF2Attrib_SetByName(client, "override footstep sound set", 6.0); - TF2Attrib_SetByName(client, "rage giving scale", 0.85); TF2Attrib_SetByName(client, "head scale", 0.75); @@ -208,26 +201,16 @@ stock GiveGiantPyro(client) if(IsValidEntity(Weapon1)) { - //TF2Attrib_RemoveAll(Weapon1); TF2Attrib_SetByName(Weapon1, "dmg penalty vs players", 1.35); TF2Attrib_SetByName(Weapon1, "maxammo primary increased", 2.5); - TF2Attrib_SetByName(Weapon1, "killstreak tier", 1.0); - // TF2Attrib_SetByName(Weapon1, "airblast pushback scale", 1.6); + TF2Attrib_SetByName(Weapon1, "killstreak tier", 1.0); TF2Attrib_SetByName(Weapon1, "dmg penalty vs buildings", 0.35); TF2Attrib_SetByName(Weapon1, "flame_spread_degree", 5.0); TF2Attrib_SetByName(Weapon1, "flame size bonus", 1.6); TF2Attrib_SetByName(Weapon1, "flame_speed", 3600.0); TF2Attrib_SetByName(Weapon1, "mult airblast refire time", 1.5); TF2Attrib_SetByName(Weapon1, "extinguish restores health", 250.0); - - - // TF2Attrib_SetByName(Weapon1, "airblast vertical pushback scale", 1.5); - - // charged airblast - - } - g_KillCount = 5; } }