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

@@ -71,6 +71,67 @@ IMPLEMENT_NETWORKCLASS_ALIASED( GameRulesProxy, DT_GameRulesProxy )
BEGIN_NETWORK_TABLE_NOBASE( CGameRulesProxy, DT_GameRulesProxy )
END_NETWORK_TABLE()
#ifdef MAPBASE_VSCRIPT
BEGIN_SCRIPTDESC_ROOT( CGameRules, SCRIPT_SINGLETON "The container of the game's rules, handling behavior which could be different on a game-by-game basis." )
DEFINE_SCRIPTFUNC( Name, "Gets the name of these rules." )
DEFINE_SCRIPTFUNC( Damage_IsTimeBased, "Damage types that are time-based." )
DEFINE_SCRIPTFUNC( Damage_ShouldGibCorpse, "Damage types that gib the corpse." )
DEFINE_SCRIPTFUNC( Damage_ShowOnHUD, "Damage types that have client HUD art." )
DEFINE_SCRIPTFUNC( Damage_NoPhysicsForce, "Damage types that don't have to supply a physics force & position." )
DEFINE_SCRIPTFUNC( Damage_ShouldNotBleed, "Damage types that don't make the player bleed." )
DEFINE_SCRIPTFUNC( ShouldCollide, "Returns whether two collision groups collide with each other in this game." )
DEFINE_SCRIPTFUNC( DefaultFOV, "Default player FOV in this game." )
DEFINE_SCRIPTFUNC( GetDamageMultiplier, "Ammo type damage multiplier." )
DEFINE_SCRIPTFUNC( IsMultiplayer, "Returns true if this is a multiplayer game (like co-op or deathmatch)." )
DEFINE_SCRIPTFUNC( InRoundRestart, "Returns true if the round is restarting." )
DEFINE_SCRIPTFUNC( AllowThirdPersonCamera, "Returns true if third-person camera is allowed." )
#ifdef CLIENT_DLL
DEFINE_SCRIPTFUNC( IsBonusChallengeTimeBased, "" )
DEFINE_SCRIPTFUNC( AllowMapParticleEffect, "" )
DEFINE_SCRIPTFUNC( AllowWeatherParticles, "" )
DEFINE_SCRIPTFUNC( AllowMapVisionFilterShaders, "" )
DEFINE_SCRIPTFUNC( TranslateEffectForVisionFilter, "" )
DEFINE_SCRIPTFUNC( IsLocalPlayer, "" )
DEFINE_SCRIPTFUNC( ShouldWarnOfAbandonOnQuit, "" )
#else
DEFINE_SCRIPTFUNC( RefreshSkillData, "" )
DEFINE_SCRIPTFUNC( IsSkillLevel, "Returns true if the game is set to the specified difficulty/skill level." )
DEFINE_SCRIPTFUNC( GetSkillLevel, "Returns the game's difficulty/skill level." )
DEFINE_SCRIPTFUNC( SetSkillLevel, "Sets the game's difficulty/skill level." )
DEFINE_SCRIPTFUNC_NAMED( FAllowFlashlight, "AllowFlashlight", "Returns true if players are allowed to switch on their flashlight." )
DEFINE_SCRIPTFUNC( IsDeathmatch, "" )
DEFINE_SCRIPTFUNC( IsTeamplay, "" )
DEFINE_SCRIPTFUNC( IsCoOp, "" )
DEFINE_SCRIPTFUNC( GetGameDescription, "This is the game description that gets seen in server browsers." )
DEFINE_SCRIPTFUNC( AllowSPRespawn, "" )
DEFINE_SCRIPTFUNC_NAMED( FAllowNPCs, "AllowNPCs", "Returns true if NPCs are allowed." )
#endif
DEFINE_SCRIPTFUNC( GetGameTypeName, "" )
DEFINE_SCRIPTFUNC( GetGameType, "" )
END_SCRIPTDESC()
#endif
CGameRulesProxy::CGameRulesProxy()
{