Initial commit
Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
38
_module/nss/cnr_forge_anim.nss
Normal file
38
_module/nss/cnr_forge_anim.nss
Normal file
@@ -0,0 +1,38 @@
|
||||
/////////////////////////////////////////////////////////
|
||||
//
|
||||
// Craftable Natural Resources (CNR) by Festyx
|
||||
//
|
||||
// Name: cnr_forge_anim
|
||||
//
|
||||
// Desc: This script animates the PC when crafting
|
||||
// at the forge.
|
||||
//
|
||||
// Author: David Bobeck 26Jan03
|
||||
//
|
||||
/////////////////////////////////////////////////////////
|
||||
void main()
|
||||
{
|
||||
object oPC = GetLocalObject(OBJECT_SELF, "oCnrCraftingPC");
|
||||
|
||||
if (GetIsPC(oPC))
|
||||
{
|
||||
// The animation delay should be set to the number of seconds it
|
||||
// takes to complete this animation.
|
||||
SetLocalFloat(oPC, "fCnrAnimationDelay", 4.0);
|
||||
int bSuccess = GetLocalInt(oPC, "bCnrCraftingResult");
|
||||
|
||||
AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_GET_MID, 1.0, 3.0));
|
||||
AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_LOOK_FAR, 1.0, 1.0));
|
||||
AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_GET_MID, 1.0, 2.0));
|
||||
if (bSuccess)
|
||||
{
|
||||
AssignCommand(oPC, ActionPlayAnimation(ANIMATION_FIREFORGET_VICTORY1, 1.0));
|
||||
}
|
||||
else
|
||||
{
|
||||
AssignCommand(oPC, ActionPlayAnimation(ANIMATION_FIREFORGET_PAUSE_SCRATCH_HEAD, 1.0));
|
||||
}
|
||||
|
||||
PlaySound("as_cv_mineshovl2");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user