Go Back   3D Realms Forums > General Gaming Topics > Prey

Reply
 
Thread Tools
Old 07-01-2006, 08:34 PM   #1
Delta

Delta's Avatar
The Portal Wrench!
(branched from this thread)

http://rapidshare.de/files/24707003/...nch-3.zip.html

Originally created by forum member Sars, extended by me, this mod changes the wrench's alt-fire so that you can spawn two portals at any two arbitrary locations.

To install, make a folder named "script" (w/o quotes) inside your 'base' folder, then extract the .zip into there. Double-click the "Prey Modded" shortcut to start it.

To use, select the wrench weapon (usually number 1), then use alt-fire to set the location of the first portal. It'll be set silently. Then go to where you want the second portal and press alt-fire again. The two portals will then open up, where you can travel/shoot through at your leisure.

There's also the possibility of opening up multiple pairs of portals. Each pair is associated with someone's nickname, so you could open multiple portals by changing your name mid-game. A quick way to do this would be to bring down the Console (ctrl+alt+~ usually), and type: ui_name "NewNickName"

After changing your name, switch to another weapon then back to the wrench. The wrench will then be working on your new name. To close portals from previous names, change your name back to the name you used to create those old portals, re-select the wrench, then alt-fire.

The only real problem is that portals won't always be banked/rolled correctly. Other than that, I can't find any major problems.

Have fun. And thank you Sars for writing the original code in the first place.
Last edited by Delta; 07-02-2006 at 02:28 AM.
Delta is offline   Reply With Quote
Old 07-02-2006, 02:29 AM   #2
Delta

Delta's Avatar
Re: The Portal Wrench!
Updated. See first post.

You now have the ability to open multiple pairs of portals. Each pair is associated with a nickname. See first post for details.
Delta is offline   Reply With Quote
Old 07-03-2006, 04:21 AM   #3
Delta

Delta's Avatar
Re: The Portal Wrench!
http://video.google.com/videoplay?do...94773800764468

Uploaded a demonstration video of me using the Portal Wrench. I could've done a little more in the video, like shooting weapons through them, but I wanted to keep it fairly short, to save on both disk space and upload time with my measly 30 KB/sec upload speed (or lack thereof).

Also uploaded it to YouTube... like 10 hours ago. It's still processing. So I decided to upload it to Google a few minutes ago. :P
Delta is offline   Reply With Quote
Old 07-03-2006, 04:54 AM   #4
Rider

Rider's Avatar
Re: The Portal Wrench!
Whoa, that video really shows some potential for this! I'm getting that right now
__________________
Duke4.net - Duke's OTHER home.
HeadbangersFM - The station that keeps your head banging!
-------------
She's pretty, not "damn-she's-making-my-noodle-dance-samba"-pretty, but still very pretty... - Micki!
Rider is offline   Reply With Quote
Old 07-03-2006, 10:25 AM   #5
Talos

Talos's Avatar
Re: The Portal Wrench!
Awesome!! Especially the falling down scene!
I seriously don't understand why this thread gets no comments?!
This shows some of the potential for future mods
Talos is offline   Reply With Quote
Old 07-03-2006, 10:55 AM   #6
Mr. Greg

Mr. Greg's Avatar
Re: The Portal Wrench!
Awesome!

I PM'd you about putting this on Prey Files...
__________________
Site Administrator of Prey Files (http://prey.filefront.com)
Mr. Greg is offline   Reply With Quote
Old 07-03-2006, 11:02 AM   #7
Micki!

Micki!'s Avatar
Re: The Portal Wrench!
That's damn nice...
But it would be nice to have some sort of animation while triggering the weapon...
Just to indicate that you did press "fire"...

Do you think you could create a portal device alá Prey from 1998..? I mad ea thread about it, containing any of the stuff that is supposed to be thought through to create it... I just need someone who can actually make it, since my "modding skills" are pretty weak...

[EDIT:]
Hi Mr.Greg... Haven't seen you around, so i suppose you're new here... Welcome to our forums...
You're a filefront guy i see... Great website...
__________________
A true genius does not need boundaries such as 'common sense'
Micki! is offline   Reply With Quote
Old 07-03-2006, 11:26 AM   #8
Mr. Greg

Mr. Greg's Avatar
Re: The Portal Wrench!
Why hello.

I lurk a lot, just post when there's a nice discussion going.
__________________
Site Administrator of Prey Files (http://prey.filefront.com)
Mr. Greg is offline   Reply With Quote
Old 07-03-2006, 11:49 AM   #9
Micki!

Micki!'s Avatar
Re: The Portal Wrench!
Well i haven't seen you before, and that makes sense, seeing that you only have posted 3 posts untill now...
You deserve a "hello" from me because of that...

While i'm at it, i might add something funny (a comic about Prey) to the "pics of the day" to the Prey section at filefront, but i'm not sure if enough people are familar with the point of it...

Bleh nevermind, i shouldn't be saying this here...
__________________
A true genius does not need boundaries such as 'common sense'
Micki! is offline   Reply With Quote
Old 07-03-2006, 03:49 PM   #10
Gryph

Gryph's Avatar
Re: The Portal Wrench!
Holy crap this is cool! Good work the both of you.
__________________
1Emulation: The Peoples' Emulation Site
I pity the fool! - Mr. T
Gryph is offline   Reply With Quote
Old 07-03-2006, 04:03 PM   #11
Symok

Symok's Avatar
Re: The Portal Wrench!
That is so cool.

What happens if you try to join a multiprey game while using this? Can other people use/see your portals? Do they gain the ability to make portals, or only if you are hosting the server? (Seems like it could be used to cheat/get an unfair advantage if some of these things aren't handled right...)
__________________
"With the first link, the chain is forged. The first speech censored, the first thought forbidden, the first freedom denied, chains us all irrevocably."
Symok is offline   Reply With Quote
Old 07-03-2006, 04:49 PM   #12
Otto

Otto's Avatar
Re: The Portal Wrench!
That falling down bit was downright amusing.
Otto is offline   Reply With Quote
Old 07-03-2006, 04:53 PM   #13
Delta

Delta's Avatar
Re: The Portal Wrench!
Quote:
Originally Posted by Symok
That is so cool.

What happens if you try to join a multiprey game while using this? Can other people use/see your portals? Do they gain the ability to make portals, or only if you are hosting the server? (Seems like it could be used to cheat/get an unfair advantage if some of these things aren't handled right...)
I'm not sure how it's handled with other people in multiprey. I haven't had anyone to test it with. Maybe someone can set up a private server for testing this? That would be great. My upload isn't really good enough for hosting one myself.

Edit: And thanks for the response guys. I didn't think anyone would notice this thread. Looks like posting the video was a good idea. ;P
Last edited by Delta; 07-03-2006 at 05:00 PM.
Delta is offline   Reply With Quote
Old 07-03-2006, 05:18 PM   #14
Malphas

Malphas's Avatar
Re: The Portal Wrench!
Awesome mod! Trying it out soon.
Malphas is offline   Reply With Quote
Old 07-03-2006, 11:13 PM   #15
m4dmax

m4dmax's Avatar
Re: The Portal Wrench!
um..didnt joe say that back in the day there used to be a gun that did this but it was scrapped or somthing? Or maybe im mistaken. Either way, this is interesting and definitly cool to toy around with.
Last edited by m4dmax; 07-03-2006 at 11:31 PM.
m4dmax is offline   Reply With Quote
Old 07-03-2006, 11:19 PM   #16
Steve

Steve's Avatar
Re: The Portal Wrench!
Very cool!
Steve is offline   Reply With Quote
Old 07-03-2006, 11:34 PM   #17
Gryph

Gryph's Avatar
Re: The Portal Wrench!
Quote:
Originally Posted by m4dmax
um..didnt joe say that back in the day there used to be a gun that did this but it was scrapped or somthing? Or maybe im mistaken. Either way, this is interesting and definitly cool to toy around with.
The earlier version of Prey did have a weapon that did exactly the same thing. You can see it in action in the Prey 1998 demonstration video I think.
__________________
1Emulation: The Peoples' Emulation Site
I pity the fool! - Mr. T
Gryph is offline   Reply With Quote
Old 07-03-2006, 11:45 PM   #18
wieder
Re: The Portal Wrench!
Awesome toy. Puts the transporter from Unreal Tournament to shame in terms of fun possibilities in multiplayer.
wieder is offline   Reply With Quote
Old 07-04-2006, 12:55 AM   #19
Malphas

Malphas's Avatar
Re: The Portal Wrench!
I just used it online, its fun for quick escapes. You can use it on your own server if you have server mods allowed and have pure server unchecked. It's kind of unfair to the joiners who don't have it though.
Malphas is offline   Reply With Quote
Old 07-04-2006, 06:02 AM   #20
AWE300

AWE300's Avatar
Re: The Portal Wrench!
It's cheating :P
__________________
there. are. four. LIGHTS!
AWE300 is offline   Reply With Quote
Old 07-04-2006, 11:44 AM   #21
Gryph

Gryph's Avatar
Re: The Portal Wrench!
Quote:
Originally Posted by Malphas
I just used it online, its fun for quick escapes. You can use it on your own server if you have server mods allowed and have pure server unchecked. It's kind of unfair to the joiners who don't have it though.
I tried to join a game with it on but it wouldn't allow it. It would have been funny though to run around and see someone fall into a portal trap.
__________________
1Emulation: The Peoples' Emulation Site
I pity the fool! - Mr. T
Gryph is offline   Reply With Quote
Old 07-04-2006, 12:36 PM   #22
Denz

Denz's Avatar
Creat you own portals







Hahaha, impossible geometry comes to possible. Awesome sars, awesome.
__________________
crunchy superman said:
10 years and two complete restarts - that's either one very effective filter, or a whole lotta shit. :D
Last edited by Denz; 07-04-2006 at 12:54 PM. Reason: Creat you own portals
Denz is offline   Reply With Quote
Old 07-05-2006, 07:27 AM   #23
Orochi Avlis

Orochi Avlis's Avatar
Re: The Portal Wrench!
Great job Sars and Delta. That's awesome and it shows how versatile HH's and 3DR's portal system is.
__________________
PSN Handle: Orochi_Avlis
3DR Forums Steam Group
My Steam Stats
Orochi Avlis is offline   Reply With Quote
Old 07-05-2006, 07:57 AM   #24
Zogger
Re: The Portal Wrench!
heh, you can use it to get inside the force field..



also are you sure that other people can't use it online - it would make sense for the script to be copied to everyone else as well... maybe not in the demo tho.
Last edited by Zogger; 07-05-2006 at 08:01 AM.
Zogger is offline   Reply With Quote
Old 07-05-2006, 05:41 PM   #25
Delta

Delta's Avatar
Re: The Portal Wrench!
Well, I said that I'm not sure if it works online. I've no one to test with at the moment.

Also, the Portal Wrench seems to work in the single player game, so you could use it to mess around with the game's boundaries or whatever. Go into places you couldn't normally go. :P

What should be done for the next update? Maybe some sort of notification that you placed the first portal, but how should it be handled? I could print a console message, but then you wouldn't see it until you bring down the console. I could also try making the screen flash/darken slightly/temporarily when placing the first portal. Any other ideas?

And you guys can be assured that this mod will be continued into the full version. My pre-order is in \o/
Delta is offline   Reply With Quote
Old 07-05-2006, 06:36 PM   #26
Pat1487
Re: The Portal Wrench!
First of all, GREAT MOD AND NICE JOB

But there could be some improvements:

1. The portals are sometimes on thier sides, or angled weird, not that I mind this (fixing it would be nice, but I would worry about it later) but in Keeper of Gravity, when you put portals in different gravity planes the image of the area on the other side of the portal is upside down, or angled weird.

2. When you go through the portals your position seems to be raised up to the center of the other portal, this knid of ruins the portals smooth natural transitions from place to place, because when you go through it your veiw is higher then it was before you went through. It doesnt always happen, but it can even happen on flat surfaces.

3. Something to tell you where you put the 1st portal would be nice. Like the closed portal ball thing where portal1 will be untill you placed portal2, then they open. Theres been times where Ive lost track of where I put the first portal, or Ive forgotten that I put a first portal.

For additions:

1. Add an animation to the wrench, a lightning bolt would be cool. Just something to tell us that we used it.

2. If possible, add multiple portals that link together (3 or 4), and 1 portal that loops back in on itself. Maybe holding the wrench alt fire for a certain ammount of time will make 1 portal that loops back on itself, and you could have multiple portals by linking them in the order that the player places them until the player switches weapons, or uses prime fire on the wrench. Each portal thats placed could be the closed portal ball until the player switches weapons/uses wrench attack, and once the player switches weapons/uses wrench attack all the portals open at the same time.

3. Some kind of quick portal maker. 1 click makes 2 portals that link together, portal1 is in front of you, and portal2 is in the distance where you where aiming when you clicked. Maybe you can make prime fire of the wrench do this. Making the wrench only used for portals.

It works as a server side mod in a server that you create(only for you, and whoever else that has it prior to joining the server, it wont be downloaded by people who join), but joining other peoples servers crashes the game, resets the script, and rejoins the server.

Great job on its current state, the ui_name thing to stop multiple entity errors while allowing for multiple portal links was genius. I wish there was another command that could be used because it changes your name in multiplayer, and people who change their name to one that you used to open a portal link can destroy your portal link. I changed my portal1 name and portal2 name in the script to stop that (portal1Name/portal2Name=tempName + "edit here for better use in mp games");. I also changed my WRENCH_EYE_OFFSET to 70, because I felt 100 was to high up.

Great job, again.
Pat1487 is offline   Reply With Quote
Old 07-05-2006, 06:57 PM   #27
Delta

Delta's Avatar
Re: The Portal Wrench!
Thanks, Pat.

You have very nice suggestions, but I don't want to make the mod TOO complex. It should remain as easy to use as it is now. But people are free to make their own extensions of this mod.

Yeah, I noticed the portal height problem. It has more to do with how you place the portal, it seems, since it doesn't happen all the time. And WRENCH_EYE_OFFSET is 80 by default in the script, not 100. Dunno where 100 came from.

I'm not sure what's causing the rotation problem. Looking at the code, it seems like it should be working fine, but it's like it's ignoring one axis of rotation for some reason.

As for #3, I think that's how the mod originally worked when it only had Sars's code. I just felt that that method was a bit too limiting. Thus, I made it how it is now.

I'm not sure I want to replace the regular-fire function of the wrench. You might still want to use it

But yes, an indication of where/if you placed the first portal would be nice. The problem would be determing how to show it. What would we use as an in-game marker?

btw, anyone can feel free to contribute script code. I wouldn't mind. ;P

Add: I'm not sure what the use of a portal that loops back on itself would be, other than as a fancy mirror.
Last edited by Delta; 07-05-2006 at 07:05 PM.
Delta is offline   Reply With Quote
Old 07-05-2006, 08:37 PM   #28
Pat1487
Re: The Portal Wrench!
You can use the closed portal ball as a marker to show where youve placed a portal. The thing you can see in MP when your standing far away from a portal.

It wouldnt be to much more complex for the player to have multiple portals, 1 click makes 1 portal, another click makes another portal that links to the first portal, another click links to the previous portal that the player placed, another click links to the previous portal and so on untill the player switches weapons. When the wrench is put away, have all the portals open at once.

I had Sars origanal script, the 1 click portal making, and liked the speed but hated the limitations, so thats why I was hoping you would add it to yours, so the player can have the speed when he/she wants, and also have no limitations. I figured prime fire on wrench would be good for this because its quick, and because it would make the wrench a full fledged portal wrench.

The only real use for a portal that loops back on itself is that you can use it as a sheild that reflects enemy fire back at them. Other then that it would just be cool to have. Im not sure how you would be able to make something like that open after holding down alt fire for a set period of time, but it seemed to be the best way to make one that loops back on itself.

Also my WRENCH_EYE_OFFSET probably was 80, then I changed it to 50, which was to low, then I forgot default and just put it at 70, but since I put it at 50 I was thinking default must have been 100, because I normally half the default to see its effect.

The rotation problem only happens to me if I place 1 portal on 1 gravity plane, and then another on a different gravity plane. I have a G15 keyboard so I can see when Im on a different plane of gravity. Its like it doesnt know what to do when 1 is supposed to be rotated 1 way, and another is supposed to be rotated a different way.

At first I thought the height porblem was caused by the math of
Code:
portal1Origin/portal2Origin = origin + temp * 70;
being wrong, because a commented line is
Code:
vector neworg = origin + dir * (mag - WRENCH_WALL_OFFSET) * result;
but that doesnt seem to be the case.
Pat1487 is offline   Reply With Quote
Old 07-05-2006, 09:10 PM   #29
Ghostspectrum

Ghostspectrum's Avatar
Re: The Portal Wrench!
Anyway of getting it on the 360 Dang thats awseome.
__________________
Gamertag-Ghostsectrum
Proud XBOX360Owner Since 02/02/06
Ghostspectrum is offline   Reply With Quote
Old 07-06-2006, 12:19 AM   #30
Delta

Delta's Avatar
Re: The Portal Wrench!
The math should be correct. origin + temp *70 is used to calculate the position for being slightly in front of the camera, so it can place the portal. The commented code is old code from Sars's original code, when portal placement worked differently. The commented lines aren't needed obviously, but I just keep them there for reference or whatever purpose.

I'm pretty sure the origin (position) is being set correctly, because you can see the portals. Any height problem comes from how you're placing them in-game, because even when standing, the portal will take on the fact that you may be (even slightly) looking up or down. Perhaps it can be fixed if X-axis rotation of the portal is only set if the player is jumping. But will that take into account different gravity zones/wallwalks?

As for the banking/rolling problem, I think it's just how it calculates the values for entity.setAngles() in the alt-fire subroutine. But I can't see what the problem is exactly.

Your idea of using the portal ball thing sounds nice. I just need to know the name of that entity and what spawn arguments it takes. I'm not exactly sure how to find out without an SDK or something.

Your other idea of making the previously made portal link to the new portal on subsequent alt-fires also sounds nice, but how will the user destroy those portals if they want to?

And Ghostspectrum, I've no clue if the 360 version is moddable. :P I don't even have a 360. But thanks for the compliment.
Delta is offline   Reply With Quote
Old 07-06-2006, 11:43 AM   #31
viperjay
Re: The Portal Wrench!
Delta,

That is really cool. thank you for making it. It gave me an idea it would be cool if you make it do the same portal effects as the show or movie stargate from scifi channel.

viperjay
viperjay is offline   Reply With Quote
Old 07-06-2006, 12:00 PM   #32
Pat1487
Re: The Portal Wrench!
I was working on fixing and adding the stuff I suggested in the script itself and so far the only thing Ive added is quick portals (the old way that sars had the script) for the wrenches prime fire. So it can have a nice quick teleport to a place, and the more complex portals that delta made. It was really just practice for me because Ive never made weapon scripts. But now I think I got it down.

The old placment of portals doesnt have your view position raised up when you go through them, making it a smooth transition, so I was thinking that mixing some of his position placement code with some of yours would be able to fix it.

Quote:
Originally Posted by Delta
Your other idea of making the previously made portal link to the new portal on subsequent alt-fires also sounds nice, but how will the user destroy those portals if they want to?
I was thinking about this myself when I was working on it, I was thinking about a way to count how many portals the player had, and save it as a varible (nportals), and set up the portals as an array. Then when putting the weapon away:
Code:
void weapon_wrench::Idle() {
....
while( 1 ) {
		 if ( WEAPON_LOWERWEAPON ){
                        for(i=0;i<=nportals;i++)
                        sys.trigger( portal[i] );
			sys.wait( 1 );
                 }
                 }
would open them all. I origanally figured that nportals would just save and I would be able to use it again in void weapon_wrench::init() to close them like the way you have it set up. Thats when I realised that nportals wouldnt be saved once the wrench is gone. Maybe theres a way to pass the varible into the other weapon scripts. Im going to keep messing with it until I get something.

I would think that object_closedportal would be the entity, or something along those lines, I havent tried it though.
Pat1487 is offline   Reply With Quote
Old 07-16-2006, 03:06 PM   #33
tpz

tpz's Avatar
Re: The Portal Wrench!
A weapon like the hand of god in ROTT would be cool to spawn portals... like tommy is doing a magic spell.
tpz is offline   Reply With Quote
Old 07-18-2006, 11:55 AM   #34
gemsbok
Human Head Staff

gemsbok's Avatar
Re: The Portal Wrench!
Very neat work, Delta and Sars. Very cool.
gemsbok is offline   Reply With Quote
Old 07-18-2006, 03:35 PM   #35
Mr. Wonko
Re: The Portal Wrench!
i can't get it workin' in the full version... dunno why... i got it in base/scripts, i also got /scripts/ in a pk4 for testing... i tried typing reloadscript in the console, and testet both sp and mp (own server)... nothing happens when pressing alt fire... nothing special...
Mr. Wonko is offline   Reply With Quote
Old 07-18-2006, 06:07 PM   #36
avatar_58

avatar_58's Avatar
Re: The Portal Wrench!



hahaha...Best mod ever Good work.



Hahaha....






EDIT - I had an idea for an upgrade, what about a portal mover? Sort of like a gravity gun but for portals?
Last edited by avatar_58; 07-18-2006 at 07:18 PM.
avatar_58 is offline   Reply With Quote
Old 07-19-2006, 04:18 AM   #37
von OberWurst
Re: The Portal Wrench!
Quote:
Originally Posted by Delta
(branched from this thread)

http://rapidshare.de/files/24707003/...nch-3.zip.html

To install, make a folder named "script" (w/o quotes) inside your 'base' folder, then extract the .zip into there. Double-click the "Prey Modded" shortcut to start it.
I get an error at startup:
Unknown command 'vid_restart'
idRenderSystem::Shutdown()
Shutting down OpenGL subsystem
...shutting down QGL
Couldn't load default.cf

What can I do? I think the 'vid_restart' is from changing the monitor refresh rate from 60 Hz to 85.

I normal mode, everything works perfectly
von OberWurst is offline   Reply With Quote
Old 07-19-2006, 11:42 AM   #38
Amakou

Amakou's Avatar
Re: The Portal Wrench!
It doesn't seem to work with levels beyond the demo.....or at least with my saves.

Also, for any new release, I recommend just using Tommy's hand animation (like when he interacts with something), and add a lightning bolt.

~Amakou~

EDIT: Also, for in game marking for the first portal....would it be possible to have a blank blue portal outline? Like a blue portal that goes nowhere, then when you make the second it turns orange and they link up......or maybe a translucent blue portal outline..that only you see.....
__________________
I'm a Hitman fan
It'll be done When It's Done!
Last edited by Amakou; 07-19-2006 at 12:14 PM.
Amakou is offline   Reply With Quote
Old 07-19-2006, 12:33 PM   #39
PK 11
Re: The Portal Wrench!
Or just the orange "orb" that every portal is before you go near it... only in this case, it stays in that state until the other side is opened.
PK 11 is offline   Reply With Quote
Old 07-19-2006, 12:48 PM   #40
JudgeDeath2
Re: The Portal Wrench!
Notice:

NEW MIRROR! Me.

http://www.webergyltd.com/download/prey/

As of now, I host the demo, binaries, and the Wrench mod

More to come soon.
JudgeDeath2 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 09:31 AM.

Page generated in 0.20191789 seconds (100.00% PHP - 0% MySQL) with 16 queries

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.

Website is ©1987-2010 Apogee Software, Ltd.
Ideas and messages posted here become property of Apogee Software Ltd.