Initial upload.

Adding base PRC 4.19a files to repository.
This commit is contained in:
Jaysyn904
2022-10-07 13:51:24 -04:00
parent 646eb01834
commit 1662218bb4
22441 changed files with 1274376 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
/*:://////////////////////////////////////////////
//:: Name Sleep Heartbeat
//:: FileName SMP_ail_sleep
//:://////////////////////////////////////////////
This runs when a creature is asleep.
Bioware just had "Commandable, Clear Actions, Uncommandable"
I've added ZZzzz's :-)
Random really.
//:://////////////////////////////////////////////
//:: Created By: Jasperre
//:: Created On: July+
//::////////////////////////////////////////////*/
#include "SMP_INC_AILMENT"
void main()
{
// Makes them able to be commanded
SetCommandable(TRUE);
// Clears all the actions.
ClearAllActions();
// Randomly do sleep ZZzzz
if(d6() == 1)
{
effect eVis = EffectVisualEffect(VFX_IMP_SLEEP);
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, OBJECT_SELF);
}
// Makes them unable to be commanded
SetCommandable(FALSE);
}