Mine Trigger

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
Kingpin
Jedi
Jedi
Posts: 1096
Joined: Fri Sep 13, 2013 7:09 pm
Projects :: The Sith Wars II
Location: Denver, CO
Contact:

Mine Trigger

Post by Kingpin »

How do I make mines that set off when anyone steps on it?
RacoonLR
Second Lance Corporal
Second Lance Corporal
Posts: 105
Joined: Fri Apr 25, 2014 5:31 pm
xbox live or psn: No gamertag set
Location: UNDER YOUR BED

Re: Mine Trigger

Post by RacoonLR »

Kingpin wrote:How do I make mines that set off when anyone steps on it?
Aren't mines included by default in swbf2?
User avatar
Kingpin
Jedi
Jedi
Posts: 1096
Joined: Fri Sep 13, 2013 7:09 pm
Projects :: The Sith Wars II
Location: Denver, CO
Contact:

Re: Mine Trigger

Post by Kingpin »

They are, but they only set off when the opposing team steps on it. I would like it for anyone who steps on it to explode.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Mine Trigger

Post by Marth8880 »

[color=#FFFFFF]Weapon_Notes.txt[/color] wrote:EntityMine ("mine"):
GeometryName: model used for the mine
LifeSpan: maximum life time
Rebound: coefficient of restitution (like a grenade)
Friction: coefficient of friction (like a grenade)
ExplosionTrigger: explosion used when triggered
ExplosionExpire: explosion used when its lifespan expires
ExplosionDeath: explosion used when destroyed
TriggerContact: trigger when touched by an enemy
TriggerRadius: radius to search for enemies; the mine will trigger when an enemy inside this radius stops or moves away
SuppressRadius: radius to search for friendlies; the mine will not trigger when a friend is inside
The only parameter relating to the way the ordnance triggers seems to be TriggerContact, but I'm pretty sure setting it to 0 just makes it explode when its lifespan elapses. I'd try it anyways, though, just to be sure. ;)
MileHighGuy
Jedi
Jedi
Posts: 1194
Joined: Fri Dec 19, 2008 7:58 pm

Re: Mine Trigger

Post by MileHighGuy »

I don't think it is triggercontact.The mines have to be on a different team. I saw this work in the hunger games during FFA mode, I was killed by my own mines because they were on a separate team.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Mine Trigger

Post by Marth8880 »

MileHighGuy wrote:I don't think it is triggercontact.The mines have to be on a different team. I saw this work in the hunger games during FFA mode, I was killed by my own mines because they were on a separate team.
Image

Well then. :o Not sure how one would change the team of an ordnance, though it might be possible, I guess.
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: Mine Trigger

Post by Noobasaurus »

Off-topic: Why did I just watch that? I don't even know.
User avatar
Kingpin
Jedi
Jedi
Posts: 1096
Joined: Fri Sep 13, 2013 7:09 pm
Projects :: The Sith Wars II
Location: Denver, CO
Contact:

Re: Mine Trigger

Post by Kingpin »

Marth8880 wrote:
MileHighGuy wrote:I don't think it is triggercontact.The mines have to be on a different team. I saw this work in the hunger games during FFA mode, I was killed by my own mines because they were on a separate team.
Image

Well then. :o Not sure how one would change the team of an ordnance, though it might be possible, I guess.

Either I ate something I should not have, or that video is real o_0

On-Topic: Bring fourth K, King of the Hungerith Gameiths! *blows horn*
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: Mine Trigger

Post by Anakin »

Maybe something like affect friend??

btw what means
TriggerSingle = "0"
and
TriggerAll = "1"
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Mine Trigger

Post by Marth8880 »

Nah, AffectFriend only works for emitter ordnance.
User avatar
Kingpin
Jedi
Jedi
Posts: 1096
Joined: Fri Sep 13, 2013 7:09 pm
Projects :: The Sith Wars II
Location: Denver, CO
Contact:

Re: Mine Trigger

Post by Kingpin »

Hm. I tried making him lay two mines, one from each team, but then it just exploded :P

That's alright, thanks for the help AND trippy 7 minutes of my life :)
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Mine Trigger

Post by Marth8880 »

Wait, how are you determining the mine's team? Also, you'd probably want to set the team to neutral (0).
User avatar
Kingpin
Jedi
Jedi
Posts: 1096
Joined: Fri Sep 13, 2013 7:09 pm
Projects :: The Sith Wars II
Location: Denver, CO
Contact:

Re: Mine Trigger

Post by Kingpin »

With the team set to neutral, neither sets it off.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Mine Trigger

Post by Marth8880 »

:o Hmm. Set up a local team, make it so it views teams 1 and 2 as enemies, and set the mine's team to the local team.
User avatar
Kingpin
Jedi
Jedi
Posts: 1096
Joined: Fri Sep 13, 2013 7:09 pm
Projects :: The Sith Wars II
Location: Denver, CO
Contact:

Re: Mine Trigger

Post by Kingpin »

Now my player explodes as soon as he lays it :(
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Mine Trigger

Post by Marth8880 »

Ah, yeah, makes sense. :p Since there's no real way to delay the trigger activation, you're going to have to either increase the MinStrength and MaxStrength for the dispenser so that the mine is thrown far enough away from the player, decrease the TriggerRadius, decrease the ordnance Velocity, or a combination of the three.

Edit: Actually, you *could* just make it so the unit dispensing the mine is immune to mines. :o
thelegend
Sith
Sith
Posts: 1433
Joined: Thu Jan 23, 2014 6:01 am
Projects :: Star Wars - Battlefront III Legacy
Games I'm Playing :: Swbf GTA CoD LoL KH
xbox live or psn: El_Fabricio#
Location: Right behind you :)

Re: Mine Trigger

Post by thelegend »

Maybe change this lines in your mine's odf to:

Code: Select all

TargetEnemy             = "1"
TargetNeutral           = "1"
TargetFriendly          = "1"
I think it could work. I am not sure.
User avatar
Kingpin
Jedi
Jedi
Posts: 1096
Joined: Fri Sep 13, 2013 7:09 pm
Projects :: The Sith Wars II
Location: Denver, CO
Contact:

Re: Mine Trigger

Post by Kingpin »

That's what I did before, but I exploded on myself :(
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Mine Trigger

Post by Marth8880 »

Those aren't valid parameters for ordnance ODFs.

Full list of parameters (i.e., the most useful doc in the world): http://www.secretsociety.com/forum/down ... meters.txt
Post Reply