Blixibon
29635bac52
Added experimental support for map-specific surfaceproperties scripts
2021-06-28 23:59:36 -05:00
Blixibon
0fb0a3319c
Added misc. new VScript hooks/constants and the code required to implement them
2021-06-28 23:55:42 -05:00
Blixibon
29075a2c90
Added experimental static/global VScript hooks not tied to any particular class, starting with the integration of OnSave/OnRestore
2021-06-28 23:51:24 -05:00
Blixibon
ea7d1afa08
Fixed a few minor mistakes and aliasing oversights
2021-06-28 21:07:30 -05:00
Blixibon
5f42182c45
Divided mapbase_version cvar into server, client, and game_shader_dx9 counterparts
2021-06-28 20:04:23 -05:00
Blixibon
764f0c09e1
Merge pull request #124 from z33ky/mb/gcc11
...
Fix memory errors
2021-05-27 10:50:27 -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
samisalreadytaken
3b51405cac
Minor adjustments and cleanup
2021-05-08 15:16:59 +03:00
Blixibon
3cd50a6ed4
Added sound pitch scaling and env_microphone detection for sentences
2021-04-27 10:59:39 -05:00
Alexander 'z33ky' Hirsch
036fbda906
Fix strdup() leaks
2021-04-26 09:26:21 +02:00
Alexander 'z33ky' Hirsch
dddcf642aa
Fix gcc build errors & warnings
2021-04-25 23:06:19 +02: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
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
60aacf6df7
Added more overridable commands for VScript
2021-04-23 10:05:06 -05:00
Blixibon
ee8bee588a
Added "Always transmit to client" flag for info_target
2021-04-23 00:25:02 -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
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
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
samisalreadytaken
d7a06e863e
Fix ScriptContextThink precision errors
2021-04-18 18:43:05 +02:00
Alexander 'z33ky' Hirsch
49836ab50a
Fix gcc build errors & warnings
2021-03-19 17:41:27 +01: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
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
58bc8b7101
Added save/load command overrides for VScript
2021-03-15 21:31:12 -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
3bb9a92ed8
Added hook for CBaseAnimating::HandleAnimEvent()
2021-03-12 15:33:48 -06:00
Blixibon
92ec640db3
Added vgui_screens_mapbase.txt to level init process for loading shared VGui screens
2021-03-12 15:07:05 -06:00
Blixibon
d953468bc1
Fixed env_credits always resetting sv_unlockedchapters to 15 when it shouldn't
2021-03-12 11:08:39 -06:00
Blixibon
36a459d21c
Fixed a crash related to VScript custom console commands
2021-03-12 11:06:46 -06:00
Blixibon
8966462fee
Stabilized implementation of some Mapbase code in the new response system
2021-03-09 12:39:13 -06:00
Blixibon
efec7ab4db
Added Mapbase's enhanced save/restore to new response system + moved aound rr_dumphashinfo code so that it has access to default response system
2021-03-09 12:37:08 -06:00
Blixibon
d081a0cee3
Added prototype Response System library port from the Alien Swarm SDK
2021-03-08 02:11:13 -06:00
samisalreadytaken
bf182e1c5d
vscript additions and fixes:
...
baseentity_shared.cpp
baseentity.cpp
c_baseentity.h
c_baseentity.cpp
c_world.h
- Fixed critical ScriptSetContextThink bugs
- Added C_BaseEntity::SetContextThink (ScriptSetContextThink)
- Added C_BaseEntity::SetSize
- Added C_BaseEntity::SetModel
- Added C_BaseEntity::Destroy
baseentity.h
baseentity.cpp
- Removed duplicate functions ScriptSetSize and ScriptUtilRemove
player.cpp
- Moved player script instance registration before player_spawn event
vscript_server.cpp
- Added CEntities::FindByClassNearestFacing
vscript_funcs_shared.cpp
- Added GetFrameCount
- Added IntervalPerTick
vscript_singletons.cpp
- Better game event descriptors for CScriptGameEventListener
- Added ::effects (CEffectsScriptHelper)
- Added ::Convars (CScriptConvarAccessor)
vscript_shared.cpp
- Fixed clientside entity printing in script VM
mapbase_con_groups.h
mapbase_con_groups.cpp
- Improved performance by changing string comparisons to direct array access
vscript_bindings_base.h
vscript_bindings_base.cpp
- Added CScriptKeyValues::SubKeysToTable
vscript_bindings_math.cpp
- Added ::SimpleSplineRemapVal
- Added ::SimpleSplineRemapValClamped
- Added ::Bias
- Added ::Gain
- Added ::SmoothCurve
- Added ::SmoothCurve_Tweak
- Added ::ExponentialDecay
vscript_squirrel.nut
- Added ::Lerp
- Added ::FLerp
- Added ::SimpleSpline
vscript_squirrel.cpp
- Added Vector::_unm
- Added Vector::Set
- Added Vector::Add
- Added Vector::Subtract
- Added Vector::Multiply
- Added Vector::Divide
- Added Vector::DistTo
- Added Vector::DistToSqr
- Added Vector::IsEqualTo
- Added Vector::WithinAABox
- Added Vector::FromKVString
- Changed vector print syntax
2021-03-06 02:04:55 +02:00
Blixibon
fa45fffa39
Added save/restore to client-side VScript
2021-01-27 11:01:38 -06:00
Blixibon
a11cb93c42
Adjusting certain code and metadata for Mapbase v6.2
2021-01-26 12:08:42 -06:00
Blixibon
f484653f41
Fixed host_timescale scaling sounds when cheats are off
2021-01-24 22:31:48 -06:00
Blixibon
4441911f92
Merge pull request #78 from mapbase-source/feature/clientside-vscript
...
Proper client-side VScript control
2021-01-23 14:21:41 -06:00
Blixibon
b720ec4c84
Added spawnflag to make prop_ragdoll bones use constraints which are fixed to each other (also known as "make statue")
2021-01-23 09:32:28 -06:00
Blixibon
8af9c0dc61
Added basic think hook to logic_script_client
2020-12-27 15:54:56 -06:00
Blixibon
a3decd7bbe
Merge branch 'develop' into feature/clientside-vscript
2020-12-27 09:23:49 -06:00
samisalreadytaken
ef7d9ccc0f
vscript additions and fixes:
...
vscript_client.cpp
- Fixed local player script instance registration
- Added CEntities::GetLocalPlayer
- Added Con_IsVisible
- Added IsWindowedMode
- Added ScreenWidth
- Added ScreenHeight
- Added ScreenTransform
- Added missing DoUniqueString
gameinterface.cpp
usercmd.h
usercmd.cpp
vscript_singletons.cpp
- CNetMsgScriptHelper
vscript_singletons.cpp
- Added hash map for CScriptSaveRestoreUtil
- Added hash map for CScriptGameEventListener::s_GameEvents
- Changed CScriptGameEventListener string contexts to hashes
- Added invalid input condition on CScriptGameEventListener::ListenToGameEvent
- Moved CDebugOverlayScriptHelper to shared code
ivscript.h
vscript_squirrel.cpp
- Added IScriptVM::Get/Set/ClearValue (ScriptVariant_t key)
baseentity.h
baseentity.cpp
- Added CBaseEntity::SetContextThink (ScriptSetContextThink)
vscript_server.cpp
vscript_client.cpp
vscript_funcs_shared.cpp
- Changed the order user vscript_*.nut files are executed - after internal scripts, before mapspawn
vscript_squirrel.cpp
vscript_squirrel.nut
vscript_server.nut
vscript_shared.cpp
- Localised all documentation under __Documentation
hl2_usermessages.cpp
- Added usermessage ScriptMsg
c_baseplayer.cpp
- Removed redundant check in ~C_BasePlayer
2020-12-26 17:16:46 +03:00
Blixibon
5529127d68
Split logic_script_client and Mapbase user messages into their own files
2020-12-26 00:02:43 -06:00
Blixibon
cb7cee6283
Added a few more VScript base entity functions to the client
2020-12-25 23:53:59 -06:00
Blixibon
f70c066a8e
Added a bunch of client-side VScript functions to C_BaseEntity
2020-12-25 09:09:33 -06:00
Blixibon
6f0781b5b8
Added logic_script_client entity and a user message for calling a client-side function
2020-12-24 23:55:19 -06:00
Blixibon
87cd9b24bb
Mapbase v6.1
...
- Added postprocess_controller entity from later versions of Source
- Added env_dof_controller entity from later versions of Source
- Added SDK_Engine_Post and DepthOfField shaders from the Momentum repo/Alien Swarm SDK
- Fixed auto-breaking game_text/choreo text not null terminating
- Fixed console groups showing up at the wrong developer levels
- Added more mesages to console groups, including a new "NPC AI" console group
- Fixed typos and added elaboration in various cvars, console messages, etc.
- Fixed npc_metropolice not using frag grenades correctly when allowed to use them
- Fixed npc_metropolice not registering stitching squad slots in AI
- Fixed SetModel input late precache warning
- Fixed env_global_light angles resetting upon loading a save
- Fixed an issue with ScriptKeyValuesRead using the wrong name and having a memory leak
- Allowed VScript functions which return null strings to actually return null instead of empty strings
- Added VScript member variable documentation
- Fixed VScript documentation lines sometimes mixing together
- Fixed VScript singletons having a ! at the beginning of descriptions
- Added Color struct to VScript and allowed color-related inputs to use it
- Added more VScript functions for weapons, ammo, ragdolling, and response contexts
- Added GameRules singleton for VScript
- Exposed AI interaction system to VScript
- Recovered some lost documentation from older revisions of the Mapbase wiki
- Added a way to get the current game's load type in VScript
- Fixed Precache/SpawnEntityFromTable not accounting for a few important field types
- Added VScript functions for getting a player's eye vectors
- Fixed a crash caused by removing the active weapon of a Combine soldier while it's firing
- Changed the way metrocops deploy their manhacks so they could use their manhack death response properly
- Fixed "Use Server" keyvalue on game_convar_mod not working
- Adjusted CAI_Expresser in VScript
2020-12-17 03:38:23 +00:00