Author Topic: Asteroids and ship protection  (Read 2284 times)

0 Members and 1 Guest are viewing this topic.

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Asteroids and ship protection
I've got a mission that I wrote a long time ago.  Actually it was my first attempt.  Been playing around with it again.  Is there any way to make asteroids in an active field ignore certain ships?  I pretty sure you can't do this in retail but what about the newer builds?  If not what about passive fields with an inner boundary?
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 
Re: Asteroids and ship protection
No clue....... i don't even know if passive is a real word.......   :pimp:
Sig nuked! New one coming soon!

 

Offline Wobble73

  • 210
  • Reality is for people with no imagination
    • Steam
Re: Asteroids and ship protection
No clue....... i don't even know if passive is a real word.......   :pimp:

Passive is the opposite of active (IIRC)
Who is General Failure and why is he reading my hard disk?
Early bird gets the worm, but the second mouse gets the cheese
Ambition is a poor excuse for not having enough sense to be lazy.
 
Member of the Scooby Doo Fanclub. And we're not talking a cartoon dog here people!!

 You would be well adviced to question the wisdom of older forumites, we all have our preferences and perversions

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Asteroids and ship protection
I've got a mission that I wrote a long time ago.  Actually it was my first attempt.  Been playing around with it again.  Is there any way to make asteroids in an active field ignore certain ships?  I pretty sure you can't do this in retail but what about the newer builds? 

Just took a look at the asteroid code and it's not possible. It does not look like it would be hard to add though. All you'd need to do is add a ship flag "Don't target for asteroids" or something and have the set_asteroid_throw_objnum() function check if that flag was set before picking it as a target.

However personally I'd prefer to spend more time and solve it in a non-half arsed manner that allowed you to target asteroids at anything rather than capships only as not only would that be better for asteroids but it would be better if the code was ever used to allow minefields etc. (Something I believe bob is looking at right now).

Quote
If not what about passive fields with an inner boundary?

Nope. Absolutely no idea why not though. Again if this is changed I'd rather have it so that you could have more control over the shape of the field than simply being stuck with a box. (maybe constraining it to the area mapped out by a pof or something cool like that)
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Turey

  • Installer dude
  • 211
  • The diminutive form of Turambar.
    • FreeSpace Open Installer Homepage
Re: Asteroids and ship protection
Nope. Absolutely no idea why not though. Again if this is changed I'd rather have it so that you could have more control over the shape of the field than simply being stuck with a box. (maybe constraining it to the area mapped out by a pof or something cool like that)

I recall we had a discussion on this very topic (pof defined asteroid fields) not too long ago. Don't remember the topic name or the outcome, but it had to have been started after I came back to HLP this August.
Creator of the FreeSpace Open Installer.
"Calm. The ****. Down." -Taristin
why would an SCP error be considered as news? :wtf: *smacks Cobra*It's a feature.

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Asteroids and ship protection
No big deal.  Mission's been like that since 2000 so it can wait a little longer.   :D
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

  

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Asteroids and ship protection
I recall we had a discussion on this very topic (pof defined asteroid fields) not too long ago. Don't remember the topic name or the outcome, but it had to have been started after I came back to HLP this August.

Probably Kazan's thread about improving the asteroid code. That's where I got the idea from anyway :)
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]