User:SirYodaJedi/Nuggets: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(→‎NPC descriptions: some other fun ones)
(dead links)
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
{{todo|nocat=1|permalinks}}
{{todo|nocat=1|permalinks}}
== Strider minigun damage ==
== Strider minigun damage ==
From https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/shared/hl2/hl2_gamerules.cpp#L1822-L1863
From https://github.com/ValveSoftware/source-sdk-2013/blob/master/src/game/shared/hl2/hl2_gamerules.cpp#L1822-L1858
<pre>
<pre>
// STRIDER MINIGUN DAMAGE - Pull up a chair and I'll tell you a tale.
// STRIDER MINIGUN DAMAGE - Pull up a chair and I'll tell you a tale.
Line 42: Line 42:
== Looping through crap ==
== Looping through crap ==


https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/utils/common/bsplib.cpp#L2289-L2298
https://github.com/ValveSoftware/source-sdk-2013/blob/singleplayer/src/utils/common/bsplib.cpp#L2233-L2242
<pre>
<pre>
/*
/*
Line 55: Line 55:
*/
*/
</pre>
</pre>
{{note|Unfunnily replaced with "junk" in the 2025 SDK.}}


== NPC descriptions ==
== NPC descriptions ==
Line 74: Line 75:
=== Breen ===
=== Breen ===
https://github.com/ValveSoftware/source-sdk-2013/blob/master/src/game/server/hl2/npc_breen.cpp
https://github.com/ValveSoftware/source-sdk-2013/blob/master/src/game/server/hl2/npc_breen.cpp
</pre>
<pre>
//========= Copyright Valve Corporation, All rights reserved. ============//
//========= Copyright Valve Corporation, All rights reserved. ============//
//
//

Latest revision as of 06:11, 28 May 2025

Icon-ambox-humor.png
This page contains material that is kept because it is considered humorous.
Such material may not necessarily be meant to be taken seriously.
Todo: permalinks

Strider minigun damage

From https://github.com/ValveSoftware/source-sdk-2013/blob/master/src/game/shared/hl2/hl2_gamerules.cpp#L1822-L1858

		// STRIDER MINIGUN DAMAGE - Pull up a chair and I'll tell you a tale.
		//
		// When we shipped Half-Life 2 in 2004, we were unaware of a bug in
		// CAmmoDef::NPCDamage() which was returning the MaxCarry field of
		// an ammotype as the amount of damage that should be done to a NPC
		// by that type of ammo. Thankfully, the bug only affected Ammo Types 
		// that DO NOT use ConVars to specify their parameters. As you can see,
		// all of the important ammotypes use ConVars, so the effect of the bug
		// was limited. The Strider Minigun was affected, though.
		//
		// According to my perforce Archeology, we intended to ship the Strider
		// Minigun ammo type to do 15 points of damage per shot, and we did. 
		// To achieve this we, unaware of the bug, set the Strider Minigun ammo 
		// type to have a maxcarry of 15, since our observation was that the 
		// number that was there before (8) was indeed the amount of damage being
		// done to NPC's at the time. So we changed the field that was incorrectly
		// being used as the NPC Damage field.
		//
		// The bug was fixed during Episode 1's development. The result of the 
		// bug fix was that the Strider was reduced to doing 5 points of damage
		// to NPC's, since 5 is the value that was being assigned as NPC damage
		// even though the code was returning 15 up to that point.
		//
		// Now as we go to ship Orange Box, we discover that the Striders in 
		// Half-Life 2 are hugely ineffective against citizens, causing big
		// problems in maps 12 and 13. 
		//
		// In order to restore balance to HL2 without upsetting the delicate 
		// balance of ep2_outland_12, I have chosen to build Episodic binaries
		// with 5 as the Strider->NPC damage, since that's the value that has
		// been in place for all of Episode 2's development. Half-Life 2 will
		// build with 15 as the Strider->NPC damage, which is how HL2 shipped
		// originally, only this time the 15 is located in the correct field
		// now that the AmmoDef code is behaving correctly.

Looping through crap

https://github.com/ValveSoftware/source-sdk-2013/blob/singleplayer/src/utils/common/bsplib.cpp#L2233-L2242

	/*
	int crap;
	for( crap = 0; crap < g_nBSPStringTable; crap++ )
	{
		Msg( "stringtable %d", ( int )crap );
		Msg( " %d:",  ( int )g_BSPStringTable[crap] );
		puts( &g_BSPStringData[g_BSPStringTable[crap]] );
		puts( "\n" );
	}
	*/
Note.pngNote:Unfunnily replaced with "junk" in the 2025 SDK.

NPC descriptions

Alyx

https://github.com/ValveSoftware/source-sdk-2013/blob/master/src/game/server/hl2/npc_alyx.cpp

//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: Alyx, the female sidekick and love interest that's taking the world by storm!
//
//			Try the new Alyx Brite toothpaste!
//			Alyx lederhosen!
//
//			FIXME: need a better comment block
//
//=============================================================================//

Breen

https://github.com/ValveSoftware/source-sdk-2013/blob/master/src/game/server/hl2/npc_breen.cpp

//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: Dr. Breen, the oft maligned genius, heroically saving humanity from 
//			its own worst enemy, itself.
//=============================================================================//

Eli

https://github.com/ValveSoftware/source-sdk-2013/blob/master/src/game/server/hl2/npc_eli.cpp

//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: Dr. Eli Vance, earths last great hope, single-handedly fighting
//			off both an evil alien invasion, as well as trying to stop 
//			that idiot lab assistant from putting the moves on his daughter.
//=============================================================================//