aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/server/hl2
diff options
context:
space:
mode:
authorMichael Sartain <[email protected]>2014-10-02 08:25:55 -0700
committerMichael Sartain <[email protected]>2014-10-02 08:25:55 -0700
commit55ed12f8d1eb6887d348be03aee5573d44177ffb (patch)
tree3686f7ca78c780cd9a3d367b79a9d9250c1be7c0 /mp/src/game/server/hl2
parent* Added support for Visual C++ 2013 Express to VPC (diff)
downloadsource-sdk-2013-55ed12f8d1eb6887d348be03aee5573d44177ffb.tar.xz
source-sdk-2013-55ed12f8d1eb6887d348be03aee5573d44177ffb.zip
Updated the SDK with the latest code from the TF and HL2 branches.
Diffstat (limited to 'mp/src/game/server/hl2')
-rw-r--r--mp/src/game/server/hl2/npc_citizen17.cpp20
-rw-r--r--mp/src/game/server/hl2/npc_metropolice.cpp2
-rw-r--r--mp/src/game/server/hl2/npc_scanner.cpp2
3 files changed, 11 insertions, 13 deletions
diff --git a/mp/src/game/server/hl2/npc_citizen17.cpp b/mp/src/game/server/hl2/npc_citizen17.cpp
index d48cf6c2..adb9eb8c 100644
--- a/mp/src/game/server/hl2/npc_citizen17.cpp
+++ b/mp/src/game/server/hl2/npc_citizen17.cpp
@@ -143,23 +143,23 @@ struct citizen_expression_list_t
// Scared
citizen_expression_list_t ScaredExpressions[STATES_WITH_EXPRESSIONS] =
{
- { "scenes/Expressions/citizen_scared_idle_01.vcd" },
- { "scenes/Expressions/citizen_scared_alert_01.vcd" },
- { "scenes/Expressions/citizen_scared_combat_01.vcd" },
+ { { "scenes/Expressions/citizen_scared_idle_01.vcd" } },
+ { { "scenes/Expressions/citizen_scared_alert_01.vcd" } },
+ { { "scenes/Expressions/citizen_scared_combat_01.vcd" } },
};
// Normal
citizen_expression_list_t NormalExpressions[STATES_WITH_EXPRESSIONS] =
{
- { "scenes/Expressions/citizen_normal_idle_01.vcd" },
- { "scenes/Expressions/citizen_normal_alert_01.vcd" },
- { "scenes/Expressions/citizen_normal_combat_01.vcd" },
+ { { "scenes/Expressions/citizen_normal_idle_01.vcd" } },
+ { { "scenes/Expressions/citizen_normal_alert_01.vcd" } },
+ { { "scenes/Expressions/citizen_normal_combat_01.vcd" } },
};
// Angry
citizen_expression_list_t AngryExpressions[STATES_WITH_EXPRESSIONS] =
{
- { "scenes/Expressions/citizen_angry_idle_01.vcd" },
- { "scenes/Expressions/citizen_angry_alert_01.vcd" },
- { "scenes/Expressions/citizen_angry_combat_01.vcd" },
+ { { "scenes/Expressions/citizen_angry_idle_01.vcd" } },
+ { { "scenes/Expressions/citizen_angry_alert_01.vcd" } },
+ { { "scenes/Expressions/citizen_angry_combat_01.vcd" } },
};
//-----------------------------------------------------------------------------
@@ -4197,8 +4197,6 @@ void CNPC_Citizen::AddInsignia()
void CNPC_Citizen::RemoveInsignia()
{
- // This is crap right now.
- CBaseEntity *FirstEnt();
CBaseEntity *pEntity = gEntList.FirstEnt();
while( pEntity )
diff --git a/mp/src/game/server/hl2/npc_metropolice.cpp b/mp/src/game/server/hl2/npc_metropolice.cpp
index 01d66258..833318d4 100644
--- a/mp/src/game/server/hl2/npc_metropolice.cpp
+++ b/mp/src/game/server/hl2/npc_metropolice.cpp
@@ -1675,7 +1675,7 @@ float CNPC_MetroPolice::AimBurstAtReactionTime( float flReactionTime, float flDi
#define AIM_AT_SHOT_SPEED_COUNT 6
#define AIM_AT_SHOT_DIST_COUNT 6
-static int s_pShotCountFraction[AIM_AT_TIME_DIST_COUNT][AIM_AT_TIME_SPEED_COUNT] =
+static float s_pShotCountFraction[AIM_AT_TIME_DIST_COUNT][AIM_AT_TIME_SPEED_COUNT] =
{
{ 3.0f, 3.0f, 2.5f, 1.5f, 1.0f, 0.0f },
{ 3.0f, 3.0f, 2.5f, 1.25f, 0.5f, 0.0f },
diff --git a/mp/src/game/server/hl2/npc_scanner.cpp b/mp/src/game/server/hl2/npc_scanner.cpp
index 031ce6d9..86cfcad2 100644
--- a/mp/src/game/server/hl2/npc_scanner.cpp
+++ b/mp/src/game/server/hl2/npc_scanner.cpp
@@ -1988,7 +1988,7 @@ void CNPC_CScanner::BlindFlashTarget( CBaseEntity *pTarget )
if ( tr.startsolid == false && tr.fraction == 1.0)
{
- color32 white = { 255, 255, 255, SCANNER_FLASH_MAX_VALUE * dotPr };
+ color32 white = { 255, 255, 255, (byte)(SCANNER_FLASH_MAX_VALUE * dotPr) };
if ( ( g_pMaterialSystemHardwareConfig != NULL ) && ( g_pMaterialSystemHardwareConfig->GetHDRType() != HDR_TYPE_NONE ) )
{