Hard Light Productions Forums
Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: spartan_0214 on August 31, 2006, 09:20:14 am
-
I was working with capturing a Shivan vessel (I'm not going to tell you what the campaign's going to be about) and I'm trying to get it to go neutral before the transport docks. BTW, DH tells me to tell you that I'm running retail (I think). Every time I tell it to go neutral and I get close to it, it becomes hostile. I got it to work if it's friendly, but it works better for the mission if it's neutral.
Any ideas?
-
Post events you used,............I can help more that way :D
Normally, use
"when_ship_disabled>shivanship>change_iff>shivanship>Neutral"
BTW i miss spoiler tags :(
-
Actually it sounds like its working. There's little difference between Neutral and Hostile. Both sides will attack whoever they can. IIRC it was done like that so the Hammer of Light would be enemies of both the GTA/PVN and the Shivans. You might try changing the IFF to Unknown, I don't think they attack Friendly unless told to.
-
:wtf:
[sarcastic joke]
Pfft, What do you know about Fred Axem?
[/sarcastic joke]
*hides behind a blast door*
Kidding dude !
If Axem says it works, Then its working...............
-
I used this:
when-cargo-is-known-delay
Unknown Shivan
0
- change-iff
Unkown Shivan
Neutral
-
Ya, listen to Axem. You probably just want to change it to Friendly.
Or, you could write your own IFF table and use that. :)
-
I would dearly love to see Spartan attempt to write his own table. :lol:
Actually, he took the "change to friendly" option, I played his mission, and it seems to be working. Only problem I can see is this "derelict cruiser" has all its weapons activated. What's up with that, Spartan?
-
Sounds like an interrogation:
"Pfft, What do you know about Fred Axem? "
I've never met the man, I know as much about him as I do Kaiser Sose!
( :lol:)
WHO is this Fred Axem you speak of?
-
I propose you add the following:
when-cargo-is-known-delay
Unknown Shivan
0
- add_AI_goal
Unkown Shivan
- AI_play_dead
If I recall correctly that should make it stay still and behave :D
-
Yep. You have a few choices depending on what you want to have occur.
1) Change the ship to friendly.
PRO : All your wingmen will stop shooting at it. It won't shoot at them.
CON: All enemy forces will shoot at it.
2) Leave it hostile
Pro's and cons are basically the reverse of the first one.
3) Protect and Beam-Protect it
PRO : Nothing will attack it.
CON : It can still attack everything else
4) Use AI-Play-Dead
PRO : Won't attack anything
CON : Friendlies will still attack it.
As you can see there is no single solution to the problem. What you have to do is a combination. Personally I favour the following. Leave the ship as hostile. Use the protect SEXPs to prevent friendly ships firing at it. Use AI-Play-Dead to make the ship stop firing back.
Once the capture ship has made contact change the IFF to friendly after a few minutes. i.e simulate the time it takes for the marines to secure the ship.
Yes that's more complex than what you have but I've always thought it works better than having a ship instantly turn green the second it is disabled.
-
you all assume I want the weapons to be offline. . . :D :nervous:
-
Well, if it's a derelict ship, then I don't think the gunners would be firing the guns, do you? :D
-
you all assume I want the weapons to be offline. . . :D :nervous:
If you don't want that what was your problem? :p
-
NO! I wanted to see if it was possible to make, after you scanned it, a Shivan ship be neutral. . .
-
Ermmmm... yeah it should go without saying that it is possible, whether that works in your mission is another question entirely.
-
Well you could always change its iff to unknown.
-
3) Protect and Beam-Protect it
PRO : Nothing will attack it.
CON : It can still attack everything else
4) Use AI-Play-Dead
PRO : Won't attack anything
CON : Friendlies will still attack it.
As you can see there is no single solution to the problem. What you have to do is a combination. Personally I favour the following. Leave the ship as hostile. Use the protect SEXPs to prevent friendly ships firing at it. Use AI-Play-Dead to make the ship stop firing back.
Once the capture ship has made contact change the IFF to friendly after a few minutes. i.e simulate the time it takes for the marines to secure the ship.
Yes that's more complex than what you have but I've always thought it works better than having a ship instantly turn green the second it is disabled.
What about a combination of 3 and 4?
-
That's pretty much what I suggested if you look at what you quoted :)
-
That's pretty much what I suggested if you look at what you quoted :)
Lol that's the sorta thing I'd expect to see ZB post (different context and minus the smiley, obviously) ;)
-
Well I have taken over his job of explaining the mysteries of FRED to newbies. :)
-
it doesn't matter, I want the ship to have weapons on, I know how to turn them off. Unless one of you wants to try to convince me to keep the weapons offline.