Commit Graph

199 Commits

Author SHA1 Message Date
samisalreadytaken
d7a06e863e Fix ScriptContextThink precision errors 2021-04-18 18:43:05 +02: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
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
Blixibon
2fbef62553 Fixed a crash on exit involving the presence of multiple VGui screen manifests and a possibly defunct memory leak fix 2021-03-13 16:44:28 -06:00
Blixibon
303b0552e9 Touched up vgui_text_display code, added Toggle input 2021-03-13 16:42:47 -06:00
Blixibon
3bb9a92ed8 Added hook for CBaseAnimating::HandleAnimEvent() 2021-03-12 15:33:48 -06:00
Blixibon
97116a5eca Exposed npc_sniper to VScript 2021-03-12 15:19:36 -06:00
Blixibon
8d807b5b0b Exposed CAI_BaseNPC::GetActualShootPosition() and related functions to VScript 2021-03-12 15:18:37 -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
7221aab090
Merge pull request #107 from mapbase-source/feature/asw-movies
Alien Swarm SDK videos and movies
2021-03-12 11:32:06 -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
c7657b1547 Fixed a crash related to an obscure choreo event 2021-03-12 11:04:56 -06:00
Blixibon
9432ecc40c Added new "mute" keyvalue and StopMovie input to logic_playmovie 2021-03-12 10:15:09 -06:00
Blixibon
c17d32d7a4
Merge pull request #105 from samisalreadytaken/dev3
vscript additions and fixes 3
2021-03-11 02:36:53 -06:00
Blixibon
57774c2a79 Added vgui_text_display, an entity which displays a VGui text label oriented in the world 2021-03-10 12:07:55 -06:00
Blixibon
251725c987 Added semi-standardized custom model support to several NPCs 2021-03-07 12:03:32 -06:00
Blixibon
92866ca2fa Added EnableCrouch input to npc_strider 2021-03-07 11:57:33 -06:00
Blixibon
8f7d3ac03b Added keyvalue to combine_mine for disabling companion avoidance 2021-03-07 11:55:08 -06:00
Blixibon
15ae789b89 Added "Disable flashlight" keyvalue/inputs inspired by Portal 2's 2021-03-07 11:43:28 -06:00
Blixibon
c4abb0b07f Made HUD movie parameters more flexible; Added WIP movie fade effects for replicating the Portal 2 keyvalues 2021-03-07 11:39:50 -06:00
Blixibon
a4a292975b Added logic_playmovie and vgui_movie_display from Alien Swarm SDK 2021-03-06 01:16:00 -06:00
Blixibon
302885d39c Added video panel code from Alien Swarm SDK + custom looping support 2021-03-06 01:13:49 -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
bd3b9c3807 Fixed VBSP VScript documentation not working 2021-03-04 11:37:32 -06:00
Blixibon
14d3ee19d0 Fixed the client-side VScript "player" instance not being set once more after having moved around the VM init code again 2021-01-27 23:25:09 -06:00
Blixibon
fa45fffa39 Added save/restore to client-side VScript 2021-01-27 11:01:38 -06:00
Blixibon
2ee7845e8d Made instance name fixup stop fixing up names starting with '!', which was causing problems with procedurals like !activator 2021-01-27 07:57:21 -06:00
Blixibon
fa37adb1d5 Fixed a few client-side VScript functions not binding correctly 2021-01-26 12:13:04 -06:00
Blixibon
a11cb93c42 Adjusting certain code and metadata for Mapbase v6.2 2021-01-26 12:08:42 -06:00
Blixibon
763c836d45 Fixed a npc_zombie crash caused by inflictor-less crush damage 2021-01-24 22:32:22 -06:00
Blixibon
f484653f41 Fixed host_timescale scaling sounds when cheats are off 2021-01-24 22:31:48 -06:00
Blixibon
6595b96418 Fixed func_rotating angles fix not being in the right place 2021-01-24 22:28:55 -06:00
Blixibon
01f830a72d Fixed new init order causing script classes to continuously reinitialize 2021-01-24 18:38:32 -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
e3550438b9 Added functions to create and modify force behavior of client-side "death ragdolls" 2021-01-23 13:20:07 -06:00
Blixibon
eb2e8d5238
Merge pull request #84 from 1upD/mapbase/css-viewmodel-chirality
Enable Counter-Strike Source view model chirality in Mapbase
2021-01-23 11:32:20 -06:00
Blixibon
b4717f3321
Merge pull request #93 from ReDucTor/save-load-init-order-fix
Fixing issue with loading from a save on game start crashing
2021-01-23 10:04:02 -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
8e283f3738 Added OnServerRagdoll hook for VScript 2021-01-23 09:20:21 -06:00
James Mitchell
d23729e6e1 Fixing issue with loading from a save on game start crashing 2021-01-23 13:54:00 +11:00