Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: haha, look what I found in Half-Life 2's source code  (Read 1529 times)

0 Members and 1 Guest are viewing this topic.
haha, look what I found in Half-Life 2's source ...
« on: July 10, 2006, 02:40:18 am »
  • Doesn't afraid of anything
  • *
  • Reputation: +42/-0
  • Offline Offline
  • Gender: Male
  • Posts: 7002
This was in a function for returning the type of ammo that's being shot.

Code: [Select]
Input  : pAttacker - Dude what shot the gun.
// pVictim - Dude what done got shot.
// nAmmoType - What been shot out.
// Output : How much hurt to put on dude what done got shot (pVictim)

I love Valve XD
Logged



i love big weenies and i cannot lie
Re: haha, look what I found in Half-Life 2's sou...
« Reply #1 on: July 10, 2006, 03:49:58 am »
  • *
  • Reputation: +1/-0
  • Offline Offline
  • Gender: Male
  • Posts: 4588
That is the funniest commenting ever. It adds fun to code.
Logged
the a o d c
Re: haha, look what I found in Half-Life 2's sou...
« Reply #2 on: July 10, 2006, 08:07:05 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 136
ROFL. Any other finds?
Logged
Re: haha, look what I found in Half-Life 2's sou...
« Reply #3 on: July 10, 2006, 09:09:02 am »
  • *
  • Reputation: +3/-0
  • Offline Offline
  • Gender: Male
  • Posts: 6629
Hehe, don't be suprised a lot of coders tend to write amusing comments in there code. hehe you should check out M$'s, tons upon tons of swearing and profanity >_<.
Logged

Pedlya

Pederp
Re: haha, look what I found in Half-Life 2's sou...
« Reply #4 on: July 10, 2006, 10:25:54 am »
  • Vote for Harvey!~
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 2408
Dude, that made me laugh so hard I spilled pepsi all over my socks... gohan you owe me 4 dollars :(
Logged
So what! I wanna get out! 'Cos there's so much out there! So many different people, living different lives! Incredibly good guys, bad guys... Folks completely different from us! It's one huge melting pot! See, it's not about success, dying in the streets, who's better, who's not! I just want to be a part of it! I realized that even if I've no connections, no talent, even if I'm one big loser, I want to use my hands and feet to think and move, to shape my own life! We can just die here or we can try, see what we've got!
Re: haha, look what I found in Half-Life 2's sou...
« Reply #5 on: July 10, 2006, 10:50:14 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 5213
Dude, im sticking that in my signature :P
Logged
Re: haha, look what I found in Half-Life 2's sou...
« Reply #6 on: July 10, 2006, 02:35:32 pm »
  • Doesn't afraid of anything
  • *
  • Reputation: +42/-0
  • Offline Offline
  • Gender: Male
  • Posts: 7002
See, this is why I love Valve.  I also found stuff next to some functions like "This doesn't work, why is this here??  Mike did you do this????"
Logged



i love big weenies and i cannot lie
Re: haha, look what I found in Half-Life 2's sou...
« Reply #7 on: July 10, 2006, 03:46:16 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 5213
See, this is why I love Valve.  I also found stuff next to some functions like "This doesn't work, why is this here??  Mike did you do this????"

LMFAO XDXDXD
Logged
Re: haha, look what I found in Half-Life 2's sou...
« Reply #8 on: July 11, 2006, 07:52:01 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 123
How did you get hold of HL2's source code? o_O I know it got leaked, but I Yahoo'd "half life 2 source code," and all I got was news articles.
Logged
Re: haha, look what I found in Half-Life 2's sou...
« Reply #9 on: July 11, 2006, 09:02:01 pm »
  • *
  • Reputation: +3/-0
  • Offline Offline
  • Gender: Male
  • Posts: 6629
How did you get hold of HL2's source code? o_O I know it got leaked, but I Yahoo'd "half life 2 source code," and all I got was news articles.
I think he probably just meant scripts.
Logged
Re: haha, look what I found in Half-Life 2's sou...
« Reply #10 on: July 11, 2006, 09:46:31 pm »
  • Doesn't afraid of anything
  • *
  • Reputation: +42/-0
  • Offline Offline
  • Gender: Male
  • Posts: 7002
How did you get hold of HL2's source code? o_O I know it got leaked, but I Yahoo'd "half life 2 source code," and all I got was news articles.

The source SDK provides you with the code for modding.  It's probably not the ENTIRE source since you can't make the mods stand alone (you still need HL2 to run the mods)
Logged



i love big weenies and i cannot lie
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.332 seconds with 56 queries.