Raised This Month: $51 Target: $400
 12% 

About stripping user's weapons


Post New Thread Reply   
 
Thread Tools Display Modes
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 01-02-2015 , 09:41   Re: About stripping user's weapons
Reply With Quote #11

Its not fixed.
__________________
The functional way is the right way
GordonFreeman (RU) is offline
FromTheFuture
Senior Member
Join Date: Jan 2013
Old 01-02-2015 , 21:20   Re: About stripping user's weapons
Reply With Quote #12

If i'm using "player_weaponstrip" entity for remove weapons this offset not will be reset with hlds?
FromTheFuture is offline
FromTheFuture
Senior Member
Join Date: Jan 2013
Old 01-02-2015 , 21:23   Re: About stripping user's weapons
Reply With Quote #13

Or need to reset the offet only with strip_user_weapons(id) function?
FromTheFuture is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 01-03-2015 , 05:57   Re: About stripping user's weapons
Reply With Quote #14

From fun.cpp
PHP Code:
static cell AMX_NATIVE_CALL strip_user_weapons(AMX *amxcell *params// index
{
    
CHECK_PLAYER(params[1]);

    
edict_tpPlayer MF_GetPlayerEdict(params[1]);

    
string_t item MAKE_STRING("player_weaponstrip");
    
edict_t *pent CREATE_NAMED_ENTITY(item);
    
    if (
FNullEnt(pent)) 
    {
        return 
0;
    }

    
MDLL_Spawn(pent);
    
MDLL_Use(pentpPlayer);
    
REMOVE_ENTITY(pent);

    *
reinterpret_cast<int *>(MF_PlayerPropAddr(params[1], Player_CurrentWeapon)) = 0;

    return 
1;

strip_user_weapons spawns a stripper entity, it's the same thing.If the bug was not fixed then you still need to set the offset.
__________________

Last edited by HamletEagle; 01-03-2015 at 05:57.
HamletEagle is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-03-2015 , 06:27   Re: About stripping user's weapons
Reply With Quote #15

Bug has nothing to do with AMXX. It has been fixed in 2013 in the game : https://github.com/ValveSoftware/halflife/issues/1

People saying it's not fixed are likely using old HLDS version.
__________________
Arkshine is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 01-03-2015 , 06:29   Re: About stripping user's weapons
Reply With Quote #16

Quote:
Originally Posted by Arkshine View Post
Bug has nothing to do with AMXX. It has been fixed in 2013 in the game : https://github.com/ValveSoftware/halflife/issues/1

People saying it's not fixed are likely using old HLDS version.
Oh, thanks for the clarification. In fact I never tested to see if the bug was fixed, just saw whan Gordon posted.
__________________
HamletEagle is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:37.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode