Comments (5)
Minification is not completely automated, there is some manual copy-pasting involved. You can search the minified file to find and replace the functions you wish to replace, do the regex replacement below twice (once with 2 params and once with 1) and just leave them there.
Lines 72 to 73 in 4fd7aa7
so that save/load doesn't update all existing objects
I'm curious what you mean by this. I just tested and found that ToExtendedPlayer()
crashes the game on restore (and found the fix for it), but nothing else. Was this your issue?
from vs_library.
You update the entities in each round via __KeyValueFromString("classname",..), but the entities are also updated after save/load, which is why logic_measure_movement disappears after save/load
from vs_library.
That code path is already disabled for Portal 2. I will push the fix for extended player today or tomorrow.
from vs_library.
I pushed the fix as 2.43.26
, tested getting player eye angles and FOV. I'd like to hear if this resolves your issue.
There is one thing to pay attention to is if you're using CExtendedPlayer to get player eye angles, do not change the player's targetname, as that name is used on game restore.
I also found something peculiar about the way things work in Portal 2; it seems like sometimes player eye angles start drifting about 0.0001 degrees every second. This is not really an issue though as no player would be expected to not move the mouse for minutes for this to make any difference.
from vs_library.
Ignore what I said about changing player targetname before, I just hadn't thought about a solution back then. I just pushed a hotfix for that; you can name player whenever to whatever you like.
from vs_library.
Related Issues (10)
- HPlayerEye.GetAngles() always returns vector : (0.000000, 0.000000, 0.000000) HOT 1
- VS::CreateEntity is incompatible with prop entities HOT 3
- Calling an added event results causes the index of 0 to not be found. HOT 5
- Cannot fetch player name: "the index 'GetScriptScope' does not exist" HOT 2
- Can't get events HOT 2
- StopTimer like SourceMod HOT 3
- Event player_connect can only get BOT Networkid HOT 4
- Is it effective that use the following vscript code to set up an logic_eventlistener and point_template entity, so that the vs_events.nut can work? HOT 2
- Are discussions being read? Or notifications or something? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vs_library.