10 lines
471 B
Plaintext
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);
|
|
} |