Amon_PRC8/_module/nss/on_devcrit.nss
Jaysyn904 c5cffc37af Initial Commit
Initial Commit [v1.01]
2025-04-03 19:00:46 -04:00

10 lines
471 B
Plaintext

// on_devcrit.nss
#include "nwnx_weapon"
void main ()
{
NWNX_Weapon_BypassDevastatingCritical(); // bypass the normal devastating critical
//if (!GetIsPC(OBJECT_SELF)) return; // this depends on what you want, on our server only PCs have dev crt
// increase local var devcrit counter by 1 because the on_devcrit script
// can run more than one time before the on_attack script runs
SetLocalInt(OBJECT_SELF, "devcrit", GetLocalInt(OBJECT_SELF, "devcrit") + 1);
}