/**************************************************************************** * KB1Bomber.SNL * AI LOGIC FOR THE KEWLIT TANK * DAVIDE February 17, 2003 ****************************************************************************/ #inherit "TurretVehicle.SNL" /**************************************************************************** * SNL GLOBAL VARIABLES ****************************************************************************/ /**************************************************************************** * Called when the object is first created * TimS March 3 2002 ****************************************************************************/ OnCreate() { // Call the base class ::OnCreate(); //SetProperty1(THIS, "SeeWorldObjects", 0 ); // set the cannon height //SetProperty1(THIS, "CannonHeight", 77.5); //SetProperty1(THIS, "Weight", 60); //SetProperty1(THIS, "TurretIdleRotationSpeed", 20); //SetProperty1(THIS, "CannonIdleRotationSpeed", 20); //SetProperty1(THIS, "TurretAttackRotationSpeed", 75); //SetProperty1(THIS, "CannonAttackRotationSpeed", 75); //SetProperty1(THIS, "TurretDeltaCWBoundary", 0); // how far right the cannon can aim, 0 for 360 //SetProperty1(THIS, "TurretDeltaCCWBounday", 0); // how far left the cannon can aim, 0 for 360 //SetProperty1(THIS, "CannonDeltaUpperBoundary", 30); // how far up the cannon can aim //SetProperty1(THIS, "CannonDeltaLowerBoundary", -30); // how far down the cannon can aim //SetProperty1(THIS, "GravityAmount", 0.25 ); //SetProperty1(THIS, "MaxIdleAccel", 0.15 ); //SetProperty1(THIS, "MaxAlertAccel", 0.15 ); //SetProperty1(THIS, "TiltSensitivity", 60 ); //SetProperty1(THIS, "TiltDampening", 3 ); //SetProperty1(THIS, "AmmoType", 3 ); // 4 is Air Bomb time //SetProperty1(THIS, "StopMovingOnAttack", 0 ); // Dont stop moving on attack } /***************************************************************************/ /**************************************************************************** * Called when the object is first turned on * TimS March 3 2002 ****************************************************************************/ OnBeginScript() { ::OnBeginScript(); } /***************************************************************************/ /**************************************************************************** * Called when at the beginning of the level * DAVIDE Jan 15 2003 ****************************************************************************/ OnBeginScript_Weapon() { // set the barrel length //SetProperty1(THIS, "BarrelLength", 50); //SetWeaponBarrelOffset(0, 0, -50); //SetWeaponAim(0, 0, -1); KillScript( THIS ); } /***************************************************************************/