We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Using e.Projectile.Velocity() with cs2 demo gives error with failed to parse demo: property 'm_vecVelocity' not found
failed to parse demo: property 'm_vecVelocity' not found
To Reproduce Parse provided demo file with code below
Code:
package main import ( "fmt" "log" "os" dem "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs" events "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/events" ) func main() { f, err := os.Open("./trash_left.dem") if err != nil { log.Panic("failed to open demo file: ", err) } defer f.Close() p := dem.NewParser(f) defer p.Close() p.RegisterEventHandler(func(e events.GrenadeProjectileBounce) { fmt.Printf("%s\n", e.Projectile.Velocity()) }) err = p.ParseToEnd() if err != nil { log.Panic("failed to parse demo: ", err) } }
Expected behavior Prints projectile velocity or do not be able to call .Velocity()
.Velocity()
Library version v4.0.0-beta.0
Additional context Works with CSGO demos. Demo recorded 01.09.2023 with tv_enable 1 and tv_record fileName. trash_left.zip console out.txt
tv_enable 1
tv_record fileName
The text was updated successfully, but these errors were encountered:
I haven't found the velocity field for entities yet - if anyone knows where to get that data, please let me know 🙂
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Using e.Projectile.Velocity() with cs2 demo gives error with
failed to parse demo: property 'm_vecVelocity' not found
To Reproduce
Parse provided demo file with code below
Code:
Expected behavior
Prints projectile velocity or do not be able to call
.Velocity()
Library version
v4.0.0-beta.0
Additional context
Works with CSGO demos.
Demo recorded 01.09.2023 with
tv_enable 1
andtv_record fileName
.trash_left.zip
console out.txt
The text was updated successfully, but these errors were encountered: