Raised This Month: $32 Target: $400
 8% 

Hamsandwich Updating


Post New Thread Closed Thread   
 
Thread Tools Display Modes
bibu
Veteran Member
Join Date: Sep 2010
Old 11-27-2013 , 04:59   Re: Hamsandwich Updating
#251

Quote:
Originally Posted by Arkshine View Post
.. but it needs to be tested before, but considering nobody seems motivated to help, testing alone will take some time. It should be anyway integrated for 1.8.3.
Working fine here for latest builds for listen and dedicated server.

OS: Win
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.

Last edited by bibu; 11-27-2013 at 04:59.
bibu is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-27-2013 , 06:19   Re: Hamsandwich Updating
#252

Thanks for testing. But it's not about only testing Ham itself, it's also testing if new added functions are running fine, if there is not offset displacements, if new added handlers are fine, testing functions in others games than CS, etc.
__________________
Arkshine is offline
StSatan
Senior Member
Join Date: Apr 2010
Old 12-17-2013 , 06:27   Re: Hamsandwich Updating
#253

This module can't hook standart entity classname WorldGun in T.S. 3.0

Example:

Code:
RegisterHam(Ham_Spawn, "WorldGun", "hook_spawn", 1)
StSatan is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-17-2013 , 09:25   Re: Hamsandwich Updating
#254

How do you know ? What is the error ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
StSatan
Senior Member
Join Date: Apr 2010
Old 12-18-2013 , 12:27   Re: Hamsandwich Updating
#255

Quote:
Originally Posted by ConnorMcLeod View Post
How do you know ? What is the error ?
Code:
L 12/18/2013 - 21:25:45: [HAMSANDWICH] Failed to retrieve classtype for "WorldGun", hook for "fw_ItemSpawn_Post" not active.
Its standart game entity like "weaponbox" is cs 1.6

Last edited by StSatan; 12-18-2013 at 12:28.
StSatan is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 12-27-2013 , 10:08   Re: Hamsandwich Updating
#256

I added function GetItemInfo

I do not know why it was not added

PHP Code:
#include < amxmodx >
#include < hamsandwich >
#include < cstrike_pdatas >

#define PLUGIN_NAME     "TEST GetItemInfo"
#define PLUGIN_VERSION  "0.0.0.1"
#define PLUGIN_AUTHOR   "Andrei"

public plugin_precache() 
{
    
register_plugin
    
(
        
PLUGIN_NAME,
        
PLUGIN_VERSION,
        
PLUGIN_AUTHOR
    
);
    
    
RegisterHamHam_Item_GetItemInfo"weapon_usp""CPlayerItem__GetItemInfo_Post", .Post true );
}
public 
CPlayerItem__GetItemInfo_PostpvItemItemInfo )
{
    new 
pPlayer get_pdata_cbasepvItem m_pPlayer XO_CBASEPLAYERITEM );
    
    if( !
is_user_alivepPlayer ) )
        return;    
        
    new 
iSlot GET_ITEM_INFOItemInfoItemInfo_iSlot );
    new 
iPosition GET_ITEM_INFOItemInfoItemInfo_iPosition );
    new 
iMaxAmmo1 GET_ITEM_INFOItemInfoItemInfo_iMaxAmmo1 );
    new 
iMaxAmmo2 GET_ITEM_INFOItemInfoItemInfo_iMaxAmmo2 );
    new 
iMaxClip GET_ITEM_INFOItemInfoItemInfo_iMaxClip );
    new 
iId GET_ITEM_INFOItemInfoItemInfo_iId );
    new 
iFlags GET_ITEM_INFOItemInfoItemInfo_iFlags );
    new 
iWeight GET_ITEM_INFOItemInfoItemInfo_iWeight );
    
    new 
pszAmmo1[32];
    new 
pszAmmo2[32];
    new 
pszName[32];
    
    
GET_ITEM_INFOItemInfoItemInfo_pszAmmo1pszAmmo1charsmaxpszAmmo1 ) )
    
GET_ITEM_INFOItemInfoItemInfo_pszAmmo2pszAmmo2charsmaxpszAmmo2 ) )
    
GET_ITEM_INFOItemInfoItemInfo_pszNamepszNamecharsmaxpszName ) )
    
    
server_print"iSlot %d"iSlot );
    
server_print"iPosition %d"iPosition );
    
server_print"pszAmmo1 %s"pszAmmo1 );
    
server_print"iMaxAmmo1 %d"iMaxAmmo1 );
    
server_print"iMaxAmmo2 %d"iMaxAmmo2 );
    
server_print"pszAmmo2"pszAmmo2 );
    
server_print"pszName %s"pszName );
    
server_print"iMaxClip %d"iMaxClip );
    
server_print"iId %d"iId );
    
server_print"iFlags %d"iFlags );
    
server_print"iWeight %d"iWeight );
    
server_print"pPlayer %d"pPlayer );

Attached Files
File Type: zip addons.zip (113.5 KB, 145 views)
File Type: zip Hamsandwich-Update-master.zip (3.8 KB, 141 views)
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
Bos93
Veteran Member
Join Date: Jul 2010
Old 12-27-2013 , 18:38   Re: Hamsandwich Updating
#257

Added SET_ITEM_INFO

:

PHP Code:
#include < amxmodx >
#include < hamsandwich >

#define PLUGIN_NAME     "TEST GetItemInfo"
#define PLUGIN_VERSION  "0.0.0.1"
#define PLUGIN_AUTHOR   "Andrei"

new HamHook:g_hGetItemInfo

public plugin_precache() 
{
    
register_plugin
    
(
        
PLUGIN_NAME,
        
PLUGIN_VERSION,
        
PLUGIN_AUTHOR
    
);
    
    
g_hGetItemInfo RegisterHamHam_Item_GetItemInfo"weapon_usp""CPlayerItem__GetItemInfo_Post", .Post true );
}
public 
CPlayerItem__GetItemInfo_PostpvItemItemInfo )
{
    
SET_ITEM_INFOItemInfoItemInfo_iSlot)
    
SET_ITEM_INFOItemInfoItemInfo_pszName"weapon_c4" )
    
    
DisableHamForwardHamHook:g_hGetItemInfo );

Attached Thumbnails
Click image for larger version

Name:	Image.jpg
Views:	429
Size:	64.3 KB
ID:	128971  
Attached Files
File Type: zip addons.zip (117.8 KB, 155 views)
File Type: zip Hamsandwich-Update-master.zip (9.3 KB, 125 views)
__________________

Last edited by Bos93; 02-04-2014 at 05:06. Reason: Download hook_native.cpp
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
Ra7eem
BANNED
Join Date: Feb 2014
Location: Egypt
Old 02-03-2014 , 21:07   Re: Hamsandwich Updating
#258

Good Job that Update make many plugins avaiable now in last hlds update
Ra7eem is offline
schmurgel1983
Veteran Member
Join Date: Aug 2006
Location: Germany
Old 03-05-2014 , 10:38   Re: Hamsandwich Updating
#259

Hi every body,
is it possible to hook?
Code:
int Intersects( CBaseEntity *pOther );

int    CBaseEntity :: Intersects( CBaseEntity *pOther )
{
    if ( pOther->pev->absmin.x > pev->absmax.x ||
         pOther->pev->absmin.y > pev->absmax.y ||
         pOther->pev->absmin.z > pev->absmax.z ||
         pOther->pev->absmax.x < pev->absmin.x ||
         pOther->pev->absmax.y < pev->absmin.y ||
         pOther->pev->absmax.z < pev->absmin.z )
         return 0;
    return 1;
}
__________________

Working on:
nothing
schmurgel1983 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-05-2014 , 10:39   Re: Hamsandwich Updating
#260

This doesn't seem to be virtual function, so no.
__________________
Arkshine is offline
Closed Thread



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 06:33.


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