Mapbase v4.1

- Exposed CAmmoDef to VScript and changed ammo type functions accordingly
- Added TakeHealth and IsAlive to CBaseEntity
- Added $treeSway
- Added several inputs to control env_wind keyvalues + a new $treeSway scale keyvalue
- Added "Expanded name fixup" keyvalue to point_template which allows name fixup to fix up output parameters
- Fixed the rope on rappelling NPCs causing graphical issues
- Fixed prop_vehicle_prisoner_pod missing "EnterVehicle", "EnterVehicleImmediate", and "ExitVehicle" inputs
- Fixed hostile citizens not damaging player
- Fixed an uncommon npc_metropolice crash from when it's not in a squad
- Made SetTarget input update target handling on NPCs
- Changed ammo type functions to be more organized, added AmmoDef singleton
- Added more precache functions
- Added various misc. entity functions, like GetAllWeapons or AddOutput
- Added more utility functions
This commit is contained in:
Blixibon
2020-06-21 15:10:56 +00:00
parent 5b2547a6ff
commit 418a9dcccc
39 changed files with 923 additions and 67 deletions

View File

@@ -46,6 +46,9 @@ public:
void AddTemplate( CBaseEntity *pEntity, const char *pszMapData, int nLen );
bool ShouldRemoveTemplateEntities( void );
bool AllowNameFixup();
#ifdef MAPBASE
bool NameFixupExpanded() { return m_bFixupExpanded; }
#endif
// Templates accessors
int GetNumTemplates( void );
@@ -74,6 +77,12 @@ private:
// code removes all the entities in it once it finishes turning them into templates.
CUtlVector< CBaseEntity * > m_hTemplateEntities;
#ifdef MAPBASE
// Allows name fixup to target all instances of a name in a keyvalue, including output parameters.
// TODO: Support for multiple fixup modes?
bool m_bFixupExpanded;
#endif
// List of templates, generated from our template entities.
CUtlVector< template_t > m_hTemplates;