Aschbourne_PRC8/_module/nss/use_catapult.nss
GetOffMyYarn 69879d6957 Areas and Fixes
Added CCOH and missing areas
Changed some areas to be craftable,
Fixed some on death issues,
Fixed the Gaurd
2024-08-30 11:38:44 -04:00

22 lines
510 B
Plaintext

/**
use_catapult
OnUsed: Fire a catapult burst
J.D. Robertson, 2002
*/
#include "i_battle"
void main()
{
if (!GetLocalInt(OBJECT_SELF, "Loading"))
{
FireCatapult();
// Delay the next firing. Rapid fire catapults are a lot of fun (an
// insane amount of fun actually, take these lines out and try it)
// but not too realistic
SetLocalInt(OBJECT_SELF, "Loading", TRUE);
DelayCommand(5.0, SetLocalInt(OBJECT_SELF, "Loading", FALSE));
}
}