Set push to only affect enemies?

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
ARC_Commander
High General
High General
Posts: 838
Joined: Tue Feb 06, 2007 7:18 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Set push to only affect enemies?

Post by ARC_Commander »

Title says it all. How would I set a grenade's push to only affect enemies? I've got it affecting everyone now, I'd like it to not affect friendlies. It's disastrous on maps like Kamino and Death Star.
User avatar
Snork
Lieutenant General
Lieutenant General
Posts: 669
Joined: Thu Jun 07, 2007 3:34 pm
Games I'm Playing :: SWBF2 and Minecraft
xbox live or psn: No gamertag set
Contact:

RE: Set push to only affect enemies?

Post by Snork »

Try looking at force pull....
TargetEnemy = "1"
TargetNeutral = "0"
TargetFriendly = "0"
Put TargetFriendly to 0 in the Force Push ODF.
ARC_Commander
High General
High General
Posts: 838
Joined: Tue Feb 06, 2007 7:18 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

RE: Set push to only affect enemies?

Post by ARC_Commander »

That actually works? And for explosions?
User avatar
Snork
Lieutenant General
Lieutenant General
Posts: 669
Joined: Thu Jun 07, 2007 3:34 pm
Games I'm Playing :: SWBF2 and Minecraft
xbox live or psn: No gamertag set
Contact:

RE: Set push to only affect enemies?

Post by Snork »

I think that should work.
User avatar
trainmaster611
Sith Lord
Sith Lord
Posts: 1779
Joined: Thu Aug 24, 2006 5:22 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: Building a railway to Coruscant
Contact:

RE: Set push to only affect enemies?

Post by trainmaster611 »

It only works for push. If you do it for explosions, that just means that the AI won't try to team kill you (you can make them do that). So its actually already set that way.
User avatar
Snork
Lieutenant General
Lieutenant General
Posts: 669
Joined: Thu Jun 07, 2007 3:34 pm
Games I'm Playing :: SWBF2 and Minecraft
xbox live or psn: No gamertag set
Contact:

RE: Set push to only affect enemies?

Post by Snork »

Heh. A FFA mode on Mos Eisly would be cool, though all the comps wolud spawnkill eachother.
Qdin
Old School Staff
Posts: 2059
Joined: Wed Feb 23, 2005 9:54 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: Set push to only affect enemies?

Post by Qdin »

speaking of affecting... is there something called TargetSelf? :P sometihng I just tohght of when speaking of explosions...
VF501
Lieutenant Colonel
Lieutenant Colonel
Posts: 539
Joined: Fri Jun 08, 2007 1:18 am
Projects :: Various Stuff- Weapon models. UDK Stuff
Games I'm Playing :: Fallout New Vegas
xbox live or psn: Vintage Tagious
Location: Terra Firma, Sol System; Milky Way

RE: Set push to only affect enemies?

Post by VF501 »

Well what do you want the explosion to do? Affect only you or not affect you? If you want the explosion to ignore you add this to the yournamehere_exp.odf. AffectOwner = "0". This disables the explosions effect on you, change it to 1 or remove it to be affected again.
Master Fionwë
Rebel Colonel
Rebel Colonel
Posts: 598
Joined: Wed May 30, 2007 3:33 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: At RCTC
Contact:

RE: Set push to only affect enemies?

Post by Master Fionwë »

It only works for push. If you do it for explosions, that just means that the AI won't try to team kill you (you can make them do that). So its actually already set that way.
I have that set in my blast cannon weapon, but the ai still blows twenty of his team off the ramps.
Post Reply