Page 1 of 1

Findings in MM2 + MM2 Coding Reference

Posted: Sun Jul 20, 2014 9:39 pm
by aaro4130
Hey! I just want you guys to know that there are A LOT! A LOT! of hidden things in MM2, I wish we had the source code so bad.

-Ragdoll pedestrians [Yes, I can't enable them though]
-Debug pages, possibly shows values in game, because the function name is "AddD3DStatsPage" (one of them)
-DrawGlow function in CarModel class. maybe for actual lighting from lights? [headlights are DrawHeadlights]
-PlayVoice from police cars. was in MM1 and planned for MM2 by the looks of this
-EjectAll in the breakables manager, I assume this instantly makes all the breakables "explode" off the car :lol:

I'll add some more soon, I also figured out how some of the stuff works.

E.g. This is how hudarrow01 gets loaded

Code: Select all

asMeshForm hudarrow01 = asMeshForm.Load("hudarrow01"); hudArrow01.setZRead(false); //ignore depth hudArrow01.setZWrite(false); //always on top //this is an asNode, which is a scene node?? no clue on this asNode.AddChild(hudarrow01); //add to sceen huddarrow01.setLighting(false); // disable lighting for hud arrow

Posted: Sun Jul 20, 2014 10:36 pm
by Franch88
Really interesting finds. These look residues of test and debug functions that the programmers were using and experimenting... I assume that these values traces are present in the game EXE, is it so?

Posted: Sun Jul 20, 2014 11:49 pm
by aaro4130
Yeah, somewhat.

Also check out the wiki, not about MM2 files, not about MM2 gameplay, about MM2 CODE!
https://a4.acoxi.com/index.php/Midtown_M ... _Reference

Posted: Mon Jul 21, 2014 3:40 pm
by The_Most_Wanted
It's really interesting, Good luck bro! :)

Posted: Tue Jul 22, 2014 6:46 pm
by whoami
Whoa, sounds awesome! :)

Posted: Tue Jul 22, 2014 7:30 pm
by sajmon14
Nice find :)