Skip to content

Commit

Permalink
added spell weapon for scout, buffed aoero added gunslinger, buffed s…
Browse files Browse the repository at this point in the history
…entrybuster
  • Loading branch information
higps committed Feb 12, 2024
1 parent 8c766aa commit b6f2198
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 66 deletions.
7 changes: 7 additions & 0 deletions berobot_dmg_handler.sp
Original file line number Diff line number Diff line change
Expand Up @@ -1489,6 +1489,13 @@ public Action Event_post_inventory_application(Event event, const char[] name, b

if (IsSunOnAStick(Weapon3))
{
// "TF_WEAPON_SPELLBOOK"
// {
// "itemindex" "5605"
// "quality" "0"
// "level" "1"
// }
CreateRoboWeapon(client, "tf_weapon_spellbook", 5605, 0, 1, 4, 0);
TF2CustAttr_SetString(client, "Spell-Caster", "Spell=0 Cooldown=40.0");
// TF2_RegeneratePlayer(client);
Format(chat_display, sizeof(chat_display), "%s\n{teamcolor}Sun-on-a-Stick:{orange} Fire ball spell",chat_display, MoreIsMore(stat1), stat2);
Expand Down
7 changes: 4 additions & 3 deletions cfg/robots/paid_damage_flames_pyro_aero.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
"flame size bonus" "1.6"
"flame_speed" "3600.0"
"airblast cost increased" "5.25"

"single wep deploy time decreased" "0.01"
"airblast_give_teammate_speed_boost" "5.0"
}
}

Expand All @@ -74,8 +75,8 @@
"dmg penalty vs players" "1.25"
"dmg penalty vs buildings" "0.5"
"fire rate bonus" "0.75"
"clip size penalty" "1.0"
"deploy time decreased" "0.7"
"clip size penalty" "1.7"
"single wep deploy time decreased" "0.01"
"weapon spread bonus" "0.75"
}
"custom_attributes_weapon"
Expand Down
114 changes: 57 additions & 57 deletions cfg/robots/paid_damage_rockets_soldier_gunslinger.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
{
"model" "models/bots/soldier_boss/bot_soldier_boss.mdl"
"class" "Soldier"
"shortdescription" "Instant Weapon Switch"
"name" "Cloaker"
"shortdescription" "Instant Weapon Switch, Stock Loadout"
"name" "Gunslinger"
"deathtip" "This robot crazy yo"
"role" "Damage"
"subclass" "Rockets"
Expand All @@ -28,79 +28,79 @@
"cancel falling damage" "1.0"
"rage giving scale" "0.75"
}
"custom_attributes_player"
{
"start-with-charge" "amount=100.0"
}
"remove_weapon_slots"
{
"slot" "0"
"slot" "1"
"slot" "2"
}

"weapons"
{
"tf_weapon_rocketlauncher"
{
"itemindex" "205"
"quality" "6"
"level" "1"
"slot" "2"
"warpaint_id" "215"
"attributes"
"weapons"
{
"tf_weapon_rocketlauncher"
{
"maxammo primary increased" "2.5"
"killstreak tier" "1.0"
"clip size upgrade atomic" "5.0"
"fire rate bonus" "0.7"
"faster reload rate" "2.0"
"dmg penalty vs buildings" "0.5"
"itemindex" "205"
"quality" "6"
"level" "1"
"slot" "2"
// "warpaint_id" "413"
"warpaint_id" "120"
"attributes"
{
"maxammo primary increased" "2.5"
"killstreak tier" "1.0"
"clip size upgrade atomic" "6.0"
"fire rate bonus" "0.7"
"faster reload rate" "2.0"
"dmg penalty vs buildings" "0.5"
"single wep deploy time decreased" "0.01"
}
"custom_attributes_weapon"
{
"reload full clip at once" "1.0"
}
}
"custom_attributes_weapon"
"tf_weapon_shotgun_soldier"
{
"reload full clip at once" "1.0"
}
}
"tf_weapon_buff_item"
{
"itemindex" "226"
"itemindex" "199"
"quality" "6"
"level" "1"
"slot" "2"
"skin" "0"
"warpaint_id" "120"
"attributes"
{
"increase buff duration" "2.5"
}
"custom_attributes_weapon"
{
"custom buff type" "mm-cloak"
"faster reload rate" "0.4"
"clip size bonus" "1.7"
"weapon spread bonus" "0.75"
"dmg penalty vs players" "1.1"
"fire rate bonus" "0.7"
"dmg penalty vs buildings" "0.35"
"single wep deploy time decreased" "0.01"
}
}
}
"cosmetics"
{
"Close Quarters Cover"
{
"itemindex" "31378"
"paint" "A Distinctive Lack of Hue"
"style" "3.0"
"scale" "1.0"
}
"Close Quarters Cover"
{
"itemindex" "31378"
"paint" "Ye Olde Rustic Colour"
"style" "2.0"
"scale" "1.0"
}
"Dead Of Night"
"cosmetics"
{
"itemindex" "30309"
"paint" "Ye Olde Rustic Colour"
"style" "1.0"
"scale" "1.0"
"SloPoke"
{
"itemindex" "30314"
"paint" "Australium Gold"
"style" "3.0"
"scale" "0.75"
}
"Trench Warfarer"
{
"itemindex" "31418"
"paint" "Australium Gold"
"style" "2.0"
"scale" "1.0"
}
"SparkPlug"
{
"itemindex" "30033"
"paint" "Australium Gold"
"style" "1.0"
"scale" "0.75"
}
}
}
}
10 changes: 5 additions & 5 deletions mm_cast_spell.sp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public void Recharge_Spell(int client) {


int ent = FindSpellbook(client);
if (ent) {
if (ent != -1) {
SetEntProp(ent, Prop_Send, "m_iSpellCharges", g_stat_Charges[client]);
SetEntProp(ent, Prop_Send, "m_iSelectedSpellIndex", index);
g_book[client] = ent;
Expand Down Expand Up @@ -195,7 +195,7 @@ void DrawHUD(int client)
}

Format(sHUDText, sizeof(sHUDText), "%s: %i ", SpellText, iCountDown);

// PrintToChatAll("Countdown %i for %N", iCountDown, client);
if(iCountDown <= 0)
{
Format(sHUDText, sizeof(sHUDText), "%s: Ready!\nActivate With\nAction Slot!", SpellText);
Expand Down Expand Up @@ -229,10 +229,10 @@ void DrawHUD(int client)
// g_Recharge[client] = GetEngineTime() + g_RechargeCooldown;
// isready[client] = false;
// }
if (iCountDown <= 0 && IsPlayerAlive(client) && isready[client] == true)
{
// if (iCountDown <= 0 && IsPlayerAlive(client) && isready[client] == true)
// {

}
// }
}

public bool IsKritzed(int client){
Expand Down
2 changes: 1 addition & 1 deletion paid_sentry_buster_mvm.sp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ stock void GiveGiantDemoKnight(int client)

SetEntPropFloat(Weapon1, Prop_Send, "m_flModelScale", 0.01);
}
TF2CustAttr_SetString(client, "Sentry Buster", "damage=2500.0 radius=250.0 lineofsight=1 timer=1.25");
TF2CustAttr_SetString(client, "Sentry Buster", "damage=25000.0 radius=500.0 lineofsight=1 timer=1.25");


}
Expand Down

0 comments on commit b6f2198

Please sign in to comment.