Commit Graph

1742 Commits

Author SHA1 Message Date
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 abdce0b61d
NSMonster: Improve 'seeing', don't target just anything with takedamage set to YES.
Add 'AlertNearby()' which is called when a monster sees a new enemy,
gets hit or dies.
2022-01-28 12:31:24 -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 92bb821ad9
NSMonster: Add GetWalk/Run/ChaseSpeed methods to override movement speeds
of each monster class that's based upon it.
2022-01-25 20:07:25 -08:00
Marco Cawthorne f0a8fa0889
Client: Games can now override base-Nuclide commands. 2022-01-25 20:06:40 -08:00
Marco Cawthorne 63d7b04852
NSMonster: Do some basic interpolation between new/old frames. HLMDL are
currently not supported however (engine needs a fix)
2022-01-24 17:29:58 -08:00
Marco Cawthorne 7963b11a7d
NSMonster: Add MeleeMaxDistance() and MeleeCondition(), so classes can
easily override condition and distance of their melee attacks.
2022-01-24 12:29:06 -08:00
Marco Cawthorne f1ab2201fb
build_editor.sh: build latest WS with WAD/PAK support 2022-01-23 12:16:05 -08:00
Marco Cawthorne 709f0a2297
scripted_sequence: More work to make c1a3 and t0a0a work properly 2022-01-21 17:24:39 -08:00
Marco Cawthorne 82b1cb68fa
Improvements to some GoldSrc rendermode code, better teleporting behaviour
for scripted_sequences.
2022-01-21 12:24:25 -08:00
Marco Cawthorne 1bd7d1a68c
Add platform/base_scripts.pk3dir/particles/burn.cfg. 2022-01-20 16:38:49 -08: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 fbb53d62f4
prop_dynamic: Filter the 'solid' field by its 3 supported collision types. 2022-01-20 14:27:39 -08:00
Marco Cawthorne 8bf7315253
prop_dynamic: Now solid by default, unless spawnflags bit 256 is set. 2022-01-20 12:57:17 -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 9e2b89e386
NSEntity: BBox will now account for rotation whenever SetModel() is used. 2022-01-20 12:30:53 -08:00
Marco Cawthorne d41c770393
func_physbox and prop_physics now respect the 'start asleep' spawnflags
they have.
2022-01-20 10:37:17 -08:00
Marco Cawthorne 1716e740cf
Go over the vertexlit shader again. 2022-01-13 10:47:51 -08:00
Marco Cawthorne 33795822a9
Rework env_global, entities communicating with it as well as support for
changetarget/changedelay in trigger_changelevel, which will make Hazard
Course its last level work in terms of elevator shenanigans.
2022-01-10 23:48:14 -08:00
Marco Cawthorne ec9432fe73
NSRenderableEntity: Save/Restore tracking for 'frame' field. 2022-01-10 23:46:28 -08:00
Marco Cawthorne 31f5fc0119
build.cfg: Bump BUILD_ENGINEREVISION to 6148 2022-01-10 17:55:18 -08:00
Marco Cawthorne 1d5cb6dcdb
Platform: Rework defaultskin and defaultwall glsl their 'gl_ldr' hack to
how certain GoldSrc games look, with more accurate lightmap banding.
2022-01-10 17:41:01 -08:00
Marco Cawthorne 009462f3ee
GS-EntBase: Add game_counter_set entity. 2022-01-10 13:34:07 -08:00
Marco Cawthorne e98f751071
Add missing Save/Restore methods for ambient_generic, env_beverage, and
a dozen more.
2022-01-10 13:20:00 -08:00
Marco Cawthorne a95354c09a
trigger_multiple: Add missing save field for OnEndTouchAll I/O trigger. 2022-01-10 13:18:59 -08:00
Marco Cawthorne 11c37f789d
NSMonster: Add TriggerCondition for death of an NSMonster. 2022-01-10 13:18:25 -08:00
Marco Cawthorne e4b7d55b3c
NSEntity: Add Destroy() which makes sure a sub-class is cleanly removed
from the game when possible.
2022-01-10 13:17:36 -08:00
Marco Cawthorne f42263dbfe
game_counter: Revise QUAKED comment, as it is apparently a point entity. 2022-01-10 13:07:58 -08:00
Marco Cawthorne 826e6c3150
GS-EntBase: Add game_counter entity. 2022-01-10 13:06:35 -08:00
Marco Cawthorne 02c2ff7be5
env_glow: Add 'rotate' key to rotate the sprite/material by X degree amount 2022-01-07 17:04:43 -08:00
Marco Cawthorne 52dfde0cf1
Sound: Add Sound_PlayLocal() which is a 'sound shader' analogue to to
localsound()
2022-01-07 13:46:16 -08:00
Marco Cawthorne 749424aa84
NSMonster: Add support for actions (used in e.g. HLMDL) to query which seq
to play. This will be expanded shortly in-engine to support more formats...
2022-01-06 19:27:08 -08:00
Marco Cawthorne 799f21305d
Base: item_pickup should re-setsize() after updating the pickup's model. 2022-01-06 15:02:52 -08:00
Marco Cawthorne 9d4d7afdcd
Big overhaul of momentary_door, momentary_rot_button... now onto the last
entity until Hazard Course is fully functional from beginning to end.
2022-01-04 21:54:42 -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 df2a385bbd
func_door: 'netname' trigger happens when door returns to its original
position, not the other way around.
2022-01-03 19:27:47 -08:00
Marco Cawthorne 3726139eda
func_guntarget: Add Save/Restore, as well as a fix for Respawn() and health
being reset.
2022-01-03 19:08:30 -08:00
Marco Cawthorne a0cec88f3b
Merge pull request #2 from cyber-bridge/master
Honor weapon .pickup return value.
2022-01-04 01:30:07 +01:00
Marco Cawthorne 6dcf76ac5d
func_breakable: Be more paranoid about checking health and propdata overrides 2022-01-03 13:02:56 -08:00
CYBERDEViL f6b0b5c348 Honor weapon .pickup return value.
For FreeCS this means CT-team wil no longer be able to pickup the bomb.
2022-01-03 19:12:26 +01:00
Marco Cawthorne d3dcb3a12b
GS-EntBase: Cleanup and fixes regarding which func_ entities support the
'angles' key for visuals. trigger_hurt damagetype tweaks (needs more tests)
as well as monstermaker fixes and SF_ROT_TOGGLE func_door_rotatings no
longer auto-return...
2022-01-03 00:23:20 -08:00
Marco Cawthorne 758b28346d
Client: Add fade.h and add definition in worldspawn's QUAKED comment for
startdark.
2022-01-02 21:21:06 -08:00
Marco Cawthorne d375ec5f93
Client: Implement "startdark" key from worldspawn. Which is responsible for
the fade-in effect in c0a0 for example.
2022-01-02 21:04:55 -08:00
Marco Cawthorne c920e4c3e8
NSRenderableEntity: Support for scrolling textures (requires shader
overrides for now, stay tuned) with variable speeds. Improvements to
func_conveyor, other rendering fix involving alphamasking textures.
2022-01-02 20:50:50 -08:00
Marco Cawthorne 623754ec5a
GLSL, NSRenderableEntity: Added hack to prevent alphatesting against world
surfaces utilizing the default lightmapped shader.
2021-12-31 01:47:47 -08:00
Marco Cawthorne a1d63ff19a
build_editor.sh: update to coincide with latest WorldSpawn commit 2021-12-30 16:52:22 -08:00
Marco Cawthorne 89b29dc2a7
Platform: Update fallback sounds (thanks Xylemon!) 2021-12-30 15:57:45 -08:00
Marco Cawthorne f0e1c3b9e1
GLSL: Go over water_sky.glsl, make it work for TW's upcoming tw_rig. 2021-12-30 15:36:26 -08:00
Marco Cawthorne 3ca728e1d0
func_conveyor: Add Save/Restore methods for save-games. 2021-12-29 15:54:51 -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