Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: headdie on July 22, 2009, 04:55:35 am
-
I was wondering if it would be possible for code to be set up to allow an event to be created along these lines.
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?
-
Are you aware of the Minefields (http://www.hard-light.net/wiki/index.php/Minefields) FRED example in the wiki?
-
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.
-
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
$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.
-
Also easily doable with Lua scripting.
-
I'd much rather see a coded solution to minefields, as placing individual mines cuts into the ships-per-mission limit.
-
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.
-
Escape pods, too.
Anyway, I think minefields are slated as part of an 'Advanced Hazard System' (AHS) for one of the next numbered releases.
-
Don't count on that. I don't think anyone is working on AHS or has been for some time.
-
Me thinks Kazan wanted to work on it and since he's no longer active...
-
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.
-
you could probibly just script asteroids to do the job, then use asteroids with a model that looks more like a mine.