Page 1 of 2

Portal gun?

Posted: Sat Jul 16, 2011 10:25 pm
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:

Re: Portal gun?

Posted: Sun Jul 17, 2011 12:44 am
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

Re: Portal gun?

Posted: Sun Jul 17, 2011 8:08 am
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.

Re: Portal gun?

Posted: Sun Jul 17, 2011 11:32 am
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...

Re: Portal gun?

Posted: Sun Jul 17, 2011 11:38 am
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.

Re: Portal gun?

Posted: Sun Jul 17, 2011 12:19 pm
by Snork
So basically just make the 'remote droid' the same model as your player with the same weapon?

Re: Portal gun?

Posted: Sun Jul 17, 2011 1:38 pm
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.

Re: Portal gun?

Posted: Sun Jul 17, 2011 1:54 pm
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.

Re: Portal gun?

Posted: Sun Jul 17, 2011 6:39 pm
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.

Re: Portal gun?

Posted: Sun Jul 17, 2011 8:25 pm
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. :?

Re: Portal gun?

Posted: Sun Jul 17, 2011 9:47 pm
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)

Re: Portal gun?

Posted: Mon Jul 18, 2011 6:53 am
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/
:|

Re: Portal gun?

Posted: Mon Jul 18, 2011 10:45 am
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...

Re: Portal gun?

Posted: Mon Jul 18, 2011 12:54 pm
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)

Re: Portal gun?

Posted: Mon Jul 18, 2011 11:21 pm
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:

Re: Portal gun?

Posted: Tue Jul 19, 2011 12:53 am
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.

Re: Portal gun?

Posted: Tue Jul 19, 2011 10:17 am
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.

Re: Portal gun?

Posted: Tue Jul 19, 2011 12:30 pm
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.

Re: Portal gun?

Posted: Wed Jul 20, 2011 1:01 pm
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... :?

Re: Portal gun?

Posted: Wed Jul 20, 2011 2:56 pm
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.