mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-09-01 15:09:19 +00:00
upload "kind" alien swarm
This commit is contained in:
+21
-4
@@ -1,4 +1,4 @@
|
||||
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||||
//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
|
||||
//
|
||||
//=============================================================================//
|
||||
|
||||
@@ -22,7 +22,10 @@ enum Hull_t
|
||||
HULL_TINY_CENTERED, // Manhack
|
||||
HULL_LARGE, // Antlion Guard
|
||||
HULL_LARGE_CENTERED, // Mortar Synth
|
||||
//--DONT_DROP flag splits hulls here
|
||||
HULL_MEDIUM_TALL, // Hunter
|
||||
HULL_TINY_FLUID, // Blob
|
||||
HULL_MEDIUMBIG, // Infested drone
|
||||
//--------------------------------------------
|
||||
NUM_HULLS,
|
||||
HULL_NONE // No Hull (appears after num hulls as we don't want to count it)
|
||||
@@ -39,13 +42,25 @@ enum Hull_Bits_t
|
||||
bits_TINY_CENTERED_HULL = 0x00000040,
|
||||
bits_LARGE_HULL = 0x00000080,
|
||||
bits_LARGE_CENTERED_HULL = 0x00000100,
|
||||
bits_MEDIUM_TALL_HULL = 0x00000200,
|
||||
bits_HULL_BITS_MASK = 0x000002ff,
|
||||
bits_DONT_DROP_PLACEHOLDER = 0x00000200,
|
||||
bits_MEDIUM_TALL_HULL = 0x00000400,
|
||||
bits_TINY_FLUID_HULL = 0x00000800,
|
||||
bits_MEDIUMBIG_HULL = 0x00001000,
|
||||
bits_HULL_BITS_MASK = 0x00001fff, // infested change from 1ff to fff
|
||||
};
|
||||
|
||||
inline int HullToBit( Hull_t hull )
|
||||
{
|
||||
return ( 1 << hull );
|
||||
if ( hull < HULL_MEDIUM_TALL )
|
||||
{
|
||||
// Hull is before where don't drop flag splits the hull flags
|
||||
return ( 1 << hull );
|
||||
}
|
||||
else
|
||||
{
|
||||
// Skip over the extra flag taken by don't drop
|
||||
return ( 1 << ( hull + 1 ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -69,6 +84,8 @@ namespace NAI_Hull
|
||||
|
||||
const char* Name(int id);
|
||||
|
||||
unsigned int TraceMask(int id);
|
||||
|
||||
Hull_t LookupId(const char *szName);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user