Commit graph

60 commits

Author SHA1 Message Date
8503cad633 Initial merge of the new NPC schedule/task system. 2025-01-13 13:36:48 -08:00
ca316277e7 NSEntity: remove parenting hack, do our own parenting as the engine won't do it for entities using .SendEntity (virtually every single one in Nuclide) 2025-01-03 01:55:03 -08:00
d41b90c081 Base: Give some love to base/
VGUI-Menu: friendList, chat backend, textview class proto
SurfaceProps: Flesh impacts recognition
PropData: BreakModels now use a bodyque to limit possible physics overhead
PMove: falldamage, liquids can now be configured via external decl
NSWeapon: added alternative punchangle based on springs, 'punchSpring X Y Z' in decl
API: Team class management APIS
NSPhysicsEntity: Optimised, optimised, optimised. New cvar: phys_lowspec. Scraping, impact effects etc have been added.
More polish everywhere else
2025-01-02 18:53:55 -08:00
aa4b96f68c NSRagdoll: some minor optimisations.
Platform: Background handler will look for assets in current game-dir for prioritisation
Server: add server command `setLightStyle` (two args, style num + pattern)
Bunch more tiny fixes for various classes.
2024-10-31 04:11:30 -07:00
81d61ac3da multiprogs additions, decl integration, more of everything really 2024-10-16 22:52:27 -07:00
0909b91703 last weeks work, read plan 2024-09-17 12:46:31 -07:00
b60d420692 Push all the latest commits from this week's worklog, changes for RT2 2024-09-01 23:57:51 -07:00
02301994ce
- add GetNextWeapon(), GetPreviousWeapon(), GetLastWeapon() to NSActor
- allow weapon sorting in overridable NSActor::SortWeaponChain() method
- add isClient() as isPlayer() doesn't take spectators into account
- fix various CS specific zone
- ungodly amount of documentation improvements
- worldspawn ent work delegated to separate ent slot
- NSClientPlayer::MakePlayer no longer wipes the inventory.
- fix team selection race condition exploit in FreeCS
2024-08-14 16:10:57 -07:00
e4ab1bd671
document 'Physics' group, related to external-simulator physics
def > decls/def
sound/*.sndshd > decls/sound/*.sndshd
efx/ > decls/efx
NSWeapon: add "snd_fireStart", "snd_fireStop", "snd_fireLoop"
NSWeapon: add "view_geomset" to FireInfo
NSWeapon: add "knockbackRelease" to FireInfo
NSWeapon: add "altMode" toggle
NSWeapon: "actLoop" decoupled from "actFireStart"
NSWeapon: fireRate inherited from model if not set
NSWeapon: query all sequences from FireInfo
NSWeapon privatize weapon state
solidify more def documentation across the board
NSWeapon add "chargeTime" key
rework state machine in NSWeapon
reload timing separation in NSWeapon
add overheatLength, overheatPerShot to NSWeapon
2024-08-11 13:39:51 -07:00
caac73bec9
NSProjectile: don't spawn debris on monsters.
NSIO: change EntWarning to EntLog for unknown spawn data keys.
2024-07-30 20:20:07 -07:00
e9145091fd
Clear warnings. 2024-07-18 13:04:42 -07:00
965d9e96d6
NSEntity: add SetOriginUnstick(), SetBotTag()
NSWeapon: basic inventory management functions
2024-07-17 14:21:44 -07:00
8ace54224c
The mother of experimental commits. 2024-06-22 00:24:13 -07:00
822a7221b2
WIP pmove, AI, etc. changes 2024-04-22 15:11:12 -07:00
ee60a09eed
infodecal: fix client-side ones always rendering.
Add some more icons for various NSPointTrigger entities.
2024-03-06 20:27:54 -08:00
37ab385bcf
NSEntity: add empty DebugDraw method for listen servers. 2024-03-04 18:44:10 -08:00
649ed825ad
Big commit, work over various triggers. Clean up debug prints and make
them more consistent. Warnings are in yellow, while errors are in red.

New cvar: g_developerTimestamp will display timestamps next to debug messages
originating from the game-logic. Set g_developer to 1 to see them.
A lot of useful into, such as which entity id messages originate from
should aid in debugging quite a bit.

SP level transitions should also be more reliable now in terms of
transferring entities and the like.

Some levels have awkward transition areas and you might find yourself
jumping between levels frequently. Workarounds are in the works.
2024-03-02 00:40:08 -08:00
64a6a9007d
Add new cvar s_developer which prints sound related info from the game logic 2024-01-02 12:03:04 -08:00
a6fb7767dc
Implement cycler_weapon, cycler_wreckage, game_end, game_player_hurt, game_score, game_team_master, game_team_set, game_player_team, game_zone_player 2023-10-25 00:46:04 -07:00
7d9de3a2cc
NSEntity: new method GetNearbySpot() which will return a free position close to the entity. 2023-10-11 01:05:26 -07:00
19d6f22dc4
NSIO: add TransitionComplete() method for easier handling of entities post level-transition.
NSRenderableEntity: Default renderamt to 0.
Also use Read*() methods within all of the base classes their SpawnKey() methods.
2023-10-03 11:02:47 -07:00
f76c169671
NSTrigger: read 'globalname' key, used for level transitions. 2023-09-28 18:38:16 -07:00
4f699aae6e
Monster spawning position and scripted sequence fixes. Also leave movetype of LEAVECORPSE scripted sequence entities alone or else it breaks of1a1's G-Man 2023-09-20 22:42:11 -07:00
a1500166be
NSEntity: add method ::Relink() 2023-09-20 20:50:54 -07:00
b7126fbadb
env_glow: from client-side only entity to shared. also support other rendermodes (accurate to GoldSrc) 2023-09-19 23:01:59 -07:00
d84ef55b78
Get rid of a debug print 2023-07-16 13:06:38 -07:00
fc3884ee9b
NSEntity: involve animation frames in the EntityDef event lookup, add new Input 'AddVelocity' (which applies velocity to the entity according to forward,right,up) 2023-07-16 13:05:15 -07:00
31774ce3f1
EntityDef work on NSMonster, NSTalkMonster, NSProjectile etc. 2023-06-20 21:19:00 -07:00
69d1498c8b
EntityDef: support 'events' group, so developers can tie animation events to Inputs (Source Base I/O system) 2023-06-19 10:35:24 -07:00
d0838eab60
NSMonster: turning animation support, with new overridable methods AnimTurnLeft/AnimTurnRight 2023-06-01 16:17:11 -07:00
9e4bba1f0e
NSEntity: new method DistanceFromYaw 2023-05-31 10:08:00 -07:00
c5626ce347
NSEntity: DropToFloor() should return a boolean akin to the original builtin. 2023-04-22 01:05:56 -07:00
97a5d9d2cd
NSClient: add new method Transport(vector newPos, vector newAngles) and null out .customphysics when an NSEntity gets Destroy()d 2023-04-18 14:47:39 -07:00
719f85210d
NSEntity: Fix SetNextThink doing occasional bogus fixups 2023-03-13 15:25:37 -07:00
638825af56
NSEntity: add GetSpawnAge() and GetSpawnTime() methods, which communicate when an instance of an entity was brought into the world. 2023-01-22 20:01:24 -08:00
655b5fa33e
NSEntity: add method IsFacing() which should make some common sneakish tasks easier. 2023-01-18 19:01:56 -08:00
0ac1bc4b68
NSEntity: Add method CanSpawn(bool) which will be used to determine mainly if an entity is to be spawned on the client or server module (but it can also let a class handle under which other conditions it spawns)
NSEntity: move RestoreComplete() into NSIO because NSGameRules needs this.
2023-01-06 13:23:48 -08:00
b2925d46e4
Lots of small clean ups and microoptimisations. ambient_generic has also been fixed in multiplayer and made to save more bandwidth.
Rename a bunch of cvars to be more in a more consitent style similar to later id Tech games.
2023-01-05 23:41:48 -08:00
6ee21bc0ea
NSEntity: add attribute m_bIsBrush, which will be set if the entity is using a brush model. 2023-01-05 22:30:49 -08:00
2d911109cc
trigger_relay: Set m_iValue so that multisources will work properly that get targetted by them
trigger_auto: Delay the trigger of them in singleplayer until 1 player has joined
Misc cleanups. The 'Janitor Simulator' on TWHL should work now.
2022-12-14 16:51:16 -08:00
33295ff409
env_beverage/item_food: Fix item_food not rendering and or spawning. 2022-12-13 23:16:00 -08:00
0f9439b956
env_beam: Initial implementation. Visual fluff still missing, but coming up! 2022-12-07 17:05:50 -08:00
41ccbca2aa
GS-EntBase: Fix some more places where remove() was being called directly when it shouldn't be 2022-11-30 17:26:50 -08:00
74b61f35ed
Print a warning + backtrace when we manually call remove() on an entity that hasn't been destroyed properly. 2022-11-30 16:47:24 -08:00
2265047bfe
Fix a bunch of nonvirtual/virtual mismatching going on that's been caught by the new compiler. 2022-11-16 14:04:10 -08:00
003bc5d88a
Removal of Footsteps_Update outside of NSClientPlayer. Mods now have the full ability to override steps within the player class. Method name subject to change. 2022-11-01 19:54:56 -07:00
e499a7d484
Documented the Nuclide System (NS) classes. 2022-10-14 13:08:47 -07:00
45d58a8742
leave comment in base/mapcycle.txt 2022-10-03 14:43:52 -07:00
5a7d082af7
Move touch handlers into NSTrigger, remove trigger_multiple's own version of the team check. 2022-08-31 15:18:06 -07:00
31bb9b4042
Abstract timers to make sure MOVETYPE_PUSH entities are handled without game/mod developers having to think much about them.
Also change rechargers to MOVETYPE_NONE instead of PUSH, as it won't be moving anyway.
2022-08-31 13:24:55 -07:00