Commit Graph

346 Commits

Author SHA1 Message Date
Alexander 'z33ky' Hirsch
e989cf63c5 Fix ReadFileEx() arguments when loading scene files
The parser expects NUL terminated data.
2021-06-06 16:11:24 +02:00
Alexander 'z33ky' Hirsch
f6a750e4b3 Initialize all basis vectors for env_projectedtexture with target 2021-06-06 15:52:35 +02:00
Alexander 'z33ky' Hirsch
06c7f7040d Fix env_instructor_hint from disappearing after savegame load
It is a bit unfortunate that the initial animation plays again after
load. This is likely not fixable with SDK code without reimplementing
the HUD bits, which are part of the external engine code.

Also adds a destructor override, since we are dealing with a polymorphic
class.
2021-05-27 23:42:31 +02:00
Blixibon
e52835520c Slightly adjusted hook callback code 2021-05-27 13:16:55 -05:00
Blixibon
0d9a5349b0 Merge branch 'develop' into feature/vscript/hook-handler-prototype-1
# Conflicts:
#	sp/src/vscript/vscript_squirrel.nut
2021-05-27 12:07:43 -05:00
Blixibon
1de46132d8 Slightly adjusted some prior changes 2021-05-27 12:02:39 -05:00
Blixibon
e28813de7f Added console message for when VScript documentation is requested while it's disabled 2021-05-27 12:01:55 -05:00
Blixibon
adada8f56e Made env_global_light start using different cvars for shadow map resolution and filter size 2021-05-27 11:41:52 -05:00
Blixibon
dcd7b95b62 Added new move_rope/keyframe_rope inputs 2021-05-27 11:39:47 -05:00
Blixibon
764f0c09e1
Merge pull request #124 from z33ky/mb/gcc11
Fix memory errors
2021-05-27 10:50:27 -05:00
Blixibon
be71cb487f
Merge pull request #122 from samisalreadytaken/cleanup
Minor adjustments
2021-05-27 10:49:46 -05:00
Blixibon
3287643c24 Added a few more matrix-related functions for VScript 2021-05-27 09:53:48 -05:00
Blixibon
c48428b678 Added OnEntrySequence and OnActionSequence for scripted_sequence 2021-05-27 09:53:31 -05:00
Blixibon
7a87bfdf5e Added ConVar material proxy 2021-05-27 09:52:28 -05:00
Alexander 'z33ky' Hirsch
78ef9f2019 Fix MapEdit memory errors
deleteThis() was called on NULL pointers.
Deleting individual nodes shouldn't be necessary if the whole structure
(pkvFile) is deleted anyways.
2021-05-23 12:11:26 +02:00
Alexander 'z33ky' Hirsch
098486fbe4 Fix pointer comparisons 2021-05-23 12:11:12 +02:00
Blixibon
8ad19cbf0a Reworked the OnDeath VScript hook so it could cheat death properly 2021-05-11 11:17:06 -05:00
Blixibon
6f515a2d34 Added VScript functions for bone attachments and transforming bone matrices 2021-05-11 10:46:30 -05:00
Blixibon
6392d9ab7c Added various misc. stubs and utility code from the Alien Swarm SDK 2021-05-11 10:45:48 -05:00
Blixibon
051a217670 Added proper ACT_IDLE_ON_FIRE handling for Combine soldiers 2021-05-11 10:14:39 -05:00
Blixibon
0bd1f5fb59 Fixed NPCs with death animations extinguishing their fires before they should be extinguished 2021-05-11 10:12:37 -05:00
Blixibon
184be1a794 Added a way to override climb node lineup linkage via target node keyvalue 2021-05-11 10:10:44 -05:00
samisalreadytaken
c62d86e340 Added developer check on script documentation registration 2021-05-10 00:05:08 +03:00
Blixibon
c37f8eefb7 Revisited hook handler based on suggestions and new information 2021-05-09 11:34:38 -05:00
samisalreadytaken
3b51405cac Minor adjustments and cleanup 2021-05-08 15:16:59 +03:00
Alexander 'z33ky' Hirsch
b95c72eb3f Fix viewmodel flip on zoom
The fabs() was incorrectly applied only to the viewmodel's FOV instead
of the result of that subtracted by the FOV offset.

Further it doesn't seem to make sense to use the absolute value of that
subtraction; Yes, it does prevent flipping, but it will zoom out again
as the FOV decreases.
Instead just limit the result of the subtraction to non-negative
numbers.
2021-04-29 18:36:58 +02:00
Blixibon
3cd50a6ed4 Added sound pitch scaling and env_microphone detection for sentences 2021-04-27 10:59:39 -05:00
Blixibon
54c43dd6ce Fixed unreliable string pointer in CLogicPlayerProxy::AcceptInput() 2021-04-27 10:55:33 -05:00
Blixibon
0f6fd0a5a4
Merge pull request #117 from z33ky/mb/gcc-linux
gcc/Linux update
2021-04-26 20:47:46 -05:00
Alexander 'z33ky' Hirsch
d0b6998637 Simplify CBreakableGibShooter::GetRandomTemplateModelIndex
MapEntity_ExtractValue(), as opposed to CEntityMapData, does not require
a mutable string.
2021-04-26 09:44:12 +02:00
Alexander 'z33ky' Hirsch
036fbda906 Fix strdup() leaks 2021-04-26 09:26:21 +02:00
Alexander 'z33ky' Hirsch
a75b0b7d58 Fix spacing 2021-04-25 23:06:19 +02:00
Alexander 'z33ky' Hirsch
dddcf642aa Fix gcc build errors & warnings 2021-04-25 23:06:19 +02:00
Blixibon
5e2d1cccca
Merge pull request #116 from Alivebyte/master
Sound support for vgui_movie_display
2021-04-25 14:27:24 -05:00
Alivebyte
5782574711 Added constructor for movie_display to mute sound by default 2021-04-25 18:56:49 +03:00
Alivebyte
5bc2d7cb83 Added missing movie_display.cpp 2021-04-25 17:35:45 +03:00
rzkid
f458ac1223 removed stopallsounds 2021-04-25 17:27:26 +03:00
Alivebyte
ae4e26f03b Added sound support for vgui_movie_display 2021-04-25 15:48:29 +03:00
Blixibon
5eda2f692f Had to change mat_slopescaledepthbias_shadowmap back to 16 due to issues with objects like citizens looking strange up close 2021-04-24 11:47:41 -05:00
Blixibon
a92ca7ceac Added weakref() and getclass() for Vector and other C++ instances in VScript 2021-04-24 11:44:51 -05:00
Blixibon
7f423759d5 Added new and experimental clientside worldlight iteration method 2021-04-23 22:58:16 -05:00
Blixibon
425057453b Fixed an issue with the ForceThisNPCToStopBusy input which caused NPCs to keep acting busy when they shouldn't 2021-04-23 22:57:11 -05:00
Blixibon
45ca64863a Increased ragdoll element limit from 24 to 32, reflecting later branches of Source 2021-04-23 22:55:52 -05:00
Blixibon
200001fdb9 Fixed a couple obscure crashes 2021-04-23 22:54:20 -05:00
Blixibon
2a24e9782c Removed duplicate custom command overridables 2021-04-23 22:52:17 -05:00
Blixibon
ea98b2cd1a
Merge pull request #114 from samisalreadytaken/dev6
vscript additions
2021-04-23 22:31:04 -05:00
Blixibon
46b6f456af Updated README and mapbase_version for v7.0 2021-04-23 10:33:42 -05:00
Blixibon
bb030629bb Misc. shader adjustments 2021-04-23 10:23:53 -05:00
Blixibon
69fa4a0064 Fixed SetBloomScaleRange's syntax bug (although it seems the feature itself remains unfinished) 2021-04-23 10:21:40 -05:00
Blixibon
60aacf6df7 Added more overridable commands for VScript 2021-04-23 10:05:06 -05:00
Blixibon
e5ffd26fda Added ability to disable console groups from the scripts 2021-04-23 10:04:23 -05:00
Blixibon
ee8bee588a Added "Always transmit to client" flag for info_target 2021-04-23 00:25:02 -05:00
Blixibon
591572cfda Added properly overridden projected texture shadow depth bias cvar values 2021-04-23 00:20:57 -05:00
Blixibon
62a6481d0d Added default game_text speech color for every major HL2 character 2021-04-23 00:17:08 -05:00
Blixibon
bb250dbae6
Merge pull request #112 from ReDucTor/vscript-fix-bad-restore
Fixing bug with vscript restore cache not updating soon enough
2021-04-22 12:55:24 -05:00
Blixibon
caaf8836a4 Made VScript data variant returned in function stubs free itself 2021-04-22 11:37:46 -05:00
Blixibon
4cf360b259 Fixed zombie torso ragdolls not using the original zombie skins 2021-04-22 11:28:24 -05:00
Blixibon
48508c4e5c Added customizable bucket names for the new response system 2021-04-22 11:25:49 -05:00
Blixibon
4a07831c1a Removed some old comments 2021-04-22 11:23:08 -05:00
Blixibon
c5ed394330 Added console group for the Response System 2021-04-22 11:14:18 -05:00
Blixibon
15d04c0b9b Reworked Mapbase console groups to use script files and separate server/client commands instead of cvars and tier1 commands 2021-04-22 11:12:29 -05:00
Blixibon
ebec14d2b6 Restored unused port of Alyx combat AI speech concepts for all player companions 2021-04-22 01:39:59 -05:00
Blixibon
0b14f5fbcc Added convar to change weapon pickup autoswitch behavior 2021-04-22 01:38:52 -05:00
Blixibon
e31c45dee3 Merge branch 'develop' into feature/asw-response-system
# Conflicts:
#	sp/src/game/server/server_mapbase.vpc
2021-04-21 16:51:36 -05:00
Blixibon
62c6c3cb6b Fixed apparent buffer over-read in SDK_LightmappedGeneric 2021-04-21 15:19:49 -05:00
Blixibon
8b699441e9 Added VScript functions for ropes 2021-04-21 15:17:47 -05:00
Blixibon
fc9d699fed Changed VScript custom file read method and increased the max size to 64 MB 2021-04-21 15:13:54 -05:00
Blixibon
491b258f70 Fixed Vector unary minus operator modifying the instance itself 2021-04-21 15:09:52 -05:00
Blixibon
b718f19d45 Fixed VScriptProxy not working without a renderable and added a GetVarName function 2021-04-21 15:01:50 -05:00
Blixibon
138a25c53c Added custom core ball shader 2021-04-21 14:58:51 -05:00
Blixibon
f580801a33 Added I/O/KV for custom healthkits, custom battery models, and health/power multipliers 2021-04-21 10:53:48 -05:00
samisalreadytaken
d7a06e863e Fix ScriptContextThink precision errors 2021-04-18 18:43:05 +02:00
James Mitchell
9510c03ab3 Fixing bug with vscript restore cache not updating soon enough 2021-04-11 08:38:02 +10:00
Blixibon
1a6f1f0cab Replaced expresser cases involving CBaseMultiplayerPlayer with CBasePlayer to allow singleplayer expressers to be obtained 2021-04-07 13:53:06 -05:00
Blixibon
bec712f3f9 Made followup sources attributable by classname 2021-04-07 13:51:17 -05:00
Blixibon
80c26ea186 Fixed new response system sometimes crashing on rule lookup when the system is reloaded by rr_reloadresponsesystems or map-specific talker files 2021-04-07 13:50:05 -05:00
Blixibon
aa4d02fcbf Added NoteSpeaking and game_text mode for print responses 2021-04-07 13:46:26 -05:00
Alexander 'z33ky' Hirsch
28e87ce3d2 Fix/Implement VScript FFI for GCC's virtual member functions 2021-03-20 19:21:53 +01:00
Alexander 'z33ky' Hirsch
761f065d55 Fix stdshaders compilation on Linux 2021-03-20 14:56:46 +01:00
Alexander 'z33ky' Hirsch
e0091261ed Fix Buttons not working on Linux with newer gcc
The button mask is created by shifting a bit according to the
MouseCode, which is just a renamed ButtonCode_t.
Mouse buttons start at 107, which is way out of range for our ints.

To fix this, introduce MouseButtonBit(), which checks if a button code
corresponds to a mouse button at all and returns a usable bitmask
for the corresponding mouse button code.
This is then used for the button mask.
2021-03-20 13:58:23 +01:00
Alexander 'z33ky' Hirsch
718186f165 Specify gcc9+support.cpp dependency for gcc8+ Makefiles 2021-03-19 17:41:27 +01:00
Alexander 'z33ky' Hirsch
a5fb07d6ac Fix gcc9+support.o compilation 2021-03-19 17:41:27 +01:00
Alexander 'z33ky' Hirsch
49836ab50a Fix gcc build errors & warnings 2021-03-19 17:41:27 +01:00
Blixibon
38be2ca932 Merge branch 'feature/vscript/hook-handler-prototype-1' of https://github.com/mapbase-source/source-sdk-2013 into feature/vscript/hook-handler-prototype-1 2021-03-19 09:45:14 -05:00
samisalreadytaken
6ed8b31091 vscript additions:
- Added CBaseEntity::Activate
   - Added CBaseEntity::SetSolid
   - Added CBaseEntity::GetSolid
   - Added C_BaseEntity::UpdateOnRemove

   - Added hook behaviour on CScriptConCommand
   - Added more script overridable concommands
   - Added CScriptConvarAccessor::SetChangeCallback
   - Added CScriptGlowObjectManager
   - Added CScriptSteamAPI
2021-03-19 16:44:12 +02:00
Blixibon
8bcb6263f5 Misc. response system code cleanup/QOL changes 2021-03-18 00:34:31 -05:00
Blixibon
a05503e42b Fixed rr_disableemptyrules not always working correctly 2021-03-18 00:33:35 -05:00
Blixibon
4e09f4bdf5 Added rr_disableemptyrules cvar, which prevents rules from being selected again after their norepeat/speakonce responses are exhausted 2021-03-17 16:55:54 -05:00
Blixibon
4b8da761ce Added base Mapbase matchers to tier1 so that the response system library can access them 2021-03-17 16:50:24 -05:00
Blixibon
4d3f51a720 Fixed a compile error from when NEW_RESPONSE_SYSTEM is disabled 2021-03-17 10:45:31 -05:00
Blixibon
ec995b68c9 Added keyvalue/input to set suit zoom FOV in logic_playerproxy 2021-03-15 21:37:02 -05:00
Blixibon
58bc8b7101 Added save/load command overrides for VScript 2021-03-15 21:31:12 -05:00
Blixibon
c66e9c78a0 Added keyvalues for controlling func_rotating min/max sound pitch 2021-03-14 16:33:18 -05:00
Blixibon
a1332a442d Added volume scale to env_microphone 2021-03-14 13:49:10 -05:00
Blixibon
4884d02481 Fixed spelling errors of "Receive" in the NetMsg VScript singleton 2021-03-14 13:48:21 -05:00
Blixibon
fb30f64d30 Updated README and mapbase_version for v6.3 2021-03-14 00:04:04 -06:00
Blixibon
e9cc3cb134
Merge pull request #109 from mapbase-source/feature/vgui-text-display
vgui_text_display (point_worldtext-like text entity)
2021-03-13 16:49:54 -06:00
Blixibon
4f7793ae12 Added a missing shutdown call from VGui movies/video code 2021-03-13 16:47:18 -06:00
Blixibon
3579404668 Added FireEvent hook to clientside VScript (equivalent of HandleAnimEvent) 2021-03-13 16:46:29 -06:00
Blixibon
6cfcc66cec Added halo scale and custom material keyvalues to point_spotlight 2021-03-13 16:45:20 -06:00