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.
This commit is contained in:
@@ -117,14 +117,15 @@
|
||||
}
|
||||
|
||||
"left4dead2"
|
||||
{
|
||||
{
|
||||
"Offsets"
|
||||
{
|
||||
/* CTerrorPlayer::GiveNamedItem(char const*, int, bool, CBaseEntity*) */
|
||||
"GiveNamedItem"
|
||||
{
|
||||
"windows" "508"
|
||||
"linux" "509"
|
||||
"mac" "509"
|
||||
"windows" "431"
|
||||
"linux" "432"
|
||||
"mac" "432"
|
||||
}
|
||||
"RemovePlayerItem"
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user