Portal gun?

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

Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Portal gun?

Post by Noobasaurus »

Is it possible to make a portal-style gun that when you shoot it puts down a portal or whatever and when you enter that portal you get teleported to the other? I was just wondering because I thought it was cool...

A portal-style campaign map wouldn't be bad.
Hidden/Spoiler:
Is this copyright material to make a portal-like gun? I sure hope not... :runaway:
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: Portal gun?

Post by Dakota »

well. i invented an extremely crude one by mistake.

it was a det pack that you could get into and drive. you could place it and then anytime u want you press the button that usally is the detonator and instead it teleports you to driving the det. once you get out though your unit is invisable and falls through objects but can still shoot and kill. its in my Mega Weapons Mod beta thingy.

i think setting the det to instead of being a det it has no msh but plays an effect of a portal and then you could probably fix the no colision and msh thing for the unit by setting the portal vehecal up properly. (i just copied and pasted lines of a remote rocket... and then set it to not fly but hover.) then you could have it so that u can click anytime after placing a portal and go to it. and then it would be a turret so it won't move and then you can get out of it.

:quotes: Teleporting :quotes: sorta
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Portal gun?

Post by Teancum »

Technically speaking you can teleport a player, but you can't make a 'portal' show what's on the other side. That tech just doesn't exist in the engine.
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: Portal gun?

Post by Noobasaurus »

Teancum wrote:Technically speaking you can teleport a player, but you can't make a 'portal' show what's on the other side. That tech just doesn't exist in the engine.
I didn't want it to "show" what's on the other side, just be a nice portal...like a blue oval or something.
Hidden/Spoiler:
And the portal can be a spinning vortex! :yes:
Dakota wrote:well. i invented an extremely crude one by mistake.

it was a det pack that you could get into and drive. you could place it and then anytime u want you press the button that usally is the detonator and instead it teleports you to driving the det. once you get out though your unit is invisable and falls through objects but can still shoot and kill. its in my Mega Weapons Mod beta thingy.

i think setting the det to instead of being a det it has no msh but plays an effect of a portal and then you could probably fix the no colision and msh thing for the unit by setting the portal vehecal up properly. (i just copied and pasted lines of a remote rocket... and then set it to not fly but hover.) then you could have it so that u can click anytime after placing a portal and go to it. and then it would be a turret so it won't move and then you can get out of it.

:quotes: Teleporting :quotes: sorta
Uhmm...I didn't really get that but I'll look over it and see what I can do...

And then after I get the actual portal gun set up, then it'll be on to the tgas and mshs...
Hidden/Spoiler:
That is, if I get a portal gun set up...
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: Portal gun?

Post by Fiodis »

Noobasaurus wrote:
Dakota wrote:well. i invented an extremely crude one by mistake.

it was a det pack that you could get into and drive. you could place it and then anytime u want you press the button that usally is the detonator and instead it teleports you to driving the det. once you get out though your unit is invisable and falls through objects but can still shoot and kill. its in my Mega Weapons Mod beta thingy.

i think setting the det to instead of being a det it has no msh but plays an effect of a portal and then you could probably fix the no colision and msh thing for the unit by setting the portal vehecal up properly. (i just copied and pasted lines of a remote rocket... and then set it to not fly but hover.) then you could have it so that u can click anytime after placing a portal and go to it. and then it would be a turret so it won't move and then you can get out of it.

:quotes: Teleporting :quotes: sorta
Uhmm...I didn't really get that but I'll look over it and see what I can do...
It sounds like he took a remote droid and modified it. In which case, this part:
and then it would be a turret so it won't move and then you can get out of it.
won't work.

You can do this in the stock game. Dispense a remote droid, drive it somewhere, and press e for enter/exit vehicle. You'll go back to your unit. Right-click again and you'll go back to your remote droid, but your unit will stay where it was. You can't "exit" it like you would a turret.
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: Portal gun?

Post by Snork »

So basically just make the 'remote droid' the same model as your player with the same weapon?
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: Portal gun?

Post by Fiodis »

Snork wrote:So basically just make the 'remote droid' the same model as your player with the same weapon?
Mav did this in Spira with that "Summon" weapon, where you dispense an Aayla-like thing. It worked very well for what he intended to do, but it's not practical as a portal device for several reasons. There's two seperate copies of you, which is not the point of portalling. Also, one can die without any consequence while the other one, if killed, will take you back to the unit selection screen. There are other issues, some of them potentially causing CTDs, but I won't waste time going into them - basically it just isn't suitable for this.

I know Portal 2 came out and it's awesome and now people want to make a similar thing for BF2, but BF2 just isn't designed for that. If you want to play Portal, get Portal.
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: Portal gun?

Post by Noobasaurus »

Fiodis wrote:
Snork wrote:So basically just make the 'remote droid' the same model as your player with the same weapon?
Mav did this in Spira with that "Summon" weapon, where you dispense an Aayla-like thing. It worked very well for what he intended to do, but it's not practical as a portal device for several reasons. There's two seperate copies of you, which is not the point of portalling. Also, one can die without any consequence while the other one, if killed, will take you back to the unit selection screen. There are other issues, some of them potentially causing CTDs, but I won't waste time going into them - basically it just isn't suitable for this.

I know Portal 2 came out and it's awesome and now people want to make a similar thing for BF2, but BF2 just isn't designed for that. If you want to play Portal, get Portal.
I see. Well, I really don't like the portal games, I was just trying to simulate a "portal" gun.
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: Portal gun?

Post by Dakota »

Fiodis wrote:
Noobasaurus wrote:
Dakota wrote:well. i invented an extremely crude one by mistake.

it was a det pack that you could get into and drive. you could place it and then anytime u want you press the button that usally is the detonator and instead it teleports you to driving the det. once you get out though your unit is invisable and falls through objects but can still shoot and kill. its in my Mega Weapons Mod beta thingy.

i think setting the det to instead of being a det it has no msh but plays an effect of a portal and then you could probably fix the no colision and msh thing for the unit by setting the portal vehecal up properly. (i just copied and pasted lines of a remote rocket... and then set it to not fly but hover.) then you could have it so that u can click anytime after placing a portal and go to it. and then it would be a turret so it won't move and then you can get out of it.

:quotes: Teleporting :quotes: sorta
Uhmm...I didn't really get that but I'll look over it and see what I can do...
It sounds like he took a remote droid and modified it. In which case, this part:
and then it would be a turret so it won't move and then you can get out of it.
won't work.

You can do this in the stock game. Dispense a remote droid, drive it somewhere, and press e for enter/exit vehicle. You'll go back to your unit. Right-click again and you'll go back to your remote droid, but your unit will stay where it was. You can't "exit" it like you would a turret.
didn't you read the message. i said it was a modded det pack. it was a regular det pack and the only thing i changed was that i set the detpack ord odf to the remote rocket ord odf with copy and paste then set the msh and set it to hover not fly.

it was weird because instead of detonation it just teleported you into driving the det. try re-reading the message for more detail of what you could do. i know this works already its in the mod i made and named in the first post. look the mod up on filefront.
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: Portal gun?

Post by Fiodis »

Fiodis wrote:It sounds like he took a remote droid and modified it.
I am aware you described a different procedure.
Dakota wrote:look the mod up on filefront.
I would if I could find it. Unless you mean this one, in which case I didn't see anything in it like what you described. :?
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: Portal gun?

Post by Dakota »

Fiodis wrote:
Fiodis wrote:It sounds like he took a remote droid and modified it.
I am aware you described a different procedure.
Dakota wrote:look the mod up on filefront.
I would if I could find it. Unless you mean this one, in which case I didn't see anything in it like what you described. :?

that link is the mod. the det pack is the weapon i was talking about. use the det by placing it down. walk anywhere on the map then press it again and then you teleport to the det (driving it)

if you get out you have no player msh or colision. so i think thats the issue needing fixing, it could be fixed with some more correct odf work. (i just copied and pasted the remote rocket odf. and changed the msh and vehecal type to hover)
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: Portal gun?

Post by Fiodis »

Fiodis wrote:
Dakota wrote:look the mod up on filefront.
I would if I could find it. Unless you mean this one, in which case I didn't see anything in it like what you described. :?
http://www.xfire.com/video/4a84a3/
:|
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: Portal gun?

Post by Noobasaurus »

Fiodis wrote:
Fiodis wrote:
Dakota wrote:look the mod up on filefront.
I would if I could find it. Unless you mean this one, in which case I didn't see anything in it like what you described. :?
http://www.xfire.com/video/4a84a3/
:|
Now that's interesting...
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: Portal gun?

Post by Dakota »

oh yeah heres where the beta part comes in. for some reason the auto turret and det pack placement only work on certain maps. (Another reason why i should have coded it right in the lua...) i tested it on mygeeto. so far i know it doesn't work on mos eisly, geonosis, or hoth.

test it on mygeeto to see what it does. the whole weapon is a bit messy but i think it could get fixed up by giving it more correct vehecal/turret coding instead of the remote rocket thing. this was my first modding attempt so it is kinda.... bad. i didn't even know about gametoast when i made that mod.

anyway you could test it on mygeeto to see it work. setting it up correctly in the odf would probably fix the problem. (for a portal maybe a turret would work better than a remote rocket that hovers and looks like a det pack)
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Portal gun?

Post by [RDH]Zerted »

Short Answer
  • Yes, you place turrets that when shoot players, teleports them to the related turret.
Details
  • You want a gun that places two auto-turrets.
  • In Lua when the turret is created, move it to a team that is the enemy of all other teams. This will allow the 'portal' to work for everyone.
  • In Lua, you have to track when/where a player places the first turret and when/where he places the second one. It would be best, but not required, to also track when the turrets are destroyed.
  • The turret's firing range is how close a player has to get to the turret in order to be teleported.
  • In Lua after a player is teleported from a turret, you need to block him from being teleported again for a limited time. This gives him a chance to get out of the second turret's range.
Extras
  • It doesn't have to be a turret. It could be a reoccurring explosion or a mine. Anything that lets you detect a player from Lua could work.
  • You could have self-piloted vehicles driving around shooting (thus teleporting) random players to other locations/vehicles on the map :runaway:
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: Portal gun?

Post by THEWULFMAN »

Zerted, wow, thats an awesome solution! :o I may try this out on my own, but seeing as that I am only the 3rd best coder on my team, I may want to wait till the better coders can. But it may not be as complicated as it sounds.
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: Portal gun?

Post by Noobasaurus »

Oh my... :shock:

That's quite something!
THEWULFMAN wrote:Zerted, wow, thats an awesome solution! :o I may try this out on my own, but seeing as that I am only the 3rd best coder on my team, I may want to wait till the better coders can. But it may not be as complicated as it sounds.
Well I'm not a good coder, so I shall sit in the seat next to you.
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: Portal gun?

Post by Dakota »

i got another idea thats better than my last one but fails vs zerted's one.

linked turrets......

is there a way to have linked deployable turrets?

if so then you could place one "portal" somewhere then when you need to teleport back to it you could place another one and then get in it and then swap positions which would put you in the other turret. this would allow you to go back and forth. my other idea only allowed one way travel.
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: Portal gun?

Post by Noobasaurus »

As I was playing Mav's "The Big L" map in campaign, I saw that there might be another way to teleport yourself...

Since it seems when you hit the object you get teleported to it, perhaps you could make all the walls that specific type of object...

Well, I don't know... :?
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: Portal gun?

Post by Fiodis »

Noobasaurus wrote:As I was playing Mav's "The Big L" map in campaign, I saw that there might be another way to teleport yourself...

Since it seems when you hit the object you get teleported to it, perhaps you could make all the walls that specific type of object...

Well, I don't know... :?
It should be pointed out that it's easy to teleport yourself via lua. What Mav does in The Big L is teleport you to an object when you hit it with a specific weapon.
Post Reply