Re: Halloween Witch OXP (was: NPC ship attack using missiles)
Posted: Sun Oct 17, 2021 9:19 pm
Here's a version Cody that sort of works, well i fixed the old style subentity lines in shipdata.plist that might have been breaking them.
I don't remember these witches having ball turrets, but i found a few older versions of the OXP on my computer and it seems they must have had them added around version 1.1 or something, i wasn't 100% sure how to define these in modern oolite so i *think* they're working correctly, although they required a model.dat before they would work, i don't have anything to hand so i've just used the pumpkin model.
I'd forgotten what a pain in the bum these were to fight, if anyone wants to make them more fun then please do, thay also do a lot of weird stuff like comms hails and things like standard ships which is a bit weird
witch oxp v1.5.2
https://drive.google.com/file/d/15n5SsV ... sp=sharing
griff_witch_Main.js in the scripts folder has the lines that decide whether to spawn these or not
is setting the date, 9 is actually for october as i think january is actually 0 and not 1. the 31 is the day so you can change that to todays date if you just want to check the witches out before halloween.
these lines roll the dice to decide if the witches get spawned, adjust that 0.33 to make them more common or less
I don't remember these witches having ball turrets, but i found a few older versions of the OXP on my computer and it seems they must have had them added around version 1.1 or something, i wasn't 100% sure how to define these in modern oolite so i *think* they're working correctly, although they required a model.dat before they would work, i don't have anything to hand so i've just used the pumpkin model.
I'd forgotten what a pain in the bum these were to fight, if anyone wants to make them more fun then please do, thay also do a lot of weird stuff like comms hails and things like standard ships which is a bit weird
https://drive.google.com/file/d/15n5SsV ... sp=sharing
griff_witch_Main.js in the scripts folder has the lines that decide whether to spawn these or not
if (this.today.getMonth()===9 && this.today.getDate() === 31 ){
is setting the date, 9 is actually for october as i think january is actually 0 and not 1. the 31 is the day so you can change that to todays date if you just want to check the witches out before halloween.
these lines roll the dice to decide if the witches get spawned, adjust that 0.33 to make them more common or less
system.legacy_addSystemShips
is a depricated command, witches still show up but the log complains about the depricated command, i'm not sure of the current correct command to usethis.addWitches = function () {
if (this.HalloweenTime && Math.random() < 0.33) {
system.legacy_addSystemShips("griff_witch", 1, 0.0);
}