Aschbourne_PRC8/_module/nss/use_catapult.nss

22 lines
510 B
Plaintext
Raw Normal View History

2024-06-14 10:48:20 -04:00
/**
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));
}
}