Author Topic: Mine Field  (Read 2591 times)

0 Members and 1 Guest are viewing this topic.

Offline headdie

  • i don't use punctuation lol
  • 212
  • Lawful Neutral with a Chaotic outook
    • Skype
    • Twitter
    • Headdie on Deviant Art
I was wondering if it would be possible for code to be set up to allow an event to be created along these lines.

Code: [Select]
Make Asteroids Explode
          Everytime
                    <
                       Distance
                                 <Any Friendly>
                                 <Any Asteroid Field Object>
                                 500
                    Self Destruct Nearest Object
then with one asteroid.tbl modification to set damage range and amount you would have a ready made minefield

any thoughts?
Minister of Interstellar Affairs Sol Union - Retired
quote General Battuta - "FRED is canon!"
Contact me at [email protected]
My Release Thread, Old Release Thread, Celestial Objects Thread, My rubbish attempts at art

 

Offline Echelon9

  • 210
Are you aware of the Minefields FRED example in the wiki?

 

Offline Alan Bolte

  • 28
  • Deneb III
    • @Compellor
Eh, that example is all well and good if you want a small number of stationary individual mines, but if you want the mines to move like asteroids, or you want a minefield with quite a lot of mines, etc., then it doesn't seem like an ideal solution.
Anything worth doing is worth analyzing to death -Iranon

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Yes this is easily done.  I have something like this (but a bit more complicated) working just fine.  All you need is something like this

Code: [Select]
$Formula: ( when-argument
   ( any-of
      "Streib Auto Turret 1-1"
      "Streib Auto Turret 1-2"
      "Streib Auto Turret 1-3"
      "Streib Auto Turret 1-4"
      "Streib Auto Turret 1-5"
      "Streib Auto Turret 1-6"
      "Streib Auto Turret 2-1"
      "Streib Auto Turret 2-2"
      "Streib Auto Turret 2-3"
      "Streib Auto Turret 2-4"
      "Streib Auto Turret 2-5"
      "Streib Auto Turret 2-6"
      "Streib Auto Turret 3-1"
      "Streib Auto Turret 3-2"
      "Streib Auto Turret 3-3"
      "Streib Auto Turret 3-4"
      "Streib Auto Turret 3-5"
      "Streib Auto Turret 3-6"
      "Streib Auto Turret 4-1"
      "Streib Auto Turret 4-2"
      "Streib Auto Turret 4-3"
      "Streib Auto Turret 4-4"
      "Streib Auto Turret 4-5"
      "Streib Auto Turret 4-6"
   )
   ( not
      ( <
         ( distance
            "<any friendly>"
            "<argument>"
         )
         1000
      )
   )
   ( ship-invisible "<argument>" )
   ( ship-stealthy "<argument>" )
)
+Name: Gun untargetable
+Repeat Count: 999999999
+Interval: 1
+Team: 0

Just change the invisible part to self-destruct.

Oops gave you the wrong one.  You will need to remove the not.  That would destroy all mines not close to any friendly ships. 


« Last Edit: July 22, 2009, 01:01:49 pm by FUBAR-BDHR »
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 Aardwolf

  • 211
  • Posts: 16,384
Also easily doable with Lua scripting.

  

Offline Trivial Psychic

  • 212
  • Snoop Junkie
I'd much rather see a coded solution to minefields, as placing individual mines cuts into the ships-per-mission limit.
The Trivial Psychic Strikes Again!

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Well that wouldn't really be a problem with 400 ships if you could have waves and place them.  For some reason SSGs seem to be the only things you can't have waves of. 

Although I guess you could make them invulnerable, use explosion-effect and move them while the explosion occurs.
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 Aardwolf

  • 211
  • Posts: 16,384
Escape pods, too.

Anyway, I think minefields are slated as part of an 'Advanced Hazard System' (AHS) for one of the next numbered releases.

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Don't count on that.  I don't think anyone is working on AHS or has been for some time.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline Tolwyn

  • The Admiral
  • Administrator
  • 214
  • Ridiculously Old Fraud
    • Wing Commander Saga
Me thinks Kazan wanted to work on it and since he's no longer active...
Wing Commander Saga: A Legend Is Reborn | WingCenter
 
Tolwyn’s reputation for risk taking with other people’s lives was considered  to understate the facts. The admiral’s willingness to sacrifice anyone or anything to achieve his objectives had long been lauded in the popular press. He was “the man who got things done”.- Colonel Blair

No errors, no random CTDs, just pure fun and proof of why getting hit with missiles is a bad thing.
-WC Saga's beta tester


Report Wing Commander Saga bugs with Mantis

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Probably, and since half the coders in that roadmap are no longer active or working on the same projects as they were back then, it really doesn't serve much of a purpose anymore.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
you could probibly just script asteroids to do the job, then use asteroids with a model that looks more like a mine.
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN