A portal-style campaign map wouldn't be bad.
Portal gun?
Moderator: Moderators
-
Noobasaurus
- Droid Pilot Assassin

- Posts: 2006
- Joined: Tue Aug 17, 2010 5:56 pm
Portal gun?
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.
A portal-style campaign map wouldn't be bad.
Hidden/Spoiler:
- Dakota
- Field Commander

- Posts: 991
- Joined: Mon Dec 06, 2010 8:21 pm
- Projects :: making random weapon assets
- xbox live or psn: PS3 beats xbox
- Location: at a computer desk floating around in space
Re: Portal gun?
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.
Teleporting
sorta
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.
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: Portal gun?
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

- Posts: 2006
- Joined: Tue Aug 17, 2010 5:56 pm
Re: Portal gun?
I didn't want it to "show" what's on the other side, just be a nice portal...like a blue oval or something.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.
Hidden/Spoiler:
Uhmm...I didn't really get that but I'll look over it and see what I can do...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.
Teleporting
sorta
And then after I get the actual portal gun set up, then it'll be on to the tgas and mshs...
Hidden/Spoiler:
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: Portal gun?
It sounds like he took a remote droid and modified it. In which case, this part:Noobasaurus wrote:Uhmm...I didn't really get that but I'll look over it and see what I can do...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.
Teleporting
sorta
won't work.and then it would be a turret so it won't move and then you can get out of it.
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.
- Snork
- Lieutenant General

- Posts: 669
- Joined: Thu Jun 07, 2007 3:34 pm
- xbox live or psn: No gamertag set
- Contact:
Re: Portal gun?
So basically just make the 'remote droid' the same model as your player with the same weapon?
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: Portal gun?
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.Snork wrote:So basically just make the 'remote droid' the same model as your player with the same weapon?
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

- Posts: 2006
- Joined: Tue Aug 17, 2010 5:56 pm
Re: Portal gun?
I see. Well, I really don't like the portal games, I was just trying to simulate a "portal" gun.Fiodis wrote: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.Snork wrote:So basically just make the 'remote droid' the same model as your player with the same weapon?
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.
- Dakota
- Field Commander

- Posts: 991
- Joined: Mon Dec 06, 2010 8:21 pm
- Projects :: making random weapon assets
- xbox live or psn: PS3 beats xbox
- Location: at a computer desk floating around in space
Re: Portal gun?
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.Fiodis wrote:It sounds like he took a remote droid and modified it. In which case, this part:Noobasaurus wrote:Uhmm...I didn't really get that but I'll look over it and see what I can do...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.
Teleporting
sorta
won't work.and then it would be a turret so it won't move and then you can get out of it.
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.
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.
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: Portal gun?
I am aware you described a different procedure.Fiodis wrote:It sounds like he took a remote droid and modified it.
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.Dakota wrote:look the mod up on filefront.
- Dakota
- Field Commander

- Posts: 991
- Joined: Mon Dec 06, 2010 8:21 pm
- Projects :: making random weapon assets
- xbox live or psn: PS3 beats xbox
- Location: at a computer desk floating around in space
Re: Portal gun?
Fiodis wrote:I am aware you described a different procedure.Fiodis wrote:It sounds like he took a remote droid and modified it.
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.Dakota wrote:look the mod up on filefront.
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)
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: Portal gun?
http://www.xfire.com/video/4a84a3/Fiodis wrote: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.Dakota wrote:look the mod up on filefront.
-
Noobasaurus
- Droid Pilot Assassin

- Posts: 2006
- Joined: Tue Aug 17, 2010 5:56 pm
Re: Portal gun?
Now that's interesting...Fiodis wrote:http://www.xfire.com/video/4a84a3/Fiodis wrote: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.Dakota wrote:look the mod up on filefront.
- Dakota
- Field Commander

- Posts: 991
- Joined: Mon Dec 06, 2010 8:21 pm
- Projects :: making random weapon assets
- xbox live or psn: PS3 beats xbox
- Location: at a computer desk floating around in space
Re: Portal gun?
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)
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)
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
Re: Portal gun?
Short Answer
- Yes, you place turrets that when shoot players, teleports them to the related turret.
- 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.
- 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

-
THEWULFMAN
- Space Ranger
- Posts: 5557
- Joined: Tue Aug 17, 2010 3:30 pm
- Projects :: Evolved 2
- Location: Columbus, Ohio
- Contact:
Re: Portal gun?
Zerted, wow, thats an awesome solution!
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

- Posts: 2006
- Joined: Tue Aug 17, 2010 5:56 pm
Re: Portal gun?
Oh my...
That's quite something!
That's quite something!
Well I'm not a good coder, so I shall sit in the seat next to you.THEWULFMAN wrote:Zerted, wow, thats an awesome solution!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.
- Dakota
- Field Commander

- Posts: 991
- Joined: Mon Dec 06, 2010 8:21 pm
- Projects :: making random weapon assets
- xbox live or psn: PS3 beats xbox
- Location: at a computer desk floating around in space
Re: Portal gun?
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.
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

- Posts: 2006
- Joined: Tue Aug 17, 2010 5:56 pm
Re: Portal gun?
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...
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...
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: Portal gun?
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.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...
