1081 Commits

Author SHA1 Message Date
Blixibon
b3d5152fa2
Merge pull request #436 from z33ky/vscript-member-function-call-safety
VScript member function call safety
2025-07-23 21:20:36 -05:00
ALLEN-PC\acj30
834196c2eb Mapbase protagonist system team and precache fixes 2025-07-07 10:04:44 -05:00
ALLEN-PC\acj30
84aaf3bb33 Mapbase player anim state HL2MP and debug build fixes 2025-07-07 10:04:09 -05:00
Alexander 'z33ky' Hirsch
c659af5944 Release SquirrelVM::lastError_ after pushing it to the VM stack
This fixes a memory leak.
2025-07-01 09:46:19 +02:00
Alexander 'z33ky' Hirsch
3301edc54d Guard get/set/tostring_stub() against illegal Squirrel instances
Also streamline SQUserPointer usage in sq_getinstanceup() and
sq_getuserpointer() calls to write directly to a pointer of the expected
type.
2025-07-01 09:45:54 +02:00
Alexander 'z33ky' Hirsch
9c38e4e295 Remove redundant sq_resetobject() for SquirrelVM::lastError_
The function_stub() resets it when used.
2025-07-01 09:41:49 +02:00
Alexander 'z33ky' Hirsch
be3ad93edb Remove redundant typetag check from vscript_squirrel getVariant() 2025-07-01 09:41:36 +02:00
Alexander 'z33ky' Hirsch
503fdd2ee3 Fix SQVector member access check 2025-07-01 09:41:36 +02:00
Alexander 'z33ky' Hirsch
9c740a891e Check type of Squirrel constructor_stub() instance
This prevents manual invocations of the native class constructor with an
invalid value.
2025-07-01 09:41:36 +02:00
Alexander 'z33ky' Hirsch
9c494b6eeb fxp streaml 2025-07-01 09:40:57 +02:00
Alexander 'z33ky' Hirsch
ca7bc5da57 Guard Squirrel constructor_stub() invocations from invalid class parameters
This prevents manual invocations of the native class constructor for
non-class values or non-native classes.
2025-07-01 09:40:44 +02:00
Alexander 'z33ky' Hirsch
655679e7da Check type of SQVector construction instance
This prevents manual invocations of the Vector.constructor with an
invalid value.
2025-06-24 21:10:08 +02:00
Alexander 'z33ky' Hirsch
681a75a6a7 Check ScriptClassDesc_t of squirrel instance for native member function call
This enhances the ScriptFuncDescriptor_t to record the ScriptClassDesc_t
of the class for which it gets invoked.
The ScriptClassDesc_t are traversed in the function_stub() for native
function calls for member functions, to ensure the passed in instance
has a compatible type.
This prevents memory errors when incorrectly invoking native member
functions from Squirrel.
2025-06-24 21:10:06 +02:00
Alexander 'z33ky' Hirsch
c851fc9bfb Ensure the squirrel instance for native member function call actually has userpointer type
This prevents memory errors when incorrectly invoking native member
functions from Squirrel.
2025-06-23 22:26:41 +02:00
ALLEN-PC\acj30
cdafc1278e game_menu entity and associated CHudMenu changes 2025-06-04 08:05:50 -05:00
ALLEN-PC\acj30
985ebc0dbb Allow NPCs to face targets while parented 2025-06-03 09:48:26 -05:00
ALLEN-PC\acj30
dfc1e01e15 Update README 2025-06-02 17:57:20 -05:00
Carlos suarez
13557bffc9 "-thread" allows negative values. 2025-05-31 12:41:07 -05:00
ALLEN-PC\acj30
f3c9872262 Fix missing include in sp/src/utils/vbsp/map.cpp 2025-05-31 12:40:04 -05:00
Blixibon
cba218f7c2
Merge pull request #415 from Zeldaboy14/master
Fix Lightmappedgeneric and vbsp matrix functions for Parallax Corrected Cubemaps
2025-05-31 12:39:33 -05:00
ALLEN-PC\acj30
db16263106 Update README 2025-05-30 18:18:05 -05:00
ALLEN-PC\acj30
5dda250bb4 Fix protagonist not being set in CHL2_Player::Spawn() 2025-05-30 18:15:43 -05:00
meatspace
bd43d3d7bd typo fix in basecombatweapon_shared.cpp
credit goes to Petercov for finding this not me
2025-05-30 18:14:01 -05:00
ALLEN-PC\acj30
3d435c6dec Improved custom model support on most NPCs
Co-authored-by: Maestra Fenix <fenixmaestro@gmail.com>
2025-05-30 17:23:25 -05:00
ALLEN-PC\acj30
ec55c3011d Fix citizen SelectModel VScript hook having issues in save/restore 2025-05-29 23:07:58 -05:00
Blixibon
2d968370b9
Merge pull request #414 from Yuis-Archives/alphatexture
Replicate %alphatexture from Gmod
2025-05-29 23:06:42 -05:00
Blixibon
4a2751c944
Merge pull request #423 from samisalreadytaken/netprops
Fix GetPropFloatArray indexing on Vector members
2025-05-29 23:05:31 -05:00
Blixibon
77a9ec6c34
Merge pull request #411 from samisalreadytaken/vscript-debugger
vscript debugger cleanup
2025-05-29 22:21:41 -05:00
samisalreadytaken
c3382cb481 Fix GetPropFloatArray indexing on Vector members 2025-05-26 20:43:24 +03:00
Blixibon
e759fa0b56
Merge pull request #418 from AnOldLady/master
Server ragdoll death poses
2025-05-26 10:31:51 -05:00
Wikot235
41945409d8
Fixed a crash when npc_helicopter that is awaiting input is killed (#419) 2025-05-25 11:08:41 -05:00
AnOldLady
db3d6d1573 Added server ragdoll deathpose 2025-05-25 01:25:07 +08:00
Wikot235
93efcbbcfd
Headshot damage multiplier cvar for npc_combine_s (#420) 2025-05-24 10:38:36 -05:00
samisalreadytaken
2b77baefbe Add script_connect_debugger_on_mapspawn cvar 2025-05-23 23:11:32 +03:00
samisalreadytaken
cf4014a97c Don't disconnect vscript debugger if socket couldn't be opened 2025-05-23 23:11:32 +03:00
samisalreadytaken
ae63cea197 Update sqdbg 2025-05-23 23:11:32 +03:00
Zeldaboy14
10a936f55d Fix Lightmappedgeneric and vbsp matrix functions
Shiro assisted in this fix, and now we don't need the custom matrixinvert.h functions anymore, because we use built-in engine functions for inversing Parallax corrected cubemaps. LightmappedGeneric has also been updated so mat_specular 0 doesn't break brushs anymore
2025-03-30 20:53:40 -05:00
Yui
bb209357c2
VRAD - reduce duplicate %alphatexture searches
Per comment on https://github.com/ValveSoftware/source-sdk-2013/pull/1150 by @ficool2
2025-03-24 20:19:30 -04:00
Yui
9055a01141
Replicate %alphatexture from Gmod 2025-03-24 17:15:38 -04:00
ALLEN-PC\acj30
40b8d398fb Update README and Mapbase version 2025-02-28 21:29:44 -06:00
Blixibon
51afe9316e
Merge pull request #377 from Blixibon/mapbase/feature/protagonist-system
HL2 player character switching system
2025-02-28 21:16:01 -06:00
Blixibon
940745c7fd
Merge branch 'develop' into mapbase/feature/protagonist-system 2025-02-28 21:14:26 -06:00
ALLEN-PC\acj30
af66f2b64d Fix ropes not being translucent 2025-02-28 21:09:01 -06:00
ALLEN-PC\acj30
8958925088 Fix detail scale in SDK_VertexLitGeneric not working with phong and bumpmap 2025-02-28 20:50:22 -06:00
ALLEN-PC\acj30
4f6963b048 Add PauseAtLastInterrupt input and scene_resume_use_last_speaking cvar 2025-02-28 20:49:50 -06:00
ALLEN-PC\acj30
fde0d4db6c Allow pre-existing choreo game_text params to be overridden by VScript 2025-02-28 20:49:19 -06:00
ALLEN-PC\acj30
496cbe7a06 New item_battery_custom entity 2025-02-28 20:48:55 -06:00
Blixibon
9efadb7541
Merge pull request #337 from Blixibon/mapbase/feature/npc-memory-and-vscript-expansions
NPC memory fixes and NPC VScript expansions
2025-02-28 20:37:39 -06:00
Blixibon
fccb3f8e38
Merge pull request #316 from Blixibon/mapbase/feature/improved-animstate
Playermodel legs and other player anim improvements
2025-02-28 20:34:44 -06:00
Blixibon
3b43930dd1
Merge pull request #397 from Nbc66/enhancement/viewmodel_camer_bone
Viewmodel Camera Bone
2025-02-28 15:04:20 -06:00