How to prevent engineer from self destroying?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Rends
Sith
Sith
Posts: 1278
Joined: Fri Oct 15, 2004 6:34 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Germany
Contact:

How to prevent engineer from self destroying?

Post by Rends »

I just added some mine hint nodes to my map and i ran into the problem that the Rebel engineer place a detonator pack at the node but it explode immediately. No problem with the units placing regular mines.
Any way to stop the engineer from suicide?
User avatar
StarkillerMarek
Rebel Colonel
Rebel Colonel
Posts: 611
Joined: Wed Aug 12, 2009 4:42 pm
Location: I may be back.

Re: How to prevent engineer from self destroying?

Post by StarkillerMarek »

This has been discussed before and I think it has to do with adding something like: "TargetEnemy=1" in weapons odf. Not sure though, this isn't my sort of thing.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: How to prevent engineer from self destroying?

Post by AQT »

You're on the right track, Starkiller.
AQT wrote:You can fix the suicide bomber problem by adding this line to the detpack's ODF

Code: Select all

TargetEnemy             = "1"
somewhere under [Properties].
from http://www.gametoast.com/forums/viewtop ... 27&t=20137
User avatar
Rends
Sith
Sith
Posts: 1278
Joined: Fri Oct 15, 2004 6:34 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Germany
Contact:

Re: How to prevent engineer from self destroying?

Post by Rends »

nice but my ALL side is stock one :(
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: How to prevent engineer from self destroying?

Post by Fiodis »

You can't make a seperate side, then, for this one unit? I suppose you could use SetClassProperty, then....
User avatar
Sky_216
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2086
Joined: Mon Feb 13, 2006 3:28 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: How to prevent engineer from self destroying?

Post by Sky_216 »

But that'll mess up mp.

@Rends: you can make a side based on another side -
so load the default alliance side first in your lua, and for your custom side have an engineer based on the stock ALL engineer (same way its based on the all_default_engineer), change the detpack weapon to the modified detpack, and load the "new" engineer after the stock engineer in your lua. You'll end up with a side thats probably a few kbs.
Post Reply