Mapbase v6.1

- Added postprocess_controller entity from later versions of Source
- Added env_dof_controller entity from later versions of Source
- Added SDK_Engine_Post and DepthOfField shaders from the Momentum repo/Alien Swarm SDK
- Fixed auto-breaking game_text/choreo text not null terminating
- Fixed console groups showing up at the wrong developer levels
- Added more mesages to console groups, including a new "NPC AI" console group
- Fixed typos and added elaboration in various cvars, console messages, etc.
- Fixed npc_metropolice not using frag grenades correctly when allowed to use them
- Fixed npc_metropolice not registering stitching squad slots in AI
- Fixed SetModel input late precache warning
- Fixed env_global_light angles resetting upon loading a save
- Fixed an issue with ScriptKeyValuesRead using the wrong name and having a memory leak
- Allowed VScript functions which return null strings to actually return null instead of empty strings
- Added VScript member variable documentation
- Fixed VScript documentation lines sometimes mixing together
- Fixed VScript singletons having a ! at the beginning of descriptions
- Added Color struct to VScript and allowed color-related inputs to use it
- Added more VScript functions for weapons, ammo, ragdolling, and response contexts
- Added GameRules singleton for VScript
- Exposed AI interaction system to VScript
- Recovered some lost documentation from older revisions of the Mapbase wiki
- Added a way to get the current game's load type in VScript
- Fixed Precache/SpawnEntityFromTable not accounting for a few important field types
- Added VScript functions for getting a player's eye vectors
- Fixed a crash caused by removing the active weapon of a Combine soldier while it's firing
- Changed the way metrocops deploy their manhacks so they could use their manhack death response properly
- Fixed "Use Server" keyvalue on game_convar_mod not working
- Adjusted CAI_Expresser in VScript
This commit is contained in:
Blixibon
2020-12-17 03:38:23 +00:00
parent 6d45d9591e
commit 87cd9b24bb
82 changed files with 4596 additions and 337 deletions

View File

@@ -58,7 +58,6 @@ private:
CNetworkVector( m_shadowDirection );
CNetworkVar( bool, m_bEnabled );
bool m_bStartDisabled;
CNetworkString( m_TextureName, MAX_PATH );
#ifdef MAPBASE
@@ -86,7 +85,6 @@ LINK_ENTITY_TO_CLASS(env_global_light, CGlobalLight);
BEGIN_DATADESC( CGlobalLight )
DEFINE_KEYFIELD( m_bEnabled, FIELD_BOOLEAN, "enabled" ),
DEFINE_KEYFIELD( m_bStartDisabled, FIELD_BOOLEAN, "StartDisabled" ),
DEFINE_AUTO_ARRAY_KEYFIELD( m_TextureName, FIELD_CHARACTER, "texturename" ),
#ifdef MAPBASE
DEFINE_KEYFIELD( m_nSpotlightTextureFrame, FIELD_INTEGER, "textureframe" ),
@@ -107,6 +105,8 @@ BEGIN_DATADESC( CGlobalLight )
#endif
DEFINE_KEYFIELD( m_flColorTransitionTime, FIELD_FLOAT, "colortransitiontime" ),
DEFINE_FIELD( m_shadowDirection, FIELD_VECTOR ),
// Inputs
#ifdef MAPBASE
DEFINE_INPUTFUNC( FIELD_FLOAT, "SetXOffset", InputSetXOffset ),
@@ -184,6 +184,7 @@ CGlobalLight::CGlobalLight()
m_flBrightnessScale = 1.0f;
m_flOrthoSize = 1000.0f;
#endif
m_bEnabled = true;
}
@@ -242,6 +243,10 @@ bool CGlobalLight::KeyValue( const char *szKeyName, const char *szValue )
Q_strcpy( m_TextureName.GetForModify(), szValue );
#endif
}
else if ( FStrEq( szKeyName, "StartDisabled" ) )
{
m_bEnabled.Set( atoi( szValue ) <= 0 );
}
return BaseClass::KeyValue( szKeyName, szValue );
}
@@ -258,6 +263,11 @@ bool CGlobalLight::GetKeyValue( const char *szKeyName, char *szValue, int iMaxLe
Q_snprintf( szValue, iMaxLen, "%s", m_TextureName.Get() );
return true;
}
else if ( FStrEq( szKeyName, "StartDisabled" ) )
{
Q_snprintf( szValue, iMaxLen, "%d", !m_bEnabled.Get() );
return true;
}
return BaseClass::GetKeyValue( szKeyName, szValue, iMaxLen );
}
@@ -268,15 +278,6 @@ void CGlobalLight::Spawn( void )
{
Precache();
SetSolid( SOLID_NONE );
if( m_bStartDisabled )
{
m_bEnabled = false;
}
else
{
m_bEnabled = true;
}
}
//------------------------------------------------------------------------------