Initial Upload
Initial Upload
This commit is contained in:
33
_module/nss/ped_ck_fire.nss
Normal file
33
_module/nss/ped_ck_fire.nss
Normal file
@@ -0,0 +1,33 @@
|
||||
void main()
|
||||
{
|
||||
object oItem=GetInventoryDisturbItem();
|
||||
object oPC=GetLastDisturbed();
|
||||
effect eVis = EffectVisualEffect(VFX_IMP_HEAD_FIRE );
|
||||
effect eVis2 = EffectVisualEffect(VFX_IMP_SLOW );
|
||||
int nType=GetInventoryDisturbType();
|
||||
|
||||
while (GetIsObjectValid(oItem))
|
||||
{
|
||||
|
||||
if(GetTag(oItem)!= "firegem") return;
|
||||
|
||||
if(nType == INVENTORY_DISTURB_TYPE_ADDED)
|
||||
{
|
||||
AssignCommand(oPC, PlaySound("sim_pulsfire"));
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, OBJECT_SELF);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if(nType == INVENTORY_DISTURB_TYPE_REMOVED)
|
||||
{
|
||||
AssignCommand(oPC, PlaySound("sce_negative"));
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis2, OBJECT_SELF);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user