Checkout My First HL2 moding :D

  • Thread starter Thread starter spree
  • Start date Start date
S

spree

Guest
Hello I"m new here, and new to moding, I konw this has been done but I still wanna brag with my first successfull moding :P
I was playing with the HL2 weapons so I made the gravity gun to be the super gravity gun during all the game ( and not only since the last level ).

this is how i did it: weapon_physicscannon.cpp
The function which checks if the player should have the MegaPhysCannon. Instade of checking now it returns true.

bool PlayerHasMegaPhysCannon()
{ return true; // MYMOD :D
// return ( GlobalEntity_GetState("super_phys_gun") == GLOBAL_ON );
}

Here are some pics:
http://www.geocities.com/ciu_il/images/hl2mod/d3_c17_040029.jpg
d3_c17_040029.jpg

http://www.geocities.com/ciu_il/images/hl2mod/d3_c17_040030.jpg
d3_c17_040030.jpg

http://www.geocities.com/ciu_il/images/hl2mod/d3_c17_040044.jpg
d3_c17_040044.jpg

http://www.geocities.com/ciu_il/images/hl2mod/d3_c17_080003.jpg
d3_c17_080003.jpg

http://www.geocities.com/ciu_il/images/hl2mod/d3_c17_080009.jpg
d3_c17_080009.jpg

http://www.geocities.com/ciu_il/images/hl2mod/d3_c17_080016.jpg
d3_c17_080016.jpg

http://www.geocities.com/ciu_il/images/hl2mod/d3_c17_080020.jpg
d3_c17_080020.jpg
 
I've already written a toggle command for it, and mr_unanimous has had some impulse code out for a while. You're a bit late. Browse the threads, see if there's any requests you feel like picking up.
 
weapon_physicscannon.cpp

Oh and just for future reference, use the code tags,
Code:
code /code

except put brackets around them :)

Cheers!
 
Back
Top