blamod
foust
Posted: Oct 20 2009, 05:18 PM


cRZYFOUST
*

Group: Members
Posts: 76
Member No.: 866
Joined: 7-June 09



Oh... my... God. I can't believe how awesome I am. I actually reimplemented bunnyhopping in ep2 by modifying the source code itself. Due to the complexity of the code I decided not to look into details of it really. After all, I'm no modder. But, I figured I might just try to check the gamemovement.cpp from ep2's code against the original hl2 code and apply changes where I see fit. This brutal code replacing turned up a couple errors with c++ classes which, fortunately, I managed to resolve myself. I was expecting flying to work as well after this fix, but I'm guessing you need to change parts of the engine itself for that, not the playermovement. Didn't find any developer comments about the glitch in the code either, but a lot of other interesting stuff.

Anyway, since I changed so much of the code I can't really narrow down which changes exactly caused it to work. I didn't change one function, compiled the code and than ran the game to see if it helped. There's just too much code you would need to test, which is why I usually replaced multiple functions. So for now, unless we get information from someone who actually understands the entire code, the mod will irrevocably have hl2 movement. If we should ever consider making a run of this mod (for the fun of it obviously) we should probably try to beat the game regularly first to see if my changes produced bugs in the code that will let the game crash at certain points.

My theory for the flying glitch is simple (hopefully not too simple). I'm guessing there is some kind of threshold in the code that determines whether to drop an object when it's being blocked by another object or not. In essence this would mean that reimplementing the flying glitch would make teleporting easier as well. I found a commented line like "make picking up objects which player is standing on impossible". Unfortunately, replacing the corresponding lines with the hl2 source code didn't do the trick. Eitherway, I'll try to find out a little more about the nature of the flying glitch. There don't seem to be any old discussions of developers on the net about it, at least none I found yet. We'll see. Maybe CooL's contact knows more.

I uploaded an early version of the mighty blamod for those interested. No need to extract any extra files from gcf's. As long as you have ep2 installed, just extract the archive into your sourcemods folder and you're good to go. I hope you don't have any problems with it. It worked flawlessly for me so far. For some reason the movement just feels a little different for me compared to ep1 for example, but maybe that's just my imagination. See for yourself!
Top
CptCool
Posted: Oct 20 2009, 07:50 PM


Member
*

Group: Members
Posts: 59
Member No.: 874
Joined: 28-July 09



Yeah once MenteR has more time i'll see if he's interested.
Top
typical
Posted: Oct 23 2009, 12:46 AM


Special Member
*

Group: Members
Posts: 159
Member No.: 344
Joined: 11-December 07



This mod is awesome!
Top
Xyrec
  Posted: Oct 24 2009, 02:20 PM


Beginner
*

Group: Members
Posts: 15
Member No.: 323
Joined: 30-October 07



foust. I fucking love you!
Top
CptCool
Posted: Oct 24 2009, 09:14 PM


Member
*

Group: Members
Posts: 59
Member No.: 874
Joined: 28-July 09



Even though it's my doing. dry.gif

This post has been edited by CptCool on Oct 24 2009, 09:15 PM
Top
typical
Posted: Oct 25 2009, 12:31 PM


Special Member
*

Group: Members
Posts: 159
Member No.: 344
Joined: 11-December 07



Hey Cool. THIS MOD IS FUCKING AWESOME. I LOVE YOU SO FUCKING MUCH I CAN'T BELIEVE YOU MANAGED TO DO THIS.
Top
CptCool
Posted: Oct 25 2009, 02:22 PM


Member
*

Group: Members
Posts: 59
Member No.: 874
Joined: 28-July 09



smile.gif
Top
foust
Posted: Oct 28 2009, 06:33 PM


cRZYFOUST
*

Group: Members
Posts: 76
Member No.: 866
Joined: 7-June 09



QUOTE (CptCool @ Oct 24 2009, 11:14 PM)
Even though it's my doing.  <_<

Lies!! This version was my doing, i.e. self-compiled dlls after digging around in the source code, not your stolen mod/dll collection chaos :pp
Top
CptCool
Posted: Oct 28 2009, 07:50 PM


Member
*

Group: Members
Posts: 59
Member No.: 874
Joined: 28-July 09



Hey, hey, shut up, if it wasn't for me, you wouldn't even HAVE this mod biggrin.gif
Top
foust
Posted: Nov 6 2009, 06:07 PM


cRZYFOUST
*

Group: Members
Posts: 76
Member No.: 866
Joined: 7-June 09



I didn't believe it myself, but I've re-implemented the flying glitch. There are still little issues that need to be taken care of. It seems that in EP2 the grabbing frequency of the object you're carrying is a lot higher compared to HL2. That means if you keep pressing your AHK jump key, look down and push forward you'll gain a very high amount of speed and eventually will be faster than the object you're using to fly, thus dropping it cause you're trying to grab the object that's actually behind you. That's my current thesis at least.

Also, as of yet it's not possible to use little pieces from broken crates to fly. The big wooden pallets (I had a discussion with tooley about what they're really called; lemme know if you know), and shovels (!!) work great. Barrels are weird but work. I'll take a closer look at the grabbing frequency theory to see if I can lower it a bit. I did some more engine alterations I'll write up in a changelog later today. Looks like I'm creating a mod now biggrin.gif
Top
CptCool
Posted: Nov 6 2009, 10:54 PM


Member
*

Group: Members
Posts: 59
Member No.: 874
Joined: 28-July 09



You mean f3 did...
Top
Fthree
Posted: Nov 6 2009, 10:58 PM





Group: Members
Posts: 1
Member No.: 880
Joined: 6-November 09



Hi!
Top
foust
Posted: Nov 6 2009, 11:04 PM


cRZYFOUST
*

Group: Members
Posts: 76
Member No.: 866
Joined: 7-June 09



Nope, he didn't do anything yet :>
Top
CptCool
Posted: Nov 6 2009, 11:23 PM


Member
*

Group: Members
Posts: 59
Member No.: 874
Joined: 28-July 09



Meh
Top
typical
Posted: Nov 6 2009, 11:44 PM


Special Member
*

Group: Members
Posts: 159
Member No.: 344
Joined: 11-December 07



OWNED!
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | Episode Two | Next Newest »


Topic Options



Hosted for free by InvisionFree (Terms of Use: Updated 7/7/05) | Powered by Invision Power Board v1.3 Final © 2003 IPS, Inc.
Page creation time: 0.8143 seconds | Archive