Thanks Facksy, that helped!
Athena AI... The attached code will allow you to give a Festive Targe with sample attributes to a target player. I'm trying to improve my coding skills so please feel free to edit/critique.
Solution:
Code:
GiveFestiveTarge(client)
{
if (IsValidClient(client))
{
TF2_RemoveWeaponSlot(client, 1);
TF2Items_GiveWeapon(client, 1144);
new iEntity = -1;
while ((iEntity = FindEntityByClassname(iEntity, "tf_wearable_demoshield")) != -1)
{
if (client == GetEntPropEnt(iEntity, Prop_Data, "m_hOwnerEntity"))
{
TF2Attrib_SetByName(iEntity, "charge time increased", 4.0);
TF2Attrib_SetByName(iEntity, "charge recharge rate increased", 3.0);
break;
}
}
}
}
Plugin Command: givetarge
can target self or others
to target self: !givetarge
to target others: !givetarge playername
Enjoy!