Commit graph

18 commits

Author SHA1 Message Date
08caef7aaa More cleanup of CsgoHelper
Mainly let CodeMaid reorganize the file
2023-08-26 16:10:08 +02:00
a05d9785bd Slightly cleaned up CsgoHelper 2023-08-26 15:43:21 +02:00
9f86e4433e Fix shouldBeFullyInstalled not working in GetGamePathFromExactName
* It was checking correctly, but it got its games from `UpdateInstalledGames`, which already pre-filtered games that weren't fully installed, so we made it pass it down to it
* Also added a parameter to `GetGamePathFromExactName`, which enables us to also choose whether the game should be ignored, if it doesn't have an existing install folder
2023-06-13 22:37:23 +02:00
2d8e38d48a Clean up SteamHelper and SteamGame
* Also makes required adjustments in the DamageCalculator
2023-06-13 21:32:05 +02:00
8edbd31b94 Fix calculation issue when not on NAV area & Increment version
* Incremented to Version 1.3.1.3 as well as .NET 7
* When not standing inside of a NAV area and setting the position via button, it didn't find a NAV area and disregarded the player's height. Now we just check if Z value was set (not null)
* Also fixed comment
(Holy shit I wish I had motivation to refactor the main window)
2023-03-07 00:16:37 +01:00
81b2b98394 Increase to .NET 7.0 & Add ugly publishing scripts
* Scripts got added for DamageCalculator and ConfigManager
* Batch scripts will need 7z be added to PATH, as well as the two specified profiles in order to work
* Alter publish profiles to fit to the scripts, one for self-contained and one for lower file size
* Add explicit cast that is now needed to remove ambiguity
2023-03-01 23:43:32 +01:00
f38a3ebef8 Change DDSImage class to use Pfim instead, that supports DX10 headers
* While testing, one map couldn't be loaded (dz_county) because it had a DX10 header. It's not in the game anymore but change it anyways for more compatibility
2022-12-10 18:36:30 +01:00
c449cd1bf9 Fix bomb prediction & Add netconport integration
* Bomb distance was previously fetched like in CBaseEntity::BodyTarget, but was switched to CBasePlayer::BodyTarget, which adds an amount of randomness to the damage, the more above or below the bomb a player is, the more randomness
* unitsDistanceMax will now keep the maximum distance the bomb calculates damage at, whereas unitsDistanceMin will have the minimum distance, generating a from-to value for damage
* Add min and max to bomb damage in the UI
* Added more summaries
* Bomb and player stroke are now thinner
* Fixed a random crash at startup when there were no NavAreas to loop over
* Added the functionality to set the current in-game point to either of the two points in the program, -netconport is needed for that and automatically added, if not there
* Added said netconport to the settings
* Added SteamUser class
* Added ability for VdfParser to find strings where quotes are escaped, since they were treated as normal quotes
* Add function to get the steam user that most recently logged into steam
2022-12-10 00:27:23 +01:00
3e94f4c622 Fix bomb damage radius
* Change version to 1.3.0.3
* Fix bomb radius not accurate by using a box
* When creating a point somewhere we now store its in-game coordinates for the bomb intersection test
* SpatialPartitioningHelper.cs is not yet used, except for the BoxIntersects-Method
*
2022-11-27 22:03:13 +01:00
44e1c48103 Remove Pfim references
* Only remove Pfim temporarily, thus commented out
2022-11-19 15:56:18 +01:00
c706727e73 Merge branch 'master' of https://github.com/MathiasLui/CSGO-Projects 2022-11-19 15:43:58 +01:00
74be8dafc3 Hopefully fix new SteamLibrary
* Fix value between 0 and 1 being shown as percentage, this is now multiplied by 100
* If CS:GO is not found, it will also return from the function as not to execute the background worker causing an exception
* Using the new libraryfolders.vdf instead of the legacy config.vdf to fetch all libraryfolders. This is controllable via the new preprocessor directive NEWLIBRARYLOCATION
2022-11-19 15:43:15 +01:00
962cfac30a (draft) Add Pfim image library and non-tested code
* We want to be able to load extended DX10 headers and this library might be able to do it, but I can't test it on this machine
2022-06-23 11:57:49 +02:00
MathiasL
435daf6eb6 Make damage printer GUI features work
* Fixed a SteamHelper method that's not used anyways that threw exceptions
2022-05-26 01:37:51 +02:00
MathiasL
ab8625cb9c Fix leading whitespaces corrupting commands 2022-05-24 22:44:14 +02:00
MathiasL
e39bbcc61d Add CFG-parser 2022-05-24 10:40:57 +02:00
4e450fc921 Add first SourceCFG skeleton draft and test config 2022-05-21 16:47:42 +02:00
MathiasL
07d2a098b5 Change "SteamHelpers" csproj and "Shared" namespace to SteamShared 2022-05-20 22:56:13 +02:00