Commit graph

54 commits

Author SHA1 Message Date
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
ede94373ad Increment version to 1.1.0 2023-02-28 22:12:29 +01:00
ebd085c65e Upgrade to .NET 7.0 & Fix Steam Library Detection 2023-02-28 22:11:33 +01:00
1433cdee81 Add Config Manager 2023-02-28 21:17:48 +01:00
77e1bdf273 Make it inconvenient to show thanks & Increase version to 1.3.1.2
* User will have to hold only the Ctrl key while opening the about window to show extra possibly cringe info
2023-02-01 23:16:38 +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
b21ea87e7a Extend help section and modify "thanks" 2022-12-10 02:41:11 +01:00
00b3315275 Change version 1.3.0.3 to 1.3.1.0 2022-12-10 00:29:15 +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
4fe796769e Fix armor rounding error and add player stance
* Fix armor being rounded down instead of up
* Add player stance (crouched or standing) to bomb mode
* Remove useless abs()
2022-11-20 23:27:59 +01:00
5f23679ef7 Change file version to 1.3.0.1
* SteamLibrary fix attempt
2022-11-19 16:03:47 +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
e8a83cf582 Add Config Manager draft 2022-06-23 11:55:53 +02:00
MathiasL
986762688a Add version to window title 2022-05-27 20:58:50 +02:00
MathiasL
5b7ea37d8e Hopefully fix unwanted output after string in-game
* There were some random characters sometimes after outputs. Probably because of the missing \0, so added it back to the length
2022-05-27 20:44:27 +02:00
MathiasL
8b6fcde7fe Add support for UTF-8 characters
* Changed SendMessage to explicitly use SendMessageW for unicode
* Added cancellation of main thread (hopefully secure enough to not throw an exception but it's not that important)
* Switched from reading the console log one byte per character, to multiple bytes, if necessary
* Adjusted count in struct, since apparently it has to be byte count and not character count (adding 1 for the null-byte wasn't necessary)
* Changed string to be marshaled as UTF-8 so that it shows correctly in-game as well
2022-05-27 19:14:14 +02:00
MathiasL
0e2e9ef8fe Fix textbox wrapping with long names 2022-05-26 15:27:00 +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
b5623017fc Merge branch 'master' of https://github.com/MathiasLui/CSGO-Projects 2022-05-24 23:41:39 +02:00
MathiasL
4a15f59298 Add initial Damage Printer GUI project 2022-05-24 23:41:18 +02:00
4db97311f7
Update README.md 2022-05-24 23:26:01 +02:00
MathiasL
ab8625cb9c Fix leading whitespaces corrupting commands 2022-05-24 22:44:14 +02:00
ba30d9f586
Update README.md 2022-05-24 13:40:56 +02:00
c138d57f7c
Create README.md 2022-05-24 13:39:26 +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
MathiasL
50ac34fb28 Add hacky damage displayer (Will get refactored)
* Change Shared namespace to SteamShared
* Add damage displayer which also calculates, gets local weather and fuel prices
* API Key for tankerkoenig has to be supplied because I didn't push it
2022-05-20 22:20:45 +02:00
MathiasL
d1652aa588 Add count of bomb spots for the current map 2022-05-15 02:30:53 +02:00
MathiasL
aac448d227 Add walk time for distance and other information
* Add simple time that it takes to walk distance while crouching/walking/running (later might have draw mode for adding a route)
* For above the ducking and walking speed multipliers have been added (as according to csgo source code)
* Add weapon info (running speed, base damage per minute, firing rate)
2022-05-15 01:13:40 +02:00
MathiasL
65959bff26 Add taser to weapon list
* Taser has new shock damage type, that doesn't account for multipliers/armor
2022-05-14 23:28:02 +02:00
MathiasL
bce1fa13fa Fix BSP packed files being treated correctly in the map filter 2022-05-08 17:09:46 +02:00
MathiasL
c2d33f1816 Change to Version 1.3.0 & NAV area support & restructure
* Adjusted help window
* Moved all settings that get saved in a file into a single window in the Edit menu
* Add NAV area support and Z coordinate
* Add weapon and NAV info boxes
* Changed copying coordinates to include the setpos_exact command for ease of use
* Settings are now saved and loaded
* Add map scale factor override and X/Y offset
* Removed ability to hide right click/left click circles
* Add various summaries
* Add OverwriteMapping class as an overwrite object for a map, that gets loaded from the settings and applied to each map when loading them
* Add Associated area to map points and Z height
2022-04-20 08:54:29 +02:00
MathiasL
3d99b1f68b Migrate to .NET 6.0 and create ConfigManagerV2 project
* Make necessary adjustments to have the same working program
* AssemblyInfo is not set via the file anymore, but the csproj file or in the project settings under Package->General (AssemblyVersion is the one displayed in the Help window)
* Add null-forgiving operators etc. for new language version
* Move stuff that is shared between the DamageCalculator and ConfigManagerV2 into its separate project
2022-03-25 19:55:14 +01:00
MathiasL
a41fac78be Add map filter and adjust help window accordingly 2022-03-24 23:41:22 +01:00
MathiasL
5ef79f6426 Add AIN file indicator and nav/ain packed indicator
* Version increase to 1.2
2022-03-24 23:03:53 +01:00
MathiasL
7d7ce53dae Add gitignore 2022-03-18 18:55:15 +01:00
MathiasL
232c527f3a Change version number to 1.1.0.2 2022-03-18 01:10:29 +01:00
MathiasL
7993560691 Allow other keys for other controls than the main window and only keep space for itself 2022-03-18 01:08:12 +01:00
MathiasL
20c7a8f126 Fix zoom not having focus after selecting radio button 2022-03-18 01:04:31 +01:00
MathiasL
374d66e854 Make hostages CT blue and fix hostage hiding
* Hostages and other spawns should now hide respectively correctly
2022-03-18 00:50:47 +01:00
MathiasL
77f3d2c91c Fix hiding of drawn markers, bugfixes
* Reset zoom is now handled by window so one can reset even when image is not visible
* Hiding and showing markers now works
* Re-add Viewbox which fixes displaying issues, introduces a bit of lag
2022-03-18 00:35:01 +01:00
MathiasL
9642b8cd74 Zoom reset if window size changes while zoomed
* Was causing that the map might not be visible and move in weird amounts
2022-03-17 23:50:39 +01:00
MathiasL
d38a5bdf21 Add hostages to spawn display 2022-03-17 23:23:45 +01:00
MathiasL
d0bdb0d24e Adjust zoom control
* Changing map now resets zoom
* While pressing space there will now be a 4-arrow cursor
2022-03-17 22:57:37 +01:00