Commit Graph

720 Commits

Author SHA1 Message Date
Kyle
066818fbec Update TerminateRound signature for CSGO 2023-08-30 22:08:45 +02:00
Vauff
64b897822f Update HandleCommand_Buy_Internal sig and related offsets for CS:GO Win 2023-08-30 22:08:45 +02:00
Vauff
0ad0d839a0 Update CSWeaponDropBB signature for CS:GO Linux 2023-08-30 22:08:45 +02:00
Nick Hastings
410eb01f91 Add missing WriteBaselines signatures for Blade Symphony. 2023-08-30 22:08:45 +02:00
Nick Hastings
c66175d64e Use new GetIServer call and updated IServerTools calls on Blade Symphony. 2023-08-30 22:08:45 +02:00
Nick Hastings
ed5713b3fd Blade Symphony gamedata updates, round 1. 2023-08-30 22:08:45 +02:00
dysphie
0cb3fcaed8 Fix NMRiH's 'GivePlayerAmmo' offset on Windows (#1593) 2023-08-30 22:08:44 +02:00
A1m`
507b09c975 Fix 'GiveNamedItem' in the game left4dead2. (#1590)
* Fix 'GiveNamedItem' in the game left4dead2.

The method 'CCSPlayer::GiveNamedItem(char const*, int, CBaseEntity*)' does not work in game left4dead2, any given weapon and object immediately falls to the ground, besides, the code is missing a parameter to call this method (even with the added parameter does not give a weapon to hands). Another method 'CTerrorPlayer::GiveNamedItem(char const*, int, bool, CBaseEntity*)' works great, besides it makes it possible to give out all the items that exist in the game.

* Add x64 support

Add x64 support

* Changed argument type to bool.

Changed argument type to bool.
2023-08-30 22:08:44 +02:00
pedrotski
f48cbaab75 Update CS:GO Reload gamedata (#1585) 2023-08-30 22:08:44 +02:00
GAMMACASE
fe27c8810e Update gamedata after latest CSGO update (22/09/21) (#1583) 2023-08-30 22:08:44 +02:00
Asher Baker
32d951e312
Detect invalid menu item selections in L4D-based games (#1543)
Some games have implemented CHudMenu::SelectMenuItem to close the menu
even if an invalid slot has been selected, which causes us a problem as
we'll never get any notification from the client and we'll keep the menu
alive on our end indefinitely. For these games, pretend that every slot
is valid for selection so we're guaranteed to get a menuselect command.
We don't want to do this for every game as the common SelectMenuItem
implementation ignores invalid selections and keeps the menu open, which
is a much nicer user experience.

Fixes #1385
2021-07-18 20:57:13 +01:00
Stanislav Polshyn
c38d45b9e7
gamedata: SetCollisionGroup signatures for L4D (#1514) 2021-06-29 01:13:56 -07:00
Adam Short
a9d3cf4574
sdktools: Add SetCollisionGroup native (#1461) (#1507)
* Add SetCollisionGroup native

* Add newline to end of file

* Fix gamedata locations

* Remove extra spaces

* Fix gamedata formatting

* Add Windows signature for CS:GO

* Fix native doc comment

* Revert formatting change

* Change references of client -> entity

* Moved CallWrapper into method

* typofix

Co-authored-by: Kyle Sanderson <kyle.leet@gmail.com>
2021-06-24 15:04:10 -07:00
Mikusch
1eae765dc3
Update Team Fortress 2 gamedata (#1509) 2021-06-22 19:19:06 +01:00
Vauff
47c050d5b6
Update TerminateRound signature for CS:GO windows (#1486) 2021-04-29 01:24:26 -07:00
Nicholas Hastings
ae485c3115
Add A2S_Rules fix for CS:GO to CStrike extension. (#614)
* Add A2S_Rules fix for CS:GO to CStrike extension.

* Dont force set the cvar. Add checks before patching.

* Remove incorrect and useless check.

* Remove checking value as it is in the signature.

* Update build script changes to AMBuild 2.1 API to fix build.

* Fix bad check and ConVarRef being resolved too early.

* Whoops. This line is kinda important. Got nuked when refactoring.

* Remove unused variable.

* Updatet gamedata.

* Switch to "Addresses" gamedata lookup

* Add linux64 gamedata

* Fix mac build

Co-authored-by: Ruben Gonzalez <drifter01620@gmail.com>
Co-authored-by: Peace-Maker <peace-maker@wcfan.de>
2021-03-08 22:42:32 +00:00
komashchenko
978fa6b252
Fix detour HandleCommand_Buy_Internal (#1406) 2020-12-18 12:10:10 +00:00
c0rp3n
24f90449ad [CS:GO] Remove control chars from gamedata 2020-12-16 16:17:14 +01:00
Natanel Shitrit
c2b806563e
Update 'CScore' offset for CS:GO (#1394) 2020-12-04 17:13:10 +00:00
Vauff
15d912df38
Update TerminateRound signature for CS:GO linux (#1392) 2020-12-04 00:10:51 +00:00
Mr. Silence
104b6b878a
[ZPS] Gamedata update for sdktools/sdkhooks (#1369)
* Gamedata update for ZPS 3.1

Signed-off-by: Mr.Silence <Silenci0@users.noreply.github.com>

* Offset updates for ZPS 3.1

Signed-off-by: Mr.Silence <Silenci0@users.noreply.github.com>

* Updated offsets and signatures.

Signed-off-by: Mr.Silence <Silenci0@users.noreply.github.com>
2020-10-20 03:58:35 +00:00
Michael Busby
2c94ab3b1c
Update L4D2 Gamedata for 2.2.0.0 (#1351) 2020-09-24 18:52:24 +01:00
peace-maker
510bd261f8
core: Add Insurgency support for amd64 Windows (#1295)
* Add basic Insurgency support on Windows x64

This allows SourceMod to load on x64 Insurgency. There are still a lot of variable truncation warnings that have to be dealt with.

* Fix 32bit builds

* Compile MySQL extension as well

The hack for __iob_func being removed from the core runtime, but required by the old mysql we're building against can be simplified a lot due to the `_ReturnAddress` intrinsic available since MSVC 2015.

* Don't include the offset we want to extract in the signature
2020-08-06 19:53:06 -07:00
nosoop
c5619f887d
core: Add support for networked CUtlVector (#1330)
* Add offset-reading capability for networked CUtlVector instances

* Use strncmp instead of strstr

* Use strcmp instead of strncmp

Co-authored-by: Asher Baker <asherkin@limetech.io>

* Move CSendPropExtra_UtlVector offset to gamedata

* Update name of offset + add gamedata entry

* tiny nits

Co-authored-by: Asher Baker <asherkin@limetech.io>
Co-authored-by: Kyle Sanderson <kyle.leet@gmail.com>
2020-08-06 19:15:20 -07:00
Kyle Sanderson
353ced0e41
gamedata: align with core project values. (#1310)
* Rename blacklist.plugins.txt to blocklist.plugins.txt
* gamedata: adjust gamedata name.
* packagescript: adjust filename.
2020-07-14 18:40:28 -07:00
42
1282f13442 Update TF2 CanBeAutobalanced Gamedata 2020-07-03 19:42:07 -04:00
Nick Hastings
4c8103a4e1 Add string_t SetEntPropString support for ep1 (fixes #1287) 2020-06-25 21:20:56 -04:00
Nick Hastings
2ebbf2774b Update Fortress Forever gamedata. 2020-06-25 12:49:31 -04:00
Nicholas Hastings
7e0dd1fd41
Update TF2 CanBeAutobalanced gamedata. 2020-06-17 00:50:43 +00:00
Loïc
f3200b2232
Fix GetDataDescMap not work on Day Of Infamy (#1263)
During the Split Day of Infamy to separate engine build #718 on 3 Nov 2017, it was forgotten to add the engine doi the list.
2020-05-07 12:20:29 +01:00
42
881cbcd45d
Add new TF2 Holiday Soldier (#1257) 2020-05-06 23:00:24 +00:00
Loïc
d876f04baf
Update Function Offsets For PVKII 0.4.2.2 (#1227)
* Update Function Offsets For PVKII 0.4.2.2

-Updates offsets for Linux/Win/Mac
-Update func sig FireOutput for Linux/Win/Mac
2020-04-22 01:03:34 +00:00
Loïc
593552f8d6
Update Function Offsets For PVKII 0.4.2.2 (#1226)
* Update Function Offsets For PVKII 0.4.2.2

-Updates offsets for Linux/Win/Mac
2020-04-22 01:03:22 +00:00
Nick Hastings
1d98c3a782 Fix Linux SetClientName/SetUserConVar gamedata on Nuclear Dawn (Fixes #1225). 2020-04-08 17:47:49 -04:00
peace-maker
23efe26655
Update Contagion gamedata again (#1216)
Updates vtable offsets after Patch 2.1.2.2 again. #1171
2020-03-18 16:04:41 +00:00
rumblefrog
e941c1acea
Update Black Mesa gamedata (#1208) 2020-03-10 20:20:08 +00:00
Asher Baker
ecad8f25a8
Revert "csgo: enable SayText + raise msg limits (#1118)" (#1209)
This reverts commit 4a8e0799bd.
2020-03-08 13:27:13 +00:00
Asher Baker
48c3a9f2fa
NMRiH gamedata update (#1204) 2020-03-05 18:37:09 +00:00
Asher Baker
17440fc4be
Update Reload offset (#1202)
Update Reload offset
2020-03-04 21:56:08 +00:00
GAMMACASE
4a8e0799bd
csgo: enable SayText + raise msg limits (#1118)
Rised limits for SayText and HintText protobuffs in csgo, also switched from TextMsg to SayText in csgo.
2020-02-26 16:31:50 -08:00
Juice
a3dd25f354
Update csgo InfoChanged offset (#1192) 2020-02-26 18:46:09 +00:00
komashchenko
4b0e73ca5a
WriteBaselines gamedata update (#1189) 2020-02-25 10:21:04 +00:00
MartLegion
cd37354634
Change sm_beacon to use game-specific team colors (#1187)
Added game color config & specific settings for L4D/L4D2

Created the following keys:

"Team1Color"	"75,255,75,255"
"Team2Color"	"255,75,75,255"
"Team3Color"	"75,75,255,255"
"Team4Color"	"255,128,0,255"
"TeamUnknownColor"	"255,255,255,255"

Added a specific setting for L4D/L4D2 game:

"Team2Color"	"75,75,255,255"
"Team3Color"	"255,75,75,255"
2020-02-23 14:03:00 +00:00
peace-maker
c052eb3969
Update Contagion gamedata (#1169) 2020-02-06 22:11:05 -08:00
GAMMACASE
cfa4998ac1 WriteBaselines gamedata update after latest csgo update (#1153) 2020-01-07 21:36:16 +00:00
komashchenko
82df6087af Update CScore and MVP CSGO gamedata (#1127) 2019-11-19 21:31:54 -08:00
PerfectLaugh
bef8562de5 Fix CSGO Update crash (11/19/2019) (#1125)
* Fix CSGO Update crash (11/19/2019)

We know what happened when Valve do something big.
Not tested on Linux

* Fix RoundRespawn on Windows

* Fix TerminateRound on Linux x86

* Comment out Linux x64 part of TerminateRound

Better leave blank here.
2019-11-18 22:18:28 -05:00
Asher Baker
fcafd0784c
Workaround CS:GO Stringtable bug (#1046)
The cause of the infamous "Index error writing string table baseline"
error appears to be a timing issue between the engine's network message
processing, the stringtable encoding, and command processing when adding
stringtable entries in OnConfigsExecuted.

When the first client connects the map is re-loaded which causes a full
refresh, the game's stringtable entries are added at tick 65, the client
connection is registered at tick 66, and stringtable entries added in
OnConfigsExecuted are registered as being added in tick 67. The engine
later calls WriteBaselines with the client's signon tick, and neglects
to encode the SM added entries as it considers them from the future.

To avoid this, always pass INT_MAX as the current tick when encoding
the baseline, so all stringtable entries are included regardless of when
they were added. Tested on both Windows and Linux.
2019-07-19 09:13:34 +01:00
Bruno Ronning
d7990596f9 Update CS:GO "Reload" offset. (#1011) 2019-05-14 18:56:14 -04:00
Nick Hastings
b92381505a Update Linux CSWeaponDropBB signature. 2019-05-01 11:35:13 -04:00