Commit Graph

21 Commits

Author SHA1 Message Date
Marco Cawthorne a34c9a8059
env_sprite: Hack to accept materials instead of models
func_breakable: Some minor fixes
prop_physics/func_physbox: Add PHYSICS_STATIC ifdef for when a game does not want fakephysics either
NSSurfacePropEntity: max_health will now be set along with health in SpawnKey()
2022-04-16 18:42:38 -07:00
Marco Cawthorne 05f6af510a
NSSurfacePropEntity: put rendering for when an entity is burning into the new
method RenderFire().
Also some minor non-ODE physics tweak.
2022-04-10 07:21:44 -07:00
Marco Cawthorne af73a3a5b0
NSSurfacePropEntity: Fix bug that I recently introduced which prevents health
from propdata from getting assigned.
2022-04-05 19:05:00 -07:00
Marco Cawthorne 60e4853549
Clean up some misc warnings, switch over to internal bool type for some methods
in NSSurfacePropEntity, added Get/Set functions for MaxHealth.
Also bump BUILD_ENGINEREVISION to 6224 (minor crash fix upstream)
2022-04-02 09:21:49 -07:00
Marco Cawthorne e45987d65c
NSEntity: Added new methods based on GMod's API. More to follow. 2022-04-02 00:10:25 -07:00
Marco Cawthorne 50312d500a
SurfaceProperties: Be more pedantic about what object can contain material
info in SurfData_Impact()
2022-03-28 19:01:29 -07:00
Marco Cawthorne 6fb067eed3
My name has changed, so an update to the copyright to reflect it. 2022-03-11 11:40:43 -08:00
Marco Cawthorne bcf9e2e758
Cleaning up some warnings. 2022-02-01 13:37:21 -08:00
Marco Cawthorne 578da4a779
Add VGUI_Active() which returns whether or not we're drawing VGUI elements,
add SNDFL_ALERTS to sound shaders, which will alert enemy AI of suspicious
behaviour, fix a health-setting bug in NSSurfacePropEntity and remove
playerslot check in item_pickup from base/
2022-01-28 16:02:00 -08:00
Marco Cawthorne 2c80a9f9ff NSSurfaceProp/PropData: Add support for breakable_skin. When a prop 'dies'
it doesn't necessarily have to disappear, it can change its material to one
of your choosing.
2022-01-28 06:53:32 +01:00
Marco Cawthorne 06d07738b6
Clean up the base classes, get rid of having to manually include the entbase
defs.h for the respective progs.
2022-01-20 16:23:29 -08:00
Marco Cawthorne 24b00565e3
Make it easier to parse Input/Output entity data by adding PrepareOutput()
to the NSIO class
2022-01-20 12:47:59 -08:00
Marco Cawthorne 08e112e128
trigger_changelevel: check if we're inside a trigger_transition under
certain conditions (and only compare the activator...)
2022-01-03 19:28:22 -08:00
Marco Cawthorne 6ca3900b4d
NSSurfacePropEntity: Handle health more appropriately to avoid conflicts,
unbreaks func_button's health behaviour.
2021-12-29 14:13:08 -08:00
Marco Cawthorne a80def1d12
Server: Fix that you're unable to pick up weapons when you've hit the ammo
cap of said weapon.
2021-12-12 20:36:11 -08:00
Marco Cawthorne bfad97f6eb
prop_dynamic: Remove redundant .health set code that's now handled in the
parent class.
PropData: Fix a bug that fails to check our cache properly, resulting in
the first entry being returned when no data is properly defined.
2021-11-21 04:23:33 +01:00
Marco Cawthorne a2f8fd0a5d
NSSurfacePropEntity: Keep track if .health is ever set manually, take that
and PropData info into account for determining if any child classes will
'break' by default
2021-11-21 03:57:18 +01:00
Marco Cawthorne eb85121716
Add BUILD_ODE build.cfg setting. Add stubs for platform specific functions
like achievements, rich presense. Minor GLSL adjustments.
2021-11-20 17:27:52 +01:00
Marco Cawthorne 0085403c95
NSSurfacePropEntity: Save/Restore for its attributes, OnBreak output etc. 2021-11-13 07:55:33 +01:00
Marco Cawthorne 08c3a4a576
SurfData: Goodbye to DAMAGE_MATERIAL. We streamline that process now so
that all entities will use surfaceParm defined info by default unless
overriden by an entity. + Set up sane defaults for surface properties.
2021-11-13 01:38:20 +01:00
Marco Cawthorne 249e4bc612
Massive revamp of the Nuclide system classes, more efficient networking
and memory usage thanks to intelligent boxing of fields.
Added Util_TimeToString, removed old VOX code, added lots of new helper
classes...
2021-10-20 01:19:10 +02:00