Changed folder name.

Changed folder name.
This commit is contained in:
Jaysyn904
2022-10-07 21:08:37 -04:00
parent 1c33c2843e
commit 8d97886c3f
7060 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
#include "x2_inc_itemprop"
//The include is for the IPSafeAddItemProperty function
//Makes the PC speaker's onhand weapon glow electrically. Doesn't affect
//the damage it deals, and it will only work on melee weapons
//This is to make sure you don't stack visual effect, replace the one
//that is currently on the weapon.
void IPSafeAddItemProperty(
object oItem,
itemproperty nip,
float fDuration = 0.0f,
int nAddItemPropertyPolicy = X2_IP_ADDPROP_POLICY_REPLACE_EXISTING,
int bIgnoreDurationType = FALSE,
int bIgnoreSubType = FALSE
);
void main()
{
object oPC = GetPCSpeaker();
object oItem = GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oPC);
if (!GetIsObjectValid(oItem)) return;
itemproperty ipAdd = ItemPropertyVisualEffect(ITEM_VISUAL_SONIC);
IPSafeAddItemProperty(oItem, ipAdd);
}